MarshalX / yandex-music-api

Неофициальная Python библиотека для работы с API сервиса Яндекс.Музыка
https://yandex-music.rtfd.io
GNU Lesser General Public License v3.0
913 stars 79 forks source link

Нереализованные методы #194

Open MarshalX opened 4 years ago

MarshalX commented 4 years ago

Тут хранится список того, что ещё необходимо исследовать и заметки по этим пунктам. По мере исследования будут создавать отдельные issue.

Легкие задачи с большим приоритетом:

Сложные задачи с низким приоритетом:

Низкий приоритет:

Исследованные фичи готовые для реализации:

MarshalX commented 4 years ago
* Получение и работа с аудиорекламой.

Случайно получилось, что найден эндпоинт для получения рекламы в #185

MarshalX commented 4 years ago

Информация от ᴀʀᴛʜᴜʀ ᴡᴀʏɴᴇ‌‌‏

/referrer/ result returns some perks, depends on user subscription, cannot be invoked w/o auth token, UA is not affecting on result

curl -s -H "Authorization: OAuth AgAAAAAT0ken" 'https://api.music.yandex.net/referrer/status?mode=query'

{"result":{"success":true,"available":false,"token":"-int","count":0,"subscription_duration":int,"friends_count":int,"upsaleStatus":"disabled","show":false,"promote_yearly_subscription":true}}

/ads/ result returns what should be played next, depends on user subcription, can be invoked w/o auth token, UA is not affecting on result

curl -s "https://api.music.yandex.net/ads/show-ads?track-id=517844&from=radio-mobile-album-28072-overflow"

{"result":{"afterSkip":"none","afterPlay":"none"}}

/trends/ result returns track infos, depends on user music taste, can be invoked w/o auth token, UA is not affecting on result

curl -s --data-binary "" -X GET "https://api.music.yandex.net/search/trends?pageSize=35&page=0"

/push/ result returns ok or fail, cannot be invoked w/o auth token, UA and other headers is mandatory, used for Apple Mobile Push Services

curl -s -H "Authorization: OAuth AgAAAAAT0ken" -H "X-Yandex-Music-Client-Now: 2020-01-18T20:25:33.792Z" -H "X-Yandex-Music-Device: os=iOS; os_version=12.1.3; manufacturer=Apple; model=iPhone9,3; clid=0; device_id=00000000-0000-0000-0000-000000000000; uuid=00000000000000000000000000000000; mcc=250; mnc=02" -H "User-Agent: Maple/479 (iPhone; iOS 12.1.3; Scale/2.00)" -H "X-Yandex-Music-Client: YandexMusic/479" -H "Ya-Client-User-Agent: Maple/479 (iPhone; iOS 12.1.3; Scale/2.00)" --data "platform=ios&push_token=0000000000000000000000000000000000000000000000000000000000000000" "https://api.music.yandex.net/push/update-token"