We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Mull999
2 years agoExplorer | Level 3
SwiftyDropbox
I am attempting to integrate Dropbox into my SwiftUI project. In the AppDelegate func(application...) I am getting an error stating that setupWithAppKey(<APP_KEY>) is not a member type of DropboxCl...
Mull999
2 years agoExplorer | Level 3
Hi Greg
OK, solved the issue with Xcode and simulators. The issue I have with SwiftyDropbox has now moved on to the logon. I get a message saying I need to add identifier to the URL Types. When I add URL Types in the infoList I have
What to type into Identifier and URL Schemes?
Richard
Mull999
2 years agoExplorer | Level 3
Greg
Ignore my last message, I have resolved those issues and I can now login to my Dropbox account. What I don't understand is how to programatically access my App folder and then how to create a new folder. Reading Github I see a construct like:
client.files.createFolder(path: "\test\path\in\Dropbox\account". response etc
My question is what will my path be, the above looks like a generalised example.
- Greg-DB2 years ago
Dropbox Community Moderator
It looks like you're referring to this example here. That does show a made up example path, but note that paths in Dropbox use "/" as the path separator like shown in that example, not "\".
Paths in Dropbox will be relative to some root, based on the app and configuration. For apps with the app folder access type, the paths are automatically relative to the app folder. So, if you want to make a folder named "NewFolder" inside the app folder, you would supply a path of "/NewFolder". If you wanted to list the contents of that new folder (which would be empty initially), you would start by supplying a path of "/NewFolder" to listFolder. Or to start listing the contents of the app folder itself, you would supply a path of the empty string "" to listFolder.
The File Access Guide may be helpful to review for more information on how to interact with files and folders on the Dropbox API.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!