0

Trouble signin using the API

shaqman 12 лет назад 0
Hi,

I am working on a plugin for windows live writer using .net. The plugin tasks is just to upload images to imgur instead of the default location.

So far, I have successfully created the code to upload using anonymous API's but when I am trying to use the OAuth version, it seems I couldn't sign in.

Here is the error:
<?xml version="1.0" encoding="utf-8"?><error><message>The consumer_key "xxx" token "yyy" combination does not exist or is not enabled.</message><request>/2/signin</request><method>get</method><format>xml</format><parameters>oauth_consumer_key = xxx, oauth_n</parameters></error>
Currently I am signing in with the access token that have been retrieved and stored. Am I doing this correctly?

Anyone know something that I might be doing wrong?

Thanks.

Regards,
shaqman


Update:
It turns out that I did a logical error. The inputted key was the wrong one. Now I've fixed it and got another error.
<?xml version="1.0" encoding="utf-8"?><error><message>No username was sent</message><request>/2/signin</request><method>get</method><format>xml</format><parameters>oauth_consumer_key = xxx, oauth_n</parameters></error>

Honestly, I dont understand whoch username should I send. I mean, the point of using OAuth is to delegate the users identity to a key, right? So, I don't really know which username to send or how to retrieve the username.

Сервис поддержки клиентов работает на платформе UserEcho