Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Default.GetAllFeed()

KirMozor edited this page May 4, 2022 · 1 revision

Getting a Feed from your account at Yandexmusic

It is required to transfer token to the public variable Token.token. The token is automatically recorded in Token.token when calling the Token.GetToken() method

Example:

using System;
using YandexMusicApi;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Token.GetToken("loginOrEmail", "password");
            Console.WriteLine(Token.token);
            Console.WriteLine(Default.GetAllFeed());
        }
    }
}

Output:

YOUR TOKEN
{"invocationInfo":{"hostname":"music-stable-back-vla-45.vla.yp-c.yandex.net","req-id":"1651674398020775-17782664152852525743","exec-duration-millis":"1243"},"result":{"nextRevision":"2022-04-12","canGetMoreEvents":true,"pumpkin":false,"isWizardPassed":true,"generatedPlaylists":[{"type":"podcasts","ready":true,"notify":true,"data":{"owner":{"uid":958549141,"login":"yamusic-podcasts","name":"yamusic-podcasts","sex":"unknown","verified":true},"playlistUuid":"d9576043-f705-e771-ab0e-de6e36d40707","available":true,"uid":958549141,"kind":34990996,"title":"Подкасты: собрано для вас","description":"Слушайте с пользой: подкасты, которые могут вам понравиться","descriptionFormatted":"Слушайте с пользой: подкасты, которые могут вам понравиться","revision":0,"snapshot":1,"trackCount":15,"visibility":"public","collective":false,"created":"2022-01-21T18:04:21+00:00","modified":"2022-05-04T03:00:00+00:00","isBanner":false,"isPremiere":false,"idForFrom":"podcasts","everPlayed":false,"coverWithoutText":{"type":"pic","dir":"/get-music-user-playlist/51766/r5lozaD9dIqH2r/","version":"1641996983928","uri":"avatars.yandex.net/get-music-user-playlist/51766/r5lozaD9dIqH2r/%%?1641996983928","custom":true},"urlPart":"podcasts","durationMs":11230730,"cover":{"type":"pic","dir":"/get-music-user-playlist/51766/r5lozaD9dIqH2r/","version":"1641996332314","uri":"avatars.yandex.net/get-music-user-playlist/28719/r5loh7rM0HS0tl/%%?1641996332314","custom":true},"ogImage":"avatars.yandex.net/get-music-user-playlist/69910/r5loh92itoCVTn/%%" A lot of text

Another variant:

using System;
using YandexMusicApi;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Token.token = "YOURTOKEN";
            Console.WriteLine(Default.GetAllFeed());
        }
    }
}

The conclusion is the same

Clone this wiki locally