HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Http API Client
meezaan
New
Hi folks,
I am just wondering if there is an API client available for the Vanilla API in PHP, Python or Java?
Ultimately, if we had a PHP client, I might be looking to do something similar to this:
<?php $vanillaClient = new \NameSpace\Client('Auth Token', 'Forum URL'); $someThread = $vanillaClient->getThread('threadId'); $someUser = $vanillaclient->getUser('userId'); // And so on so forth
Thank you.
0
Comments
We are taking steps that would put us closer in this direction. Currently one of the blockers for us has been issues with our OpenAPI spec. Once we've resolved some issues there I plan on investigating using OpenAPI codegen to generate API clients.
However, this is not an immediate priority. If you wanted to help push this along faster, try to take the OpenAPI spec available from the
/api/v2/openapi/v2
endpoint and run it through the swagger/openapi code generation tools.Reporting issues blocking those from working is the probably the fastest path forward here. If you do try that, I'd recommend working from the
master
or arelease/2.8.dev.x
branch, as we some OpenAPI validation issues that were fixed starting in 2.8.OK, thank you.