library vk
PHP class for working with VK API
maksa988/vk
PHP class for working with VK API
- Monday, September 7, 2015
- by maksa988
- Repository
- 1 Watchers
- 0 Stars
- 8 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
VK API
, (*1)
PHP class for working with VK API, (*2)
Usage
-
Connect class, (*3)
require('VK.php');
-
Create VK object, (*4)
-
without access token (examples/example-1.php), (*5)
$vk = new MAKSA\VKAPI('{APP_ID}', '{API_SECRET}');
-
with access token (examples/example-2.php), (*6)
$vk = new MAKSA\VKAPI('{APP_ID}', '{API_SECRET}', '{ACCESS_TOKEN}');
-
Usage API, (*7)
$vk->api('{METHOD_NAME}', '{PARAMETERS}');
Other methods
- Set version of API.
$vk->setApiVersion({NUBMER});
Variables
-
{APP_ID} — Your application's identifier.
-
{API_SECRET} — Secret application key.
-
{ACCESS_TOKEN} — Access token.
-
{METHOD_NAME} — Name of the API method. All methods.
-
{PARAMETERS} — Parameters of the corresponding API methods.
Development
Author
Website: Maksa988
Email: admin@maksa988.ru, (*8)