Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/vodka2/vk-audio-token
- Owner: vodka2
- Created: 2018-07-27T04:31:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T21:39:24.000Z (about 2 years ago)
- Last Synced: 2025-01-22T23:09:55.713Z (9 days ago)
- Topics: audio, music, vk, vkontakte
- Language: PHP
- Homepage: https://vodka2.github.io/vk-audio-token/
- Size: 6.75 MB
- Stars: 116
- Watchers: 14
- Forks: 24
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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