Пример #1
0
        public string Get([FromQuery] string code)
        {
            MixinApi mixinApi = new MixinApi();

            mixinApi.Init(USRCONFIG.ClientId, USRCONFIG.ClientSecret, USRCONFIG.SessionId, USRCONFIG.PinToken, USRCONFIG.PrivateKey);

            string token = mixinApi.GetClientAuthToken(code);

            System.Console.WriteLine(token);

            var a = mixinApi.ReadProfile(token);
            var b = mixinApi.ReadAssets(token);

            return(b.ToString());
        }