DropNet / DropNet

Client Library for the Dropbox API
http://dropnet.github.io/dropnet.html
Apache License 2.0
421 stars 166 forks source link

Async login doesn't work #34

Closed xmblpb closed 12 years ago

xmblpb commented 13 years ago

When i try to use LoginAsync i cannot login successfully, instead get error:

error.ErrorMessage = "Value cannot be null.\r\nParameter name: s"

Same parameters with sync function Login works well.

Tested v1.5.5 on Windows

dkarzon commented 13 years ago

hmmm, I'll have a look at this one. Haven't had any issues myself and this is the first time its been mentioned...

dkarzon commented 13 years ago

Can you show me the code you are using to create the instance of the DropNetClient and the async login function?

xmblpb commented 13 years ago

Sorry, i has already deleted code, but i tried to follow documentation and samples

java1001 commented 13 years ago

Hello dkarzon , I have trouble about login dropbox in C# .I run first code sucess but run second fail . This is code :

var _client = new DropNetClient("KEY", "SECRET"); _client.Login("abc", "abc");

I give error : DropNetException (Token=null,Secret =null) . Would you help me with error ? Thank you !

[DK] - Removed your key from view...

dkarzon commented 13 years ago

Can you have a look at the Response property of the DropNetException? That might give you more of an idea what is not working.

java1001 commented 13 years ago

Yes , But I encounter trouble : First I upload image to dropbox by dropnet which success , but After two day , code Dropnet not work and bug DropnetException(Token=null , Secret=null).

I look at DropnetException :

{"error": "SERVICE UNAVAILABLE"}

Can dkazon help me fix that error ?
Cheer,

dkarzon commented 13 years ago

When you load the DropNetClient do you set the UserLogin property with the Token and Secret you saved from login?

java1001 commented 13 years ago

When I upload file image , I call command DropNetClient set UserLogin property. You can talk detail , I not understand your question ? Thank you!

dkarzon commented 13 years ago

OK, so the process for using the DropNetClient should go something like this:

See how the next run you have to give the client the Users token and secret that we got from login? This is to keep the same login session, otherwise we'll have to get the user to login each time they run the app.

dkarzon commented 13 years ago

Be sure to checkout the "How to use it" http://dkdevelopment.net/what-im-doing/dropnet/

java1001 commented 13 years ago

Thank dkarzon , I missed Token and Secrect , I not read detail http://dkdevelopment.net/what-im-doing/dropnet/ . Now it work . Have a fun day!