Khan / khan-api

Documentation for (and examples of) using the Khan Academy API
http://www.khanacademy.org
378 stars 74 forks source link

Topic API for Randomized Algorithms is broken #45

Closed gkoo closed 11 years ago

gkoo commented 11 years ago

After calling the playlists API (http://www.khanacademy.org/api/v1/playlists), I get a JSON response. This JSON response includes the data for a topic called "Randomized Algorithms". It looks like this:

{
  "icon_src": "",
  "kind": "Topic",
  "hide": false,
  "description": "Would a coin flip speed up a decision process?",
  "relative_url": "/#random algorithms, probability",
  ...
  "title": "Randomized Algorithms",
  "ka_url": "http://www.khanacademy.org/#random algorithms, probability",
  "topic_page_url": "/random algorithms, probability",
  "standalone_title": "randomized algorithms",
  "extended_slug": "random algorithms, probability",
  "id": "random algorithms, probability",
  ...
  ...
}

It seems like this is the only topic that uses spaces rather than hyphens. (Other topics look like "bank-bailout".)

In any case, the topic API url "http://www.khanacademy.org/api/v1/topic/random%20algorithms,%20probability" returns an error. I've tried variations on the same url, replacing spaces with hyphens, and also using "randomized-algorithms" as the topic ID, but neither of those seemed to work.

sophiebits commented 11 years ago

It looks like this has been fixed.

gkoo commented 11 years ago

awesome, thanks!