Ubersmith API 2.0 is a RESTful web service for communicating with an Ubersmith software installation.
Ubersmith API Guide v4.5.3.pdf provides documentation on the commands and parameters available in the 2.0 release of the Ubersmith API.
The API is broken into several sections, each containing commands having related functions. The sections are:
Methods within each section are identified using a dot notation, for example, uber.methods_list.
The Ubersmith API supports the use of API tokens as well as passwords for authentication. The use of API tokens allows generating separate tokens for each external system accessing the API, and optionally setting an expiration date for the token.
API tokens can be managed from the User Management page in Settings, by clicking edit in the API Tokens section which displays for any user with API access. Once generated, a token may be used in place of the user's password for API access.
Authentication details are passed to the Ubersmith API via HTTP authentication. If you are using our client class, this is taken care of automatically.
You can generate API documentation, resulting in a .pdf file you can then download.
Generating an API guide is making an API call, so ensure you have API Access set to Yes in the User Info section through the Users link under Global Settings - Getting Started. |
For supported languages, we recommend using our client (see below) for integrating other languages.Tthe Ubersmith API uses standard HTTP requests and return data in JSON format.
The Ubersmith API is accessed through the URL https://billing.mycompany.com/api/2.0/, where billing.mycompany.com is the address of your Ubersmith installation.
API methods are called by passing the parameter METHOD in the URL, like https://billing.mycompany.com/api/2.0/?method=uber.method_list, which returns a list of all available API methods.
Additional parameters are passed to the API as either GET parameters or via standard HTTP POST requests.
Responses are returned in JSON format (with the exception of specialized methods which return raw PDF, Image, XML or HTML data), and include the standard elements:
A PHP API client class and example are included in the api/client/2.0/php directory of the Ubersmith distribution.
As other language implementations become available, they will be included in the api/client/2.0/ directory. If you have any questions about creating your own client class, or would like to contribute a client class you have written, please contact Ubersmith Support.
On this page: |
|