Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extend API: Rating not returned
#1
The extend API always returns an empty string for the rating instead of the real rating.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#2
I know this. The API was done before the new rating system was implemented. I will add this to my todo list
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#3
ccagle8 Wrote:I know this. The API was done before the new rating system was implemented. I will add this to my todo list

Just a followup - the rating is returned now but not a string like all the others. Is this intentional?

Also, is there an API call to extent do get all plugin information in one call?

-Rob A>
Reply
#4
how is it returned? an object?
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#5
ccagle8 Wrote:how is it returned? an object?

It is a basic unquoted number, which according to the JSON spec is a double precision floating-point, but php turns it into either an int or a float depending on the value when it is run through json_decode.

All the other values I'd think could be numeric (number of downloads, version, id, etc) are all returned as string, except for rating, hence the question. Also in the example in the wiki it shows as a empty string, not as a number in json format.

-Rob A>
Reply




Users browsing this thread: 1 Guest(s)