Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gamenet/php-zsquare-api
PHP client api for http://zsquare.ru/
https://github.com/gamenet/php-zsquare-api
Last synced: 5 days ago
JSON representation
PHP client api for http://zsquare.ru/
- Host: GitHub
- URL: https://github.com/gamenet/php-zsquare-api
- Owner: gamenet
- License: mit
- Created: 2015-06-04T11:13:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-08T07:54:42.000Z (about 8 years ago)
- Last Synced: 2024-11-18T02:20:12.311Z (2 months ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-zsquare-api (zsquare kss api v1.0)
Service allows you to perform the following operations with subscriptions:
- Activation of the subscription for the specified subscriber to the specified parameters (subscription until the specified date / time, or indefinitely subscription
selected product, etc.). Each subscriber should have a unique identifier (SubscriberId) on the side of the service provider.
- Subscription renewal. Allows you to renew the subscription of said subscriber (SubscriberId) before the specified date / time, or indefinitely.
- Unsubscribe. It allows you to unsubscribe for the specified subscriber (SubscriberId) from that date.
- Cancel subscription. It allows you to cancel your subscription for the specified subscriber (SubscriberId) from that date to the provision of a buffer period.
- Suspending subscription. It allows you to suspend a subscription for the specified subscriber (SubscriberId) from that date.
- Renewal of subscription. It allows you to resume a paused service subscription for the specified subscriber (SubscriberId).
- Requesting a list of available products of Kaspersky Lab.# Installing
The recommended way to install library is [composer](http://getcomposer.org).
```JSON
{
"require": {
"gamenet/zsquare": "*"
}
}
```
# Running testsSet the zsquare api login and password in bootstrap.php and use phpunit.
# Usage
```php
$api = new \ZSquare\Api('login', 'password');
$activationCode = $api->activate('myUser', 'KISS');
```