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

Rotor.StationDashboard()

KirMozor edited this page May 6, 2022 · 1 revision

Returns radio stations to you from the main page

Example:

using System;
using YandexMusicApi;

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

Output:

{
  "invocationInfo": {
    "hostname": "music-stable-back-vla-27.vla.yp-c.yandex.net",
    "req-id": "15n645n7rufy4567h3467hyh",
    "exec-duration-millis": "283"
  },
  "result": {
    "dashboardId": "w45tyyhrtnryunryrtnysrursun",
    "stations": [
      {
        "station": {
          "id": {
            "type": "user",
            "tag": "onyourwave"
          },
          "name": "Моя волна",
          "icon": {
            "backgroundColor": "#2AA75B",
            "imageUrl": "avatars.yandex.net/get-music-misc/70850/rotor-personal-station-icon/%%"
          },
          "mtsIcon": {
            "backgroundColor": "#2AA75B",
            "imageUrl": "avatars.yandex.net/get-music-misc/70850/rotor-personal-station-icon/%%"
          },
          "fullImageUrl": "avatars.yandex.net/get-music-misc/70850/img.5ec4fb88d7b1560bc894e184/%%",
          "idForFrom": "user-onyourwave",
          "restrictions": {
            "language": {
              "type": "enum",
              "name": "По языку",
              "possibleValues": [
                {
                  "value": "any",
                  "name": "Любой"
                }
              ]
            },
            "mood": {
              "type": "discrete-scale",
              "name": "Под настроение",
              "min": {
                "value": 1,
                "name": "Грустнее"
              },
              "max": {
                "value": 4,
                "name": "Веселее"
              }
            },
            "energy": {
              "type": "discrete-scale",
              "name": "Энергичность",
              "min": {
                "value": 1,
                "name": "Спокойнее"
              },
              "max": {
                "value": 4,
                "name": "Бодрее"
              }
            },
A lot of text
Clone this wiki locally