Api
Class Api Work with VK API through http requsts
Table of Contents
Constants
Properties
- $apiUrl : mixed
- $apiVersion : mixed
Methods
- __construct() : mixed
- Api constructor.
- run() : mixed|null
- Send a request to single VK API method with params.
Constants
TOO_MANY_REQUESTS_ERROR_CODE
public
mixed
TOO_MANY_REQUESTS_ERROR_CODE
= 6
Properties
$apiUrl
public
static mixed
$apiUrl
= 'https://api.vk.com/method/'
$apiVersion
public
static mixed
$apiVersion
= "5.131"
Methods
__construct()
Api constructor.
public
__construct(mixed $accessToken, mixed $exportId) : mixed
Parameters
- $accessToken : mixed
-
- string of accesstoken from VK
- $exportId : mixed
-
- int
Tags
run()
Send a request to single VK API method with params.
public
run(string $method[, array<string|int, mixed> $params = array() ]) : mixed|null
Parameters
- $method : string
-
- Name of VK-API method (see VK manual).
- $params : array<string|int, mixed> = array()