Thanks :)
this is the solution:
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
System.Net.Http.Headers.AuthenticationHeaderValue.Parse("Basic " + base64);
var postData = new List<KeyValuePair<string, string>>();
postData.Add(new KeyValuePair<string, string>("grant_type", "password"));
postData.Add(new KeyValuePair<string, string>("client_secret",
App.SECRETKEY));
postData.Add(new KeyValuePair<string, string>("client_id", App.APIKEY));
postData.Add(new KeyValuePair<string, string>("scope", "read,write"));
HttpContent content = new FormUrlEncodedContent(postData);
HttpResponseMessage res = await client.PostAsync("
https://disqus.com/api/oauth/2.0/access_token/", content);
Il giorno luned́ 2 luglio 2012 17:41:51 UTC+2, Vinney K ha scritto:
> @Marcor,
> According to this thread (
> https://groups.google.com/forum/?fromgroups#!topic/disqus-dev/S6SavcJ...)
> you need to post the values via the request body rather than the
> querystring. That said, I've still not been able to get that working
> either; instead I get a new error about an invalid API version. I wont be
> back on that until tonight but I'll let you know if/when I figure it out.
> Hopefully you'll let me know if you beat me to the punch.
> BTW, it's nice to see another .NET dev in this anti-.net world! Sexy
> async/await too!
> Vinney