This uses the Dropbox Python SDK to create a shared link for a folder:
import dropbox
dbx = dropbox.Dropbox("<ACCESS_TOKEN>")
shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/Testing")
print shared_link_metadata.url
<ACCESS_TOKEN> should be...
Dropbox.authorizedClient!.sharing.createSharedLink(path: "/test.txt").response({ response, error in
if let link = response {
print(link.url)
} else {
print(error!)
}
})
This uses the Dropbox Python SDK to create a shared link for a file and also supplies a requested visibility and expiration in the settings:
import datetime
import dropbox
dbx = dropbox.Dropbox("<ACCESS_TOKEN>")
expires = datetime.datetime.now() + datetime.timedelta(days=30...
This uses the Dropbox Java SDK to create a shared link for a file at the Dropbox path /test.txt:
try {
SharedLinkMetadata sharedLinkMetadata = client.sharing().createSharedLinkWithSettings("/test.txt");
System.out.println(sharedLinkMetadata.getUrl());
} catch (CreateSharedLinkW...
This example uses the Dropbox .NET library to get a shared link for a file, either by creating a new one, or retrieving an existing one:
SharedLinkMetadata sharedLinkMetadata;
try {
sharedLinkMetadata = await this.client.Sharing.CreateSharedLinkWithSettingsAsync (path);
} catch (ApiException...
This uses the Dropbox Java SDK to retrieve an existing shared link for /Testing/test.txt specifically:
ListSharedLinksResult listSharedLinksResult = client.sharing()
.listSharedLinksBuilder()
.withPath("/Testing/test.txt").withDirectOnly(true)
.start();
System....