PhotobucketNet photo upload

Posted by n1tr0 on Stack Overflow See other posts from Stack Overflow or by n1tr0
Published on 2012-02-21T19:13:38Z Indexed on 2012/12/02 17:05 UTC
Read the original article Hit count: 130

Filed under:
|
|
|

I have a problem with PhotobucketNet user login(I need user to login so I can upload a picture from HDD to his Photobucket account).

Photobucket photobucket = new Photobucket("myapikey", "myapisecret");
photobucket.LaunchUserLogin();
// the problem happens here
photobucket.RequestUserToken();

If I call RequestUserToken() it will happen immediately, so I'll get a crash cause user didn't logged in, and there is no event that's been raised after user logs in. Is there some variable(bool or something else) that I can check to see if user logged in - maybe to put it in a loop with timer? Also is their a way to know if user canceled logging in? I know that timer isn't a good solution, so if anyone has anything better as an idea, I'm open for any suggestions...

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET