gamenet/zsquare

PHP-library for interactions with zsquare.ru api

1.0.3 2016-12-07 06:36 UTC

This package is not auto-updated.

Last update: 2024-11-09 18:27:33 UTC


README

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.

{
    "require": {
        "gamenet/zsquare": "*"
    }
}

Running tests

Set the zsquare api login and password in bootstrap.php and use phpunit.

Usage

    $api = new \ZSquare\Api('login', 'password');
    $activationCode = $api->activate('myUser', 'KISS');