We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
petepete717
2 years agoHelpful | Level 6
createSharedLinkWithSettings: Use external link in iOS app
I am creating a sharing link using client.sharing.createSharedLinkWithSettings(path: "/MyTestPath").response { response, error in if let link = response { let linkU...
- 2 years ago
Thank you very much. I didn't understand that I needed to run the result through a switch statement as the ShareFolderLaunch returned is a Dropbox-union:
client.share.shareFolder(path:"/MyTestPath").response { shareResult, error in
switch shareResult {
case .complete(let shareData):
// Use metadata here
case .asyncJobId(.....
Now it works perfectly!
Greg-DB
Dropbox Staff
I don't believe we have sample code for these in particular, but you can call those methods much the same way as you would call createSharedLinkWithSettings, and get the information from the response object.
Note that the folder sharing operation may run asynchronously though. If successful, the shareFolder response will be a ShareFolderLaunch which will either be 'complete' and give you a SharedFolderMetadata directly, or 'asyncJobId', in which case you poll checkShareJobStatus to get the SharedFolderMetadata. Either way, once you get the SharedFolderMetadata, you can get the shared folder ID from SharedFolderMetadata.sharedFolderId.
petepete717
2 years agoHelpful | Level 6
Thank you very much. I didn't understand that I needed to run the result through a switch statement as the ShareFolderLaunch returned is a Dropbox-union:
client.share.shareFolder(path:"/MyTestPath").response { shareResult, error in
switch shareResult {
case .complete(let shareData):
// Use metadata here
case .asyncJobId(.....
Now it works perfectly!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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!