GetSimple Support Forum

Full Version: Extend API: Rating not returned
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The extend API always returns an empty string for the rating instead of the real rating.
I know this. The API was done before the new rating system was implemented. I will add this to my todo list
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>
how is it returned? an object?
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>