Getting and filtering plugin reviews?
-
Hi,
To get a plugin’s basic stats from the repository, we can use:
https://api.www.ads-software.com/plugins/info/1.0/{slug}.json
This brings back most of the data. To add reviews to the response, we can use:
https://api.www.ads-software.com/plugins/info/1.0/{slug}.json?fields[reviews]=1
Great. However, the reviews returned in the response:
1) are a string of markup, and
2) only contains the latest 10 reviews, and
3) can’t be filtered by rating.If absolutely necessary, I can glean the data from the returned markup. Still, that won’t bring back any additional results, or allow me to filter them by rating.
Hmmm.
I read the
plugins_api()
function documentation and scoured Google for answers…also read through the WP API docs on the Codex.Is there anything in place to filter and return a plugin’s reviews? Or has anyone solved this without having scraping/traversing markup?
Thanks for any insights you may have!
– John
- The topic ‘Getting and filtering plugin reviews?’ is closed to new replies.