Monday, February 25, 2013

Get A List Of All Classes At UC Berkeley With API Call

I see a lot of dead simple, yet meaningful uses of APIs come across my desk (I don’t have a desk, why do I keep saying this?) each day. One I saw today is something every school, whether K-12, college or university should have.

Using the UC Berkeley API, you can get a list of all departments:

_curl -v -X GET "https://apis-dev.berkeley.edu/cxf/asws/department?departmentCode=a&app_id=309fe68e&app_key=51b9d67dc4f0501eed763822a641b17b"_

Then with the proper department code you can pull a list of classes:

_curl -v -X GET "https://apis-dev.berkeley.edu/cxf/asws/classoffering?departmentCode=ARCH&app_id=your-id&app_key=your-key"_

With the proper keys, anyone can easily pull relevant UC Berkeley department and class data to use in website or app, or even populate a Google Spreadsheet for other purposes.

The UC Berkeley API Management Portal is brand new, I’m still working on separate regarding their approach, but it is good to see such straightforward, valuable uses of an API at a leading university.

This simple example is something you should be able to do by default at all schools across the country.



from API Evangelist http://feedproxy.google.com/~r/ApiEvangelist/~3/NJ6Gq0haq54/

No comments: