\YouTV
YouTV API PHP client
Synopsis
class YouTV
{
- // 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';
- // methods
- public void __construct()
- public void sendRequest()
- private void getToken()
- public mixed getPrices()
- public mixed createUser()
- public mixed getUsers()
- public mixed getUser()
- public mixed getUserByExternalId()
- public void subscriptions()
- public mixed blockUser()
Members
protected
- $dealerID
—
string
Contains current instance dealer id - $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
private
- getToken() — Получаем токен
public
- __construct() — Thats constructor. What did you expect there?
- blockUser() — Блокировка пользователя Результат 1 - всё ок Результат 0 - уже заблокирован
- createUser() — Создание пользователя.
- getPrices() — Список тарифов
- getUser() — Получение абонента
- getUserByExternalId() — Поиск абонента по external_id
- getUsers() — Получение всех пользователей дилера
- sendRequest()
- subscriptions() — Активация подписки для пользователя.