Create a vk token
The main purpose of repository is to format request config for VKAPI instance, so he could perform request and return data.
Each request is added to queue and executed only after timeout, calculated according to rps property, is elapsed. So, there is no case when you were banned due to sending too many requests per second.
There is a multi-thread multi-workers support for those projects which are launched in this mode. VK API has its restriction, so make sure you have passed correct value.
Additionally, you can pass properties accessToken and lang which will be used as default parameters for each create a vk token. So, you have no need to pass them each time until overriding is needed. It does not make any influence on outer code flow.
VK API как получить Access Token, метод авторизации implicit flow и standalone приложение вконтакте
If this value is not passed, requests will be executed in usual mode and on the browser side they will fail due to VK's CORS. Each repository is named according to its name in API.
So, you are free to perform custom requests. It contains property data which contains all error data it is typed, by the way.
Find Open Source By Browsing 7,000 Topics Across 59 Categories
Moreover, lib contains enum ErrorsEnum which is a set of all known errors. You can find more complex example here.
For example, you could create separate api instances for group and application which use different access tokens. So then, it is allowed to pass same property tunnelName for both provider and consumer.