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

Account.ShowInformAccount()

KirMozor edited this page May 5, 2022 · 1 revision

Returns you information about the account. Need a token

Example:

using System;
using YandexMusicApi;

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

Output:

{
  "invocationInfo": {
    "hostname": "music-stable-back-vla-55.vla.yp-c.yandex.net",
    "req-id": "sdfgsdfhsdhsdfh3456345-234532432632346",
    "exec-duration-millis": "67"
  },
  "result": {
    "account": {
      "now": "324632762375257",
      "uid": 234523723,
      "login": "23427gfhjfdg",
      "region": 342572375753,
      "fullName": "gfherjhwrtj3246",
      "secondName": "fsdh346346",
      "firstName": "fdg346347",
      "displayName": "adfg46q324323",
      "serviceAvailable": false,
      "hostedUser": false,
      "passport-phones": [
        {
          "phone": "+6458458354"
        }
      ],
      "registeredAt": "34534838ghf"
    },
    "permissions": {
      "until": "rtgh47346737",
      "values": [
        "landing-play",
        "feed-play",
        "radio-play",
        "mix-play",
        "radio-skips",
        "library-cache",
        "library-play",
        "high-quality",
        "ads-skips",
        "non-shuffled-play",
      ],
      "default": [
        "landing-play",
        "feed-play",
        "radio-play",
        "play-radio-full-tracks"
      ]
    },
    "subscription": {
      "autoRenewable": [
        {
          "expires": "8j578n567j674567j45675675467",
          "vendor": "Yandex",
          "vendorHelpUrl": "https://www.yandex.ru/support/music-app/subscription.xml",
          "productId": "ru.yandex.mobile.music.1month.autorenewable.native.app.1month.trial.plus.kz",
          "product": {
            "productId": "ru.yandex.mobile.music.1month.autorenewable.native.app.1month.trial.plus.kz",
            "type": "subscription",
            "commonPeriodDuration": "P1M",
            "trialPeriodDuration": "P1M",
            "duration": 30,
            "trialDuration": 30,
            "price": {
              "amount": 456.0,
              "currency": "RUB"
            },
            "plus": true,
            "feature": "new-plus",
            "features": [
              "basic-music",
              "basic-kinopoisk",
              "basic-plus"
            ],
            "debug": false
          },
          "orderId": 457347336454,
          "finished": false
        }
      ],
      "nonAutoRenewableRemainder": {
        "days": 0
      },
      "hadAnySubscription": true,
      "canStartTrial": false,
      "mcdonalds": false
    },
    "subeditor": false,
    "subeditorLevel": 0,
    "pretrialActive": false,
    "masterhub": {
      "activeSubscriptions": [],
      "availableSubscriptions": []
    },
    "plus": {
      "hasPlus": true,
      "isTutorialCompleted": false
    },
    "defaultEmail": "h544h734678j6872468j246848j@gmail.com",
    "userhash": "v436t3q357nh346m8k35679356k383578935k98i35"
  }
}
Clone this wiki locally