One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
ShinehahGnolaum
7 years agoHelpful | Level 7
How do I get the information for the account that is currently logged in?
I would like to show the user the account that is currently logged in when he opens the app if he is already logged in in SwiftyDropbox in iOS. I am not able to find the documentation for that. There is currently no search feature in the documentation for Dropbox for Swift.
I accidentally ran into the answer in old sample code, and I went from there. It's
DropboxClient.users.getCurrentAccount()
- That's correct. You can find the documentation for that here:
https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/UsersRoutes.html#/s:FC13SwiftyDropbox11UsersRoutes17getCurrentAccountFT_GCS_10RpcRequestCCS_5Users21FullAccountSerializerCS_14VoidSerializer_
- ShinehahGnolaumHelpful | Level 7
I accidentally ran into the answer in old sample code, and I went from there. It's
DropboxClient.users.getCurrentAccount()
- Greg-DB
Dropbox Staff
That's correct. You can find the documentation for that here:
https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/UsersRoutes.html#/s:FC13SwiftyDropbox11UsersRoutes17getCurrentAccountFT_GCS_10RpcRequestCCS_5Users21FullAccountSerializerCS_14VoidSerializer_
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 2 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!