With no public documentation for the ChinesePod API, I set out to identify the sequence of API calls required to retrieve lessons. The API is very much a work in progress and these calls may change. But until they do, feel free to use my research below to get yourself up and running.
oAuth Calls
http://chinesepod.com/oauth/request_token
http://chinesepod.com/oauth/authorize?oauth_token=1cd233ac7212009a199be7e7b25a605a
http://chinesepod.com/oauth/authorize/1cd233ac7212009a199be7e7b25a605a
http://chinesepod.com/oauth/authorize/1cd233ac7212009a199be7e7b25a605a/1
http://chinesepod.com/oauth/access_token
API Calls
http://chinesepod.com/api/course/getUserCourses?count=10&page=0&lastitem=0&format=json
http://chinesepod.com/api/lesson/getUserLessons?status=active&service=lesson&count=20&page=0&lastitem=0&format=json
http://chinesepod.com/api/lesson/getLesson?format=json&id=1796
http://chinesepod.com/api/lesson/getLesson?format=json&id=1794
http://chinesepod.com/api/tool/getFlashcard?format=json&count=100000
http://chinesepod.com/api/user/logout-for-iphone?a_token=4f405fd2cb805e09898066d056419cf2
I have managed to test these API Calls using the oauth-proxy and will document the request response cycles in further detail as I make use of them in an upcoming project.
Watch this space.
Recent Comments