- Full API documentation is found in the wiki.
 
All example code is MIT licensed.
- 
There's a small test client in this repo that can be used to test your API calls or to serve as an example for implementing the Khan Academy authentication flow.
 - 
To use the test client:
 
python test.py- Enter your consumer key and secret
 - Enter the Khan Academy url you want to test against (unless you're running a local version, this'll be 
http://www.khanacademy.org) - A browser will pop up for you to walk through the authentication flow. When done, it will redirect you to a page that says "Ok" and in the URL there will be two parameter values you need: 
oauth_tokenandoauth_token_secret. - Go back to the test.py command line and enter your new token and secret.
 - You'll now have a loop that lets you run Khan Academy API queries, authenticated as the user you logged in as.
 - Examples:
 
- /api/v1/playlists
 - /api/v1/user/videos?email=[email protected]
 - /api/v1/user/videos?email=http://facebookid.khanacademy.org/123456789
 - /api/v1/user/exercises/addition_1/log?email=http://facebookid.khanacademy.org/123456789&dt_start=2011-03-19T08:00:00Z&dt_end=2011-03-19T17:00:00Z
 
