Token
extends Base
in package
Token class.
Table of Contents
- $config : Config
- Config.
- $token : string
- Special token to authorization.
- __construct() : mixed
- Constructor.
- authorize() : void
- Authorization.
- request() : string
- Function to send request.
Properties
$config
Config.
public
Config
$config
$token
Special token to authorization.
private
string
$token
Methods
__construct()
Constructor.
public
__construct(Config $config) : mixed
Parameters
- $config : Config
Return values
mixed —authorize()
Authorization.
public
authorize() : void
Return values
void —request()
Function to send request.
public
request(string $method, string $action[, array<string|int, mixed> $params = [] ]) : string
Parameters
- $method : string
- $action : string
- $params : array<string|int, mixed> = []