objective-c - 更改用户后发生 iOS Dropbox API "not currently support by MPOAuthConnection"

标签 objective-c ios oauth dropbox-api

我正尝试在 iOS 上使用 Dropbox API,但当我尝试使用 loadMetadata 方法时遇到错误。

流程如下..


1.链接(用户A)

[[DBSession sharedSession] linkFromController:self];

2.允许在dropbox授权 View 上授权

3.取消链接(用户A)

[[DBSession sharedSession] unlinkAll];

4.链接(用户B)

[[DBSession sharedSession] linkFromController:self];

5.允许在dropbox授权 View 上授权

6.加载元数据

[[self restClient] loadMetadata:path];

但是这里我得到了错误:

Terminating app due to uncaught exception 'Unsupported Signature Method', reason: 
'The signature method "(null)" is not currently support by MPOAuthConnection'

loadMetaData 确实作为 UserA 正常工作,但在更改用户后无法正常工作。

我怀疑 unlink 的方法可能不够..但我不知道。

请给我任何建议以解决问题。任何帮助将不胜感激。

最佳答案

具体来说,Greg K. 说:

Make sure you clear all your DBRestClient objects when you unlink. If you try to use an old DBRestClient object it will cause this problem.

清除旧的 DBRestClient 应该是一件容易的事,但是当它晚了并且您正在遵循使其成为持久类变量的示例代码时,很容易跳过一两个大脑。

关于objective-c - 更改用户后发生 iOS Dropbox API "not currently support by MPOAuthConnection",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13985441/

相关文章:

asp.net - 如何知道 oauth 访问 token 是否过期

ios - 如何更新tableView中的数据?

iphone - 如何为 iPhone SDK 应用程序实现 Accordion View ?

php - Google oAuth 登录提示,成功后重定向到下载 playstore 应用

ios - UIGraphicsGetCurrentContext 问题

ios - 将 React Native 集成到现有 Swift 项目中 : 'string' file not found

java - Spring Oauth2 - 自定义异常处理程序

java - '->' 运算符在 Objective C 中代表什么?

ios - uiimageview 角半径在 tableView cellForRowAtIndexPath 中不起作用

ios - Apple 告诉 iOS8 上扩展的 64 位要求是什么意思?