sb15/vk-api-client

v0.0.1 2015-04-21 19:12 UTC

This package is auto-updated.

Last update: 2024-11-12 04:02:33 UTC


README

$accessToken = '';
$publicId = '';
$vk = new \Sb\ApiClient\Vk(['access_token' => $accessToken]);
$vk->getMethodWallPost()
    ->setPublicId($publicId)
    ->setMessage('message')
    ->addTag('tag')  
    ->addAttachmentPhoto(realpath('/tmp/1.jpg'))
    ->addAttachmentLink('http://link.com')
    ->call();