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
Account.SettingsChange(string data)
KirMozor edited this page May 5, 2022
·
1 revision
Changes the settings of the account. Send data in json format. I need token authorization
Example:
using System;
using YandexMusicApi;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Token.token = "YOURTOKEN";
string settings = "{\n\"theme\": \"black\", \n\"volumePercents\": 80, \n\"adsDisabled\": true \n}";
Account.SettingsChange(settings);
}
}
}
Output:
{
"invocationInfo": {
"req-id": "5464576547347834834568",
"hostname": "music-stable-back-vla-43.vla.yp-c.yandex.net",
"exec-duration-millis": 23
},
"result": {
"uid": 45334573478,
"lastFmScrobblingEnabled": ghfhfh,
"facebookScrobblingEnabled": sdfgsdgsdg,
"shuffleEnabled": sdfgsdfgsdgsdf,
"addNewTrackOnPlaylistTop": sdfgsdfer,
"volumePercents": 80,
"userMusicVisibility": "dfghsdhsgh",
"userSocialVisibility": "dfgsdfgsgdf",
"adsDisabled": true,
"modified": "fsdhdfhdsfghjsdgh",
"rbtDisabled": sdfgsdfhgshg,
"theme": "black",
"promosDisabled": sdfhshd,
"autoPlayRadio": sdfgdfsgs,
"syncQueueEnabled": sdfgdfgs,
"childModEnabled": sdsdfgsdfg
}
}