Client API for Sales.lv Traffic service for SMS sending.
This is a simple HTTP API where data is requested or manipulated with HTTP requests. We are also providing client libraries (currently only in PHP) to make work easier.
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 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 [email protected] with any feedback, questions or suggestions that might arise.