Skip to content

NullRefExcep/ok-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

OK API

Latest Stable Version Total Downloads Latest Unstable Version License

(WIP)

php API for ok.ru

Installation

composer require nullref/ok-api

Usage

$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);

About

php API for ok.ru

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages