Im trying to Authenticate my application using Password Credentials OAuth (http://disqus.com/api/docs/auth/) with hardcoded username and password, here is my C# code:
string URI = "https://disqus.com/api/oauth/2.0/access_token/";
string myParameters = "grant_type=password&client_secret=[SECRET-KEY]&client_id=[PUBLIC-KEY]&scope=read,write";
WebClient wc = new WebClient();
string authInfo = "[username]" + ":" + "[password]";
authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));
wc.Headers["Authorization"] = "Basic " + authInfo;
wc.Headers["ContentType"] = "application/x-www-form-urlencoded";
string HtmlResult = wc.UploadString(URI, "POST", myParameters);
This returns a 400 (Bad Request) error.It says in the disqus docs "This type of flow is restricted to approved applications only, so you must request access first.", I'm not sure if that might be the problem, but I've been unable to find a way to "request access" for my app, or is this for premium users only?