简体   繁体   English

DropBox登录不起作用

[英]DropBox login not working

Using the DropBox api I attempt to log on with any details using their popup login form - 使用DropBox api,我尝试使用其弹出式登录表单登录任何详细信息-

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 - 并且它将始终触发DropBox在其整个代码中(尤其是在方法中)精心考虑到的异常警告-

-(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... 之后,用户登录正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM