Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vodka2/vk-audio-token

Library that obtains VK tokens that work for VK audio API. Библиотека для получения токена VK, подходящего для Audio API.
https://github.com/vodka2/vk-audio-token

audio music vk vkontakte

Last synced: about 22 hours ago
JSON representation

Library that obtains VK tokens that work for VK audio API. Библиотека для получения токена VK, подходящего для Audio API.

Awesome Lists containing this project

README

        

# Library that obtains VK tokens that work for VK audio API

Read this in [russian](README.ru.md).

Python port of this library: [vodka2/vkaudiotoken-python](https://github.com/vodka2/vkaudiotoken-python)

This library obtains VK token, that works for VK audio API, so you can search artists, songs, albums, query audio URIs, add audios to "My audios" etc. The library supports Kate Mobile, Boom and VK Official clients. (Thanks to YTKABOBR for reversing the Boom client)

Actually there two versions of VK API, one for Kate Mobile and one for the official client. Boom client uses VK API somewhat similar to Kate one, but it has some limitations, not all methods are supported. Moreover it requires `messages` permission (do they scan our messages?) and sometimes returns 500 errors. On the other hand it supports another API in addition to VK API and may be used as a fallback.

## Installation

```
composer require vodka2/vk-audio-token
```

... or simply copy the cloned repository somewhere and include `src/autoloader.php`. The library requires no dependencies.

## Getting tokens

The simplest example:

```php