maksa988 / vk
PHP class for working with VK API
1.1.0
2015-09-07 18:14 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-11-06 09:15:36 UTC
README
PHP class for working with VK API
Usage
-
Connect class
require('VK.php');
-
Create VK object
-
without access token (examples/example-1.php)
$vk = new MAKSA\VKAPI('{APP_ID}', '{API_SECRET}');
-
with access token (examples/example-2.php)
$vk = new MAKSA\VKAPI('{APP_ID}', '{API_SECRET}', '{ACCESS_TOKEN}');
-
-
Usage API
$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
- Source hosted at GitHub
- Report issues, questions, feature requests on GitHub Issues
Author
Website: Maksa988 Email: admin@maksa988.ru