I have written the following code to connect and retrieve a token from the Autodesk
. but this does not work properly:
var client = new RestClient("https://accounts.autodesk.com");
client.Authenticator = OAuth1Authenticator.ForRequestToken(consumerKey, consumerSecret);
var request = new RestRequest("OAuth/RequestToken", Method.POST);
var response = await _client.Execute(request);
Executing the request it throws a bad request exception.
Response status code does not indicate success: 400 (Bad Request).
For consumerKey
and consumerSecret
I respectively used my email and the associated password that I've already registered in accounts.autodesk.com
How can I understand if I'm sending the request in a wrong format or I just send a wrong consumerKey
and consumerSecret
. And If they are wrong could you please guide me where I can obtain these parameters from Autodesk?