Khan / khan-api

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

domain_slug #66

Closed lukasbicus closed 11 years ago

lukasbicus commented 11 years ago

Hi,

once you call http://www.khanacademy.org/api/v1/topic/NODE_SLUG

you should be able to detect domain of your NODE_SLUG with help of property: "domain_slug".

It works perfectly for example for: http://www.khanacademy.org/api/v1/topic/cc-3rd-adding-carrying http://www.khanacademy.org/api/v1/topic/math

But there are cases, when it doesn't works: http://www.khanacademy.org/api/v1/topic/new-and-noteworthy http://www.khanacademy.org/api/v1/topic/text-basics http://www.khanacademy.org/api/v1/topic/cs

Can you take look on it? Thanks, Lukas.

tomyedwab commented 11 years ago

Not every topic is within a domain. Math is a domain, but Computer Science is not, and New and Noteworthy is not a child of any domain.