[英]how to differentiate between two dropbox users in an app in Dropbox api V2 in objctive-C
In my app, there can be multiple user and each user can link to their own dropbox account. 在我的应用中,可以有多个用户,每个用户都可以链接到他们自己的保管箱帐户。 Previously, I used
以前我用
setSharedSession:
But now that there is no DBSession object, how can I let user register different dropbox. 但是现在没有DBSession对象了,如何让用户注册不同的保管箱。 Everytime, one user is linking his dropbox, the previous one is getting replaced.
每次有一个用户链接他的保管箱时,上一个将被替换。
I am having real trouble with the new dropbox SDK (V2). 新的保管箱SDK(V2)确实给我带来了麻烦。 Can anyone please direct me to the right direction.
谁能指导我正确的方向。
Thanks in advance. 提前致谢。
The Dropbox API v2 Objective-C SDK documentation has information on supporting multiple different accounts via the SDK here: Dropbox API v2 Objective-C SDK文档在此处提供了有关通过SDK支持多个不同帐户的信息:
https://github.com/dropbox/dropbox-sdk-obj-c#multiple-dropbox-user-case https://github.com/dropbox/dropbox-sdk-obj-c#multiple-dropbox-user-case
For example, you can use authorizedClients
instead of authorizedClient
to access all of the saved clients. 例如,您可以使用
authorizedClients
而不是authorizedClient
来访问所有已保存的客户端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.