Skip to content

Unofficial. Get the access token for VK private (e.g. audio) APIs

License

Notifications You must be signed in to change notification settings

vksdk/vk-audio-token-fetcher

Repository files navigation

VK Audio token fetcher

Unofficial tool for accessing private VK APIs, e.g. to access audio.

Example

val vkTokenFetcher = VkTokenFetcher(
    httpClient = HttpClient(OkHttp),
    json = Json { /* ... */ }
)

val login = "+79991234567"
val password = "vk == **it"
val scopes = "audio,offline"

val (token, userId) = vkTokenFetcher.getToken(
    username = login,
    password = password,
    scopes = scopes
)

And then, you can use VK Kotlin SDK to access API with obtained token.

3rd party

Also, thanks to microG.

Disclaimer

License: see the license.

For educational use only. There is no liability for the repository authors.

The main purpose of this library to be able to access the private VK audio APIs, which must not be private, because there is a lot of audio media content which is not licensed but volunteered to the community by the authors, but VK adds own advertisement and other limitations, earns money on this, and gives nothing to the authors.