I am receiving the following error: "request token has not been properly authorized by user". The issue lies in the RequestToAccessToken() method.
The following is my code:
private DropNetClient _client;
private UserLogin _userlogin;
private string APP_KEY = "##";
private string APP_SECRET = "##";
private void Dropnet()
{
_client = new DropNetClient(APP_KEY, APP_SECRET);
// Get request token asynchronously
_client.GetTokenAsync(
(userLogin) =>
{
// Authorize app
var tokenUrl = _client.BuildAuthorizeUrl();
RequestToAccessToken();
},
(error) =>
{
MessageBox.Show(error.Response.Content);
});
}
private void RequestToAccessToken()
{
_client.GetAccessTokenAsync(
(userLogin) =>
{
_userlogin = userLogin;
},
(error) =>
{
MessageBox.Show(error.Response.Content);
});
}
Any help would be appreciated, thanks!