Making calls to the Ven API

Overview

The Ven API provides JSON formatted data and responds to simple HTTP GET and POST requests.

All requests must include a access_token parameter for authentication: How to authenticate.

Endpoints

The root endpoint for the API is

https://www.vencurrency.com/api/

Each API method has a different URL, assembled in the form:

https://www.vencurrency.com/api/class/method

For example:

https://www.vencurrency.com/api/user/me

View the available classes & methods

Authenticating

To authenticate an API call, simply pass in a access_token argument. For example:

https://www.vencurrency.com/api/user/me?access_token=123abc456def

which might give:

{"id":"999","first":"John","last":"Doe","sex":"male","email":"john@doe.com","url":"johndoe"}

If an invalid or revoked access_token is used, an error is encountered:

{"error":{"message":"Invalid access_token","code":111}}