Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maksa988/vk-api-class
PHP class for working with VK API
https://github.com/maksa988/vk-api-class
Last synced: 17 days ago
JSON representation
PHP class for working with VK API
- Host: GitHub
- URL: https://github.com/maksa988/vk-api-class
- Owner: maksa988
- License: mit
- Created: 2015-09-07T16:02:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-07T18:23:57.000Z (about 9 years ago)
- Last Synced: 2024-10-10T18:23:09.922Z (about 1 month ago)
- Language: PHP
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VK API
[![Total Downloads](https://poser.pugx.org/maksa988/vk/downloads)](https://packagist.org/packages/maksa988/vk)
[![Latest Stable Version](https://poser.pugx.org/maksa988/vk/v/stable)](https://packagist.org/packages/maksa988/vk)
[![Latest Unstable Version](https://poser.pugx.org/maksa988/vk/v/unstable)](https://packagist.org/packages/maksa988/vk)
[![License](https://poser.pugx.org/maksa988/vk/license)](https://packagist.org/packages/maksa988/vk)PHP class for working with [VK API](https://vk.com/dev)
## Usage
1. Connect class
require('VK.php');
2. Create VK object
1. without access token (examples/example-1.php)$vk = new MAKSA\VKAPI('{APP_ID}', '{API_SECRET}');
2. with access token (examples/example-2.php)
$vk = new MAKSA\VKAPI('{APP_ID}', '{API_SECRET}', '{ACCESS_TOKEN}');
3. 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.](http://vk.com/dev/methods)
* `{PARAMETERS}` — Parameters of the corresponding API methods.## Development
- Source hosted at [GitHub](https://github.com/maksa988/VK-API-Class)
- Report issues, questions, feature requests on [GitHub Issues](https://github.com/maksa988/VK-API-Class/issues)## Author
Website: [Maksa988](https://github.com/zelenin/)
Email: [[email protected]](mailto:[email protected])