Client API for Sales.lv Traffic service. Traffic is a platform for SMS messaging to mobile phones worldwide and other related functionality.
This is a simple HTTP API where data is requested or manipulated with HTTP requests. Requests can be made as HTTP POST requests with a JSON body or as basic POST or GET requests.
Once you've signed up for the Traffic service, you'll be provided with a username and an API key, required for making API calls.
There is a specification provided in the wiki here about making the API calls yourself, as well as examples of using our libraries.
- Sign up for the Traffic service with Sales.lv. Once you have done that, you will be provided with a username and an API key and all necessary data for API usage.
- Take a look at the API documentation and the client libraries.
PHP client library is located in lib/php/traffic-api.php
. An usage example is provided in lib/php/example.php
.
Requirements:
- PHP 5.2 or newer
- One of these:
- pecl_http extension is recommended but not mandatory.
- enabled cURL library.
- allow_url_fopen set to true.
Library usage is described in the wiki.
Please write to support@sales.lv with any feedback, questions or suggestions that might arise.