(WIP)
php API for ok.ru
composer require nullref/ok-api
$auth['client_id'] = '0000000000';
$auth['client_secret'] = 'AAAAAAAAAAAAAAAAAAAAA';
$auth['application_key'] = 'AAAAAAAAAAAAAA';
$auth['access_token'] = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA';
$okApi = new OkApi();
$okApi->auth = $auth;
$okApi->log = true;
$method = 'photosV2.getUploadUrl';
$result = $okApi->makeRequest($method, [
'gid' => '51270023053448',
'count' => 3,
]);
print_r($result);