This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Playlist.GetPlaylistUser(string userId)
KirMozor edited this page May 7, 2022
·
1 revision
Getting user playlists by UserID. Reuquired token
Example:
using System;
using YandexMusicApi;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Token.token = "YOURTOKEN";
Console.WriteLine(Playlist.GetPlaylistUser("541320800"));
}
}
}
Output:
{
"invocationInfo": {
"hostname": "music-stable-back-vla-56.vla.yp-c.yandex.net",
"req-id": "3o60q37h7u7i57i34570uh245245i7u24yu2359u12",
"exec-duration-millis": "6"
},
"result": [
{
"owner": {
"uid": 541320800,
"login": "cherkalexander",
"name": "Александр Черкашин",
"sex": "male",
"verified": false
},
"playlistUuid": "8d6668b2-dfd2-e5df-8e7c-e20903bfc37a",
"available": false,
"uid": 541320800,
"kind": 1006,
"title": "abc",
"revision": 1,
"snapshot": 3,
"trackCount": 0,
"visibility": "public",
"collective": false,
"created": "2021-03-06T02:13:40+06:00",
"modified": "2021-03-06T02:13:40+06:00",
"isBanner": false,
"isPremiere": false,
"durationMs": 0,
"cover": {
"error": "cover doesn't exist"
},
"ogImage": "",
"tags": []
},
{
"owner": {
"uid": 541320800,
"login": "cherkalexander",
"name": "Александр Черкашин",
"sex": "male",
"verified": false
},
"playlistUuid": "585713db-c6db-f78f-84d2-d6c3baa2ea69",
"available": true,
"uid": 541320800,
"kind": 1003,
"title": "Переименован",
"description": "",
"descriptionFormatted": "",
"revision": 2,
"snapshot": 5,
"trackCount": 1,
"visibility": "public",
"collective": false,
"created": "2021-03-05T12:35:05+06:00",
"modified": "2021-03-05T12:38:10+06:00",
"isBanner": false,
"isPremiere": false,
"durationMs": 203870,
"cover": {
"type": "mosaic",
"itemsUri": [
"avatars.yandex.net/get-music-content/163479/b3e3efc4.a.7019257-3/%%"
],
"custom": false
},
"ogImage": "avatars.yandex.net/get-music-content/163479/b3e3efc4.a.7019257-3/%%",
"tags": []
}
]
}