We found that while for most people it worked fine, for some power users who had hundreds of active lessons in a language, it was nearly unusable due to the lengthy wait times.
This change was made recently to improve the performance of our mobile iLingQ app.
We found that while for most people it worked fine, for some power users who had hundreds of active lessons in a language, it was nearly unusable due to the lengthy wait times.
We found that while for most people it worked fine, for some power users who had hundreds of active lessons in a language, it was nearly unusable due to the lengthy wait times.
Hi guys, I would like to ask you for something...
I am programming something for Android and I sucesfully got the Lessons list, language list and others reffered in http://www.lingq.com/lingq_api/details/ . But I cannot see there anything for getting a text for a specific lesson.
I have, for example, following XML (below) which I get and I want to open the first lesson with id 165144 (and with title It's time to start Spanish again.I like Spanish. Do you speak Spanish well?). Is there available a function for getting the text for each lesson that I want to read...or I cannot see the text of the lesson? :)
Thank you for answer in advance.
Jarda
<resource>
<listen_times>0</listen_times>
<listen_duration>0</listen_duration>
<audio_url/>
<title>
It's time to start Spanish again.I like Spanish. Do you speak Spanish well?
</title>
<read_times>0</read_times>
<read_word_count>0</read_word_count>
<cards_count>5</cards_count>
<image_url>
http://m.lingq.com/media/images/default-content...
</image_url>
<id>165144</id>
</resource>
<resource>
<listen_times>0</listen_times>
<listen_duration>0</listen_duration>
<audio_url>
http://media.lingq.com.s3.amazonaws.com/resourc...
</audio_url>
<title>Part 7</title>
<read_times>0</read_times>
<read_word_count>0</read_word_count>
<cards_count>41</cards_count>
<image_url>
http://m.lingq.com/media/resources/contents/ima...
</image_url>
<id>41179</id>
</resource>
I am programming something for Android and I sucesfully got the Lessons list, language list and others reffered in http://www.lingq.com/lingq_api/details/ . But I cannot see there anything for getting a text for a specific lesson.
I have, for example, following XML (below) which I get and I want to open the first lesson with id 165144 (and with title It's time to start Spanish again.I like Spanish. Do you speak Spanish well?). Is there available a function for getting the text for each lesson that I want to read...or I cannot see the text of the lesson? :)
Thank you for answer in advance.
Jarda
<resource>
<listen_times>0</listen_times>
<listen_duration>0</listen_duration>
<audio_url/>
<title>
It's time to start Spanish again.I like Spanish. Do you speak Spanish well?
</title>
<read_times>0</read_times>
<read_word_count>0</read_word_count>
<cards_count>5</cards_count>
<image_url>
http://m.lingq.com/media/images/default-content...
</image_url>
<id>165144</id>
</resource>
<resource>
<listen_times>0</listen_times>
<listen_duration>0</listen_duration>
<audio_url>
http://media.lingq.com.s3.amazonaws.com/resourc...
</audio_url>
<title>Part 7</title>
<read_times>0</read_times>
<read_word_count>0</read_word_count>
<cards_count>41</cards_count>
<image_url>
http://m.lingq.com/media/resources/contents/ima...
</image_url>
<id>41179</id>
</resource>
You can access lesson text by using the url http://www.lingq.com/api_v2/{language}/{lesson_...
The lesson text API call (the link jmv posted) contains more than just the lesson text. It has
"listen_times"
"listen_duration"
"text"
"read_times"
"read_word_count"
plus a list of all the lesson lingqs
Can this info be added to the API docs at http://www.lingq.com/lingq_api/details/?
"listen_times"
"listen_duration"
"text"
"read_times"
"read_word_count"
plus a list of all the lesson lingqs
Can this info be added to the API docs at http://www.lingq.com/lingq_api/details/?
I'm not so familiar with these types of things, but I'll pass it along to one of our developers. Thanks!
Before I spend anytime on API based stuff, I first thought I would ask has anyone done something already with the API that they would be willing to share?
I've played around a little bit using Yahoo! Pipes (just messing around) and curl and got it working but not done anything of value yet.
Specifically I'd like to have a simple hands-free vocabulary review that flips through the LingQs of a given level, showing word (pause) meaning+example (pause) in large text. The API only lets you get all LingQs or all LingQs of a specific lesson. Luckily I don't have so many LingQs yet. Or is there a way to set a search filter?
Has anyone done something like that?
I've played around a little bit using Yahoo! Pipes (just messing around) and curl and got it working but not done anything of value yet.
Specifically I'd like to have a simple hands-free vocabulary review that flips through the LingQs of a given level, showing word (pause) meaning+example (pause) in large text. The API only lets you get all LingQs or all LingQs of a specific lesson. Luckily I don't have so many LingQs yet. Or is there a way to set a search filter?
Has anyone done something like that?
Before I spend anytime on API based stuff, I first thought I would ask has anyone done something already with the API that they would be willing to share?
I've played around a little bit using Yahoo! Pipes (just messing around) and curl and got it working but not done anything of value yet.
Specifically I'd like to have a simple hands-free vocabulary review that flips through the LingQs of a given level, showing word (pause) meaning+example (pause) in large text. The API only lets you get all LingQs or all LingQs of a specific lesson. Luckily I don't have so many LingQs yet. Or is there a way to set a search filter?
Has anyone done something like that?
I've played around a little bit using Yahoo! Pipes (just messing around) and curl and got it working but not done anything of value yet.
Specifically I'd like to have a simple hands-free vocabulary review that flips through the LingQs of a given level, showing word (pause) meaning+example (pause) in large text. The API only lets you get all LingQs or all LingQs of a specific lesson. Luckily I don't have so many LingQs yet. Or is there a way to set a search filter?
Has anyone done something like that?
Sorry, we have no new API's at this time. We are taking note of all API requests and will look at them all the next time we have a chance to update the API. Keep the suggestions coming!
2 keke_eo: first you have to decide what do you want from your app exactly and then you just ask if there any way to get something you need. I don't think such APIs that the one mentioned above have to be added to the list. They bring less information.
By the way, I missed the "http://www.lingq.com/api_v2/language/lingqs/" (without the content_id) in the list of APIs and that is the reason of my stupid question in the other topic.
Is you language level flips back and forth every day?
I think this API request would be enough for the app you want to implement. Are you afraid of the amount of traffic you have to download? If it is because of traffic - make a cache. If it is because of device's memory - don't worry, the linkqs in json format do not eat much memory. I have, for example, about 240 words in my vocabulary for now and it takes only 61 Kb in json format to download. And it is in UTF-8 ! Don't pile the words into vocab, remember them from time to time ;-)
Let's be realistic - people will never be satisfied with any amount of API features in any system, it's a human nature )
If you find anything as abusive - I'm sorry. I had no intention to abuse anybody.
I have another suggestion: I think it is essential to add to the "http://www.lingq.com/api_v2/%language%/%lesson_id%/text/" API request the feature to reply with the text marked with "known/unknown", so that at least the feature enabling users to mark unknown words as linqs can be implemented in mobile app as it is now implemented on the site.
By the way, I missed the "http://www.lingq.com/api_v2/language/lingqs/" (without the content_id) in the list of APIs and that is the reason of my stupid question in the other topic.
Is you language level flips back and forth every day?
I think this API request would be enough for the app you want to implement. Are you afraid of the amount of traffic you have to download? If it is because of traffic - make a cache. If it is because of device's memory - don't worry, the linkqs in json format do not eat much memory. I have, for example, about 240 words in my vocabulary for now and it takes only 61 Kb in json format to download. And it is in UTF-8 ! Don't pile the words into vocab, remember them from time to time ;-)
Let's be realistic - people will never be satisfied with any amount of API features in any system, it's a human nature )
If you find anything as abusive - I'm sorry. I had no intention to abuse anybody.
I have another suggestion: I think it is essential to add to the "http://www.lingq.com/api_v2/%language%/%lesson_id%/text/" API request the feature to reply with the text marked with "known/unknown", so that at least the feature enabling users to mark unknown words as linqs can be implemented in mobile app as it is now implemented on the site.
Good points. I thinking of the filter mainly to minimise server load - some the users have tens of thousands of LingQs - but also for viewing on a mobile browser. But you're right, the filtering can be done client side.
I'm sure my API key will be revoked if I start hammering the server too much ;) I'll do testing against a local cache...
I'm sure my API key will be revoked if I start hammering the server too much ;) I'll do testing against a local cache...
I just got more familiar with the "Cloze" test and I have to admit that keke_eo was right about filtering upon the status of the words (the level we know them) regardless of the count of words in your vocabulary. It is a good point and it has to be implemented at least in the sake of your server load. The less words the server sends to client, the less load it will suffer.
So, summarizing all of our suggestions regarding the lingq API function, it would be great to implement the following features (which would reflect the same features on the site):
1. parameter to set the number of words we want to get in one transaction (in one page)
2. parameter to set the page number we want to get in current transaction
3. parameter to set the sorting (alphabetically/status/date added/importance)
4. parameter to set the filtering by status (words of what statuses we want to get)
Thank you.
So, summarizing all of our suggestions regarding the lingq API function, it would be great to implement the following features (which would reflect the same features on the site):
1. parameter to set the number of words we want to get in one transaction (in one page)
2. parameter to set the page number we want to get in current transaction
3. parameter to set the sorting (alphabetically/status/date added/importance)
4. parameter to set the filtering by status (words of what statuses we want to get)
Thank you.
Thanks machor. We'll look into this when we have some time.
Hey guys, if you haven't been following the "Firefox LingQ Addon" thread we are pretty much under way in the initial stages of creating the Firefox LingQ Addon. We already have proof of concept by using the Vocabulary Highlighter add-on in conjunction with a tool that I wrote to import LingQs into it, to show that we can work with a dictionary of 15,000+ LingQs through a Firefox addon with little effect on performance. Check it out, I think you'll like it. Our idea is to beef up the vocabulary highlighter addon (or a clone of it) to interface directly with LingQ.
A few enhancements to the API to reduce server load would be a big benefit to both sides however. machors last post (at least 1,2, and 4) would be super beneficial for the add-on, as currently asking the API for all LingQs when there are tens of thousands can take a few minutes, and being able to ask for them in chunks would help avoid timeouts.
Also, please guys, a CreateLingQ method would be stupendous! All it needs is three parameters: term, hint, fragment. We can take care of helping the user get dictionary definitions.
A few enhancements to the API to reduce server load would be a big benefit to both sides however. machors last post (at least 1,2, and 4) would be super beneficial for the add-on, as currently asking the API for all LingQs when there are tens of thousands can take a few minutes, and being able to ask for them in chunks would help avoid timeouts.
Also, please guys, a CreateLingQ method would be stupendous! All it needs is three parameters: term, hint, fragment. We can take care of helping the user get dictionary definitions.
What about a fourth parameter: hint language?
Well, I'm only saying this because lingqs now contain this information.
Hey guys, so I've been successfully creating LingQs in the system, however I am running into a couple odd scenarios. When sending in the parameters term=sono+venuto+per+quell%60annuncio&hint=I+came+because+of+the+announcement&fragment=sono+venuto+per+quell%60annuncio&apikey=MYAPIKEY, the term cuts off at the apostrophe and I get "sono venuto per quell", while the fragment, which is the same string shows up fine in its entirety in the phrase. I have my post content type set to "application/x-www-form-urlencoded; charset=utf-8" Its odd, it just seems to be that character that is messing up.
@odiernod - Apparently, the apostrophe symbol you are trying to submit is actually the backtick "`" which is causing the problem.








