Skip to content

Instantly share code, notes, and snippets.

@branw
Created March 24, 2020 14:13
Show Gist options
  • Save branw/0ed91b6a2eb034a28e22d51ac1273d97 to your computer and use it in GitHub Desktop.
Save branw/0ed91b6a2eb034a28e22d51ac1273d97 to your computer and use it in GitHub Desktop.
Virginia Tech University DataCommons API payload encoding scheme
// from https://udc.aie.vt.edu/api/irdata/College/
var encoded = "H4sIALK1el4C/21TTW/aQBD9KysOPYWWz6b0RgkEpKSg8nGpomqzHsxI9m40XqOiqv89M7vGAeSjPe+9ffNm5l+rMAfIdev779bEZRmk8MfqHFp39adxCbRe7lqJ9gKrccrt1TglNGXmSwKlbaKecA9qbRCsgYI1Ol1mXjPIHNCDqSlbetVWrX2ZYKT0AmWl87cMrbqg/igLtFAEUP9Wd2pTLgKhTaU+DPWF9UAVSP5+vWU94SuQztiVL4KbeZmLm4sO7m85VVFq325rO/BiQdNJPUOChi0JbnSL+6m5f373FxSuJH4pPD61RyRnc7CeWd1OYD0AG4pWSVPMqBtj3aEBtSIoMGFKm0XRWVad6Df0QT3lH4zvDQJ++hdM6fEIapzkaLHwFCiCiIGt6bO6Vg3GVuSOrhBTvRhhXZZf901mlqUn0OagPqkwBXs2N97vNZJ00Yvx7TYz9YDEK+HocsxnJCtMnPUk6ZHQRk3vjZOj5qlU2Q0aA1rYvaM8GFEbMAfrMpeeBN5rgstOSgIfjgf95qdvwhwMmmA8a9C8/QIYNgFmvDjcQkh8MlsKLqb9SDoptZfLOjiXSaEpcw4qLAs3qbY2AUrPvGlSmtpctYxM4A1sby3vAxXoT2pW2kS6HFUBT5bP7Vr8i0hzcV4lu+EtI8wkyuhKRnex890Y6dxZxyP8uMFeFeFKzUFn/lDfWmj7air9GsrS8TDre+HysHMuS8Mrl6E5cQSP7ijbFi90GN1eNLmw6FHLEQQNdvny/x260Zp9BQUAAA==";
var decoded = JSON.parse(pako.inflate(atob(encoded), {to: "string"}));
/*
{
"schema": ["College_name", "College_code"],
"data": [
["College of Agriculture and Life Sciences", "01"],
["College of Architecture and Urban Studies", "02"],
["Pamplin College of Business", "03"],
["College of Engineering", "05"],
["InterCollege", "06"],
["College of Liberal Arts and Human Sciences", "07"],
["College of Science", "08"],
["College of Veterinary Medicine", "09"],
["College of Natural Resources and Environment", "10"],
["Dean of Libraries", "11"],
["Vice President-National Capital Region", "24"],
["Executive Administration", "25"],
["Sr. Vice President and Provost", "26"],
["President", "27"],
["Vice President-Outreach & International Affairs", "28"],
["VTF Director of Business Affairs & Controller", "29"],
["Vice President-Advancement", "41"],
["Vice President-Information Technology", "42"],
["Vice President-Student Affairs", "43"],
["Vice President-Administration", "44"],
["Vice President-Research", "45"],
["Vice President-Finance and CFO", "46"],
["Graduate School", "47"],
["Vice President & Dean for Undergraduate Education", "49"],
["Central-University Funds", "99"],
["VCOM-President/Dean", "H1"],
["VT Carilion School of Medicine", "12"],
["Honors College", "23"],
["VP Health Sciences and Technology", "33"],
["VP of Human Resources", "50"],
["VP for Policy & Governance", "51"],
["University Initiatives", "52"]
]
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment