Khan / khan-api

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

relative_url #67

Closed LukasBicus closed 10 years ago

LukasBicus commented 10 years ago

Hi,

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

you should be able to see path to your current position of your NODE_SLUG in topic tree with help of property: "relative_url"

It works perfectly for example for: http://www.khanacademy.org/api/v1/topic/cs http://www.khanacademy.org/api/v1/topic/new-and-noteworthy

But there are cases, when it doesn't works: http://www.khanacademy.org/api/v1/topic/math http://www.khanacademy.org/api/v1/topic/humanities

Can you take look on it? Thanks, Lukas.

sophiebits commented 10 years ago

There's no page on the site for the Math or Humanities topics so relative_url is null here.