\YouTV
YouTV API PHP client
https://documenter.getpostman.com/view/13165103/TVYAhgRP
Synopsis
class YouTV
{
- // constants
- const LOG_PATH = 'exports/ytv_debug.log';
- // members
- protected string $login = '';
- protected string $password = '';
- protected string $dealerID = '';
- protected integer $status = 0;
- protected integer $error = 0;
- protected string $token = '';
- protected string $url = 'https://api.youtv.com.ua';
- protected bool $debugFlag = false;
- // methods
- public void __construct()
- public mixed sendRequest()
- protected void getToken()
- public mixed getPrices()
- public mixed createUser()
- public mixed getUsers()
- public mixed getUser()
- public mixed getUserByExternalId()
- public mixed subscriptions()
- public mixed blockUser()
Constants
| Name | Value |
|---|---|
| LOG_PATH | 'exports/ytv_debug.log' |
Members
protected
- $dealerID
—
string
Contains current instance dealer id - $debugFlag
—
bool
low level debug flag - $error
—
int
Contains last request error - $login
—
string
Contains current instance login - $password
—
string
Contains current instance password - $status
—
int
Contains last request status code - $token
—
string
Contains current instance temporary token - $url
—
string
Contains basic API URL
Methods
protected
- getToken() — Retreiving auth token
public
- __construct() — Thats constructor. What did you expect there?
- blockUser() — User blocking Result 1 - everything is ok Result 0 - already blocked
- createUser() — New user creation
- getPrices() — Getting tariffs list
- getUser() — Getting user by id
- getUserByExternalId() — Searching user by external_id
- getUsers() — Getting all dealer users list
- sendRequest() — Sending request to API
- subscriptions() — Subscription activation for user