vk.com API
Getting access
To use vk.com API you need an access token. There are several types of tokens, and the official documentation describes the process of obtaining each of them well. Based on our experience, we can offer you the fastest way to get a token - from the official application
Steps:
Sign up in social network
Go to https://vkhost.github.io and choose any application (I prefer vk.com)
Grant access to your account and copy access_token parameter from URL
- Pros:
You can use methods that are prohibited by unofficial applications (messages section for example)
- Cons:
The token has a certain lifetime (~12 hours)
Making API request
To make request to vk.com API we need send GET or POST HTTP request to address https://api.vk.com/method/METHOD with parameters of specific method, access token, version and other parameters (see official documentation for more details). This module is needed in order to protect you from raw HTTP requests and provide a convenient interface for making requests.