Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
After February 6, this site will no longer have Facebook, Twitter, or OpenID sign-in options. Read our announcement about social media SSO support in 2.8 for more info.

Make sure you have a current, valid email address set in your profile and set a password so you can login without it. If you get locked out after that time, you can choose "Forgot Password" to fix it as long as a valid email is on your account.

Http API Client

meezaanmeezaan New
edited December 2018 in Development

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.

Comments

  • charrondevcharrondev Application Developer (PHP, JS) Montreal Vanilla Staff

    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 a release/2.8.dev.x branch, as we some OpenAPI validation issues that were fixed starting in 2.8.

    R_J
Sign In or Register to comment.