HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Get a list of discussions of an specific category with Vanilla API
I'm trying the Vanilla API plugin from kasperisager (https://github.com/kasperisager/vanilla-api), but I can't figure out how to obtain a list of discussions from an given category.
The most similar method is GET /category/:id , but only returns information of the category itself, and GET /discussion/:id , that returns information about the given discussions.
Is there anyway to obtain this list of discussions filtered by category with vanilla-api methods out of the box or will be necesary to extend the default functionalities?
Thanks in advance.
Tagged:
0
Best Answer
-
x00 MVP
Use the simple api
http://vanillaforums.org/categories.json/developers
kasperisager API is working as you would expect
grep is your friend.
6
Answers
don;t have an answer but always good to post questions relating to plugins associated with plugin for easier reference later.
see:
http://vanillaforums.org/discussion/comment/220031/#Comment_220031
and then post question from here:
http://vanillaforums.org/addon/api-application
or posting on github itself
restart a new discussion if necessary.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Without knowing the API I would suspect that you have to look at /categories/:id or /categories/:name in order to get the discussions. At least that's the way Vanilla works: http://vanillaforums.org/categories/developers
Use the simple api
http://vanillaforums.org/categories.json/developers
kasperisager API is working as you would expect
grep is your friend.
Thank you @peregrine, I posted here because I didn't be aware of the "Ask a question" link in the plugin page, but your post have been very "graphical"