Download the PHP package ferrumfist/vipip_sdk without Composer
On this page you can find all versions of the php package ferrumfist/vipip_sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ferrumfist/vipip_sdk
More information about ferrumfist/vipip_sdk
Files in ferrumfist/vipip_sdk
Package vipip_sdk
Short Description PHP SDK for work with Vipip service
License MIT
Informations about the package vipip_sdk
Vipip SDK
Vipip SDK for PHP
Table of contents
- Installation
- Usage
- Modules
- User
- Services
- Service methods
Installation
It is recommended that you install the Vipip SDK library through composer. To do so, add the following lines to your composer.json
file.
Usage
At the beginning of the library must be initialized by calling the init method
The following options can be passed as a configuration:
More information about the cache options, click here
Modules
SDK is divided into modules. You get the module to perform API requests
User
getBalance - getting user`s balance
getDiscount - getting user`s discount
Services
Services it is a group of modules which includes Link, Task, Social
create - creating services
getList, getOne- getting list of/one service(s)
Service methods
After creating/getting the service you have the object of service. To use a service, use the following methods:
save - saving attributes of service
changeBalance - changing service balance
changeStatus - changing service status example
The next group of methods gets / sets the objects for the service settings
getTariff - getting tariff
setTariff - setting tariff
getInputReferer - getting inputpoints and referers
setInputReferer - Setting inputpoints and referers
getGeo - getting geography settings
setGeo - setting geography settings
getCalendar - getting calendar settings
setCalendar - setting calendar settings