iiispikeriii/soc-api

API social resources

dev-master 2015-08-02 08:57 UTC

This package is auto-updated.

Last update: 2024-04-26 17:29:19 UTC


README

API social resources

Used API: VK, GOOGLE, INSTAGRAM, FLICKR

VK

if auth false

$vk = new Vk();
$data = $vk->run('photos.search',array('q' => 'cats', 'count' => 5));

if auth true

$vk = new Vk(
    array(
        'redirect_url'  => 'XXXXXXXXXXXX',
        'app_id'        => 'XXXXXX',
        'secret_key'    => 'XXXXXXXXXXXXXXXXX',
    )
);
$data = $vk->run('audio.getLyrics',array('lyrics_id' => '2428970'), true);

GOOGLE

$google = new Google();

web, images

$data = $google->run('web',array('q' => 'Пингвин'));