cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Known issues updated. Learn more

VBA code to get Shared Folder link

Level 3

Hi

Can somebody please tell me if it's possible to retrieve a shared folder link (that I will later send on to a 3rd party) using VBA and presumably the DropBox API?  I know the exact path to the folder on my C drive that I would like to send a link to ("C:\Users\me\Dropbox\JobName\Folder2Link") so just want to retrieve the share link that I would normally get by right-clicking on the folder in question and selecting 'Copy Dropbox Link' from the menu.

If it is possible, I would very much appreciate some direction on how to accomplish this.

Thanks very much

 

3 Replies

Re: VBA code to get Shared Folder link

Dropboxer

Yes, the Dropbox API does offer the ability to programmatically create shared links like this. That's available via the /2/sharing/create_shared_link_with_settings endpoint

We recommend using one of the official Dropbox API v2 SDKs to access the API if possible. 

For instance, in the Dropbox API v2 .NET SDK, this functionality is available as the CreateSharedLinkWithSettingsAsync method.

When using the API, file paths should be relative to the Dropbox root, so in your example the path would be "/JobName/Folder2Link".

Reply
Loading...

Re: VBA code to get Shared Folder link

Level 3

Thanks very much Greg

If you could point me in the direction of where to download the API. and some samples of VBA code that I can relate to, I'd be most grateful.

Thanks very much

Graham

Reply
Loading...

Re: VBA code to get Shared Folder link

Dropboxer

I don't believe we have any samples or resources for VBA in particular unfortunately. If you can't use one of the official SDKs (or a third party library), you'll need to use the HTTPS API directly. You can find the documentation for the HTTPS endpoints here:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_... 

That includes curl examples that you can translate for whatever HTTPS client you're using.

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post