开发者

DropBox login not working

开发者 https://www.devze.com 2023-04-12 07:03 出处:网络
Using the DropBox api I attempt to log on开发者_运维技巧 with any details using their popup login form -

Using the DropBox api I attempt to log on开发者_运维技巧 with any details using their popup login form -

DBLoginController *dropBoxLoginController = [[DBLoginController new] autorelease];
dropBoxLoginController.delegate = self;
[dropBoxLoginController presentFromController:self];

and it will always trigger the exception warnings which DropBox have thoughtfully provided throughout their code, specifically in the method -

-(id)initWithText:andSecret:forRequest:usingMethod:

This fails to log in, & nothing I can do will make it work. Any suggestions welcome!


Silly me... (not unusual)

I didn't twig that the app had to sign in first, before any user can, using the following -

DBSession *dbSession = 
[[[DBSession alloc] initWithConsumerKey:@"My Consumer Key"
  consumerSecret:@"My Consumer Secret"]
 autorelease];
[DBSession setSharedSession:dbSession];

After that, the user login works fine...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号