API VocabularyList method problem


#1

Hey all, while developing an extension,
i found something that is wrong in API documentation.

In Documentation on Vocabulary List:

“requested_information”: [

{
“character”: “ふじ山”,

“kana”: “ふじさん”,

but when you make the call it comes like this:

“requested_information”:{
“general”:[
{“character”:“ふじ山”,
“kana”:“ふじさん”,
there is a new attribute, so we dont have really a list of Vocabulary objects inside RequestedInformation object, but a “general” attribute before it.

as i am still on level 2, i cant see if there are any other “attribute” like that, maybe a group name for vocabularies?

Can someone explain me plz?
Thanks.



API Problem
#2

I reported this to Viet a while back, it’s probably pretty low on his to-do list right now.


#3

General simply means you have not request specific levels.


#4
ampaze said... General simply means you have not request specific levels.
 Hey! that is it!
sending a level number as parameter it works like Kanji/Radicals.

Thanks, that will save my abstract classes for now ^^

#5

It’s a bug as it’s not consistent across interfaces. If you request all kanji or all radicals, it’s not the same.


#6

Yeah. It’s not suppose to be formatted this way. I would lock your application into the current API version. The next API update will have a more consistent format.