Freemius / freemius-php-sdk

https://freemius.com
22 stars 13 forks source link

count description doesn't respect the limit defined in the documentation #9

Open leonstafford opened 6 years ago

leonstafford commented 6 years ago

Using something like

$inactive_sites = $api->Api("/plugins/{$first_plugin_id}/installs.json?filter=active&count=30", 'GET');

I'm unable to get more than 25 results returned. I can set the value to less than 25 and it returns the expected number of results.

The API documentation states:

Ranges from 1 to 50. Example: 30. Default: 25.

and

Pagination: All collection queries optionally accept count (limit) and offset params while limit can range from 1 to 50 and defaults to 25.

Suggested fix: align API with documentation.