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_tokenparameter 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/methodFor example:
https://www.vencurrency.com/api/user/meView the available classes & methods
- Authenticating
-
To authenticate an API call, simply pass in a
access_tokenargument. For example:https://www.vencurrency.com/api/user/me?access_token=123abc456defwhich might give:
{"id":"999","first":"John","last":"Doe","sex":"male","email":"john@doe.com","url":"johndoe"}If an invalid or revoked
access_tokenis used, an error is encountered:{"error":{"message":"Invalid access_token","code":111}}