public string GetToken(string code)
 {
     using (var client = new HttpClient())
     {
         if (Task.Run(async() => await m.AuthorizeAsync(code, "http://localhost:9680/Auth/Index")).Result)
         {
             return(m.Credentials.AccessToken);
         }
         return(null);
     }
 }
Ejemplo n.º 2
0
 private void btnAccessToken_Click(object sender, EventArgs e)
 {
     meli.AuthorizeAsync(textBox1.Text, "https://trendsistemas.com/ml_response.php");
     //  GetVariacion();
     GetCategoriasRopa();
 }