Hi,
Is the API doc up to date? Some of the methods work, but I was not able to view the text for a lesson:
http://www.lingq.com/apidocs/api.html#get-https---www.lingq.com-api-languages-language-content_id-text-
Even the provided example returned a 404 error:
curl ‘https://www.lingq.com/api/languages/en/35411/text/ ’ -H ‘Authorization: Token ’
And the same error when fetching sentences: /api/languages/en/85411/sentences/
Perhaps the URL changed for these methods?
Thanks for any help!
Thousands of hours of language learning content to choose from in 42 languages, including audio and video, with full transcripts. Import content from your favourite sites and create personalized lessons.
I don’t think Content Id 35411 exists anymore. Try 6710590. I know that one works
Edit: Yeah, maybe not. That doesn’t work either. Bedtime for me, I’ll play with this tomorrow
nobody
January 5, 2014, 7:20am
4
@slatterypod - I know there have been some updates to the API, though I don’t know if all of the changes have been documented yet. I will ask one of our developers about this!
Okay, they did change the API.
I was able to do this
curl ‘https://www.lingq.com/api/languages/en/lessons/ ’ -H “Authorization: Token $TOKEN”
to get some content_ids
then
curl ‘https://www.lingq.com/api/languages/en/lessons/12907/text/ ’ -H “Authorization: Token $TOKEN”
Edit: I don’t know why/how they’re getting these content ids. 6710590 should have worked… but it doesn’t
1 Like
Thanks spatterson, that’s a good find…