-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from pilsetnieks/master
v.1.1.0
- Loading branch information
Showing
3 changed files
with
166 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
premium-api | ||
=========== | ||
|
||
Client API for Sales.lv **[Premium](http://www.sales.lv/lv/risinajumi/premium/)** service. In its essence **Premium** is a platform for | ||
Client API for Sales.lv **[Premium](https://sales.lv/sms/sms-premium/)** service. In its essence **Premium** is a platform for | ||
implementing services based on mobile-originated (incoming from users) SMS message processing. In practice there are a number of applications | ||
built upon this platform, for example, user message processing, SMS micropayment handling, lotteries, etc. (Lotteries are a special case | ||
as there is a lot of lottery-specific functionality implemented in Premium that goes above and beyond SMS processing). | ||
|
@@ -14,22 +14,32 @@ as well as examples of using our libraries | |
|
||
A quick start guide | ||
------------ | ||
- Sign up for the [Premium service with Sales.lv](http://www.sales.lv/lv/risinajumi/premium/). Once you have done that, you will be provided with an API key and a campaign code to use for API requests. | ||
- Sign up for the [Premium service with Sales.lv](https://sales.lv/sms/sms-premium/). Once you have done that, you will be provided with an API key and a campaign code to use for API requests. | ||
- Take a look at the [API documentation](https://github.com/Sales-LV/premium-api/wiki) and the client libraries. | ||
|
||
PHP client library | ||
------------ | ||
PHP client library is located in `lib/php/premium-api.php`. An usage example is provided in `lib/php/example.php`. | ||
|
||
Requirements: | ||
* [PHP 5.2 or newer](http://www.php.net/) | ||
* [PHP 5.5 or newer](http://www.php.net/) | ||
* One of these: | ||
* [pecl_http](http://pecl.php.net/package/pecl_http) extension is recommended but not mandatory. | ||
* enabled [cURL library](http://www.php.net/manual/en/book.curl.php). | ||
* [allow_url_fopen](http://php.net/manual/en/filesystem.configuration.php) set to true. | ||
* [allow_url_fopen](http://php.net/manual/en/filesystem.configuration.php) set to true (attachment file upload is not currently supported for this method.) | ||
|
||
Library usage is [described in the wiki](https://github.com/Sales-LV/premium-api/wiki/PHP-API-library). | ||
|
||
Changelog | ||
------------ | ||
1.1.0: | ||
- compatibility moved up to 5.5; | ||
- some error messages indicate data unavailability due to GDPR limitations; | ||
- files can be attached to submitted messages for upload and storage in Premium (when required by the campaign) | ||
|
||
1.0.*: | ||
- initial releases | ||
|
||
Feedback, support & questions | ||
------------ | ||
Please write to [email protected] with any feedback, questions or suggestions that might arise. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.