We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Ed T.2
9 years agoExplorer | Level 4
get_shared_links returns empty array
When I call the get_shared_links API with a path, I get back a 200 but an empty links array. So in this scenario I call create_shared_link_with_settings. This API returns a "shared links already exist" error.
I am passing in a path of /Records/paul/Births/Thompson-Hayward-20160403133425.backup and my app is EvidentiaSoftware, so I expect it to be found sinc eit exists at /Apps/EvidentiaSoftware/Records/paul/Births/Thompson-Hayward-20160403133425.backup
What am I doing wrong?
var path = "/Records/paul/Births/Thompson-Hayward-20160403133425.backup" $http.post("https://api.dropboxapi.com/2/sharing/get_shared_links", JSON.stringify({ "path": path }), { headers: { 'Content-Type': "application/json", 'Authorization': 'Bearer ' + dSvc.GO.onlineStorage.D1.accessResponse.access_token } } ).then(function (res) { ... $http.post("https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings", JSON.stringify({ "path": path, "settings": { "requested_visibility": "public" } }), { headers: { 'Content-Type': "application/json", 'Authorization': 'Bearer ' + dSvc.GO.onlineStorage.D1.accessResponse.access_token } } ).then(function (res) {
[Cross-linking for reference: https://stackoverflow.com/questions/40477103/get-shared-links-returns-empty-array ]
Thanks for the report! We'll look into it.
By the way, we recommend using /2/sharing/list_shared_links instead anyway, since /2/sharing/get_shared_links is deprecated.
- Greg-DBDropbox Staff
[Cross-linking for reference: https://stackoverflow.com/questions/40477103/get-shared-links-returns-empty-array ]
Thanks for the report! We'll look into it.
By the way, we recommend using /2/sharing/list_shared_links instead anyway, since /2/sharing/get_shared_links is deprecated.
- Greg-DBDropbox StaffThis should be fixed now. Please let us know if you're still seeing any issues.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 6 hours 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!