cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are making some updates so the Community might be down for a few hours on Monday the 11th of November. Apologies for the inconvenience and thank you for your patience. You can find out more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Problem with share links

Problem with share links

DavidG11
New member | Level 2

Hello.

 

I have some issue using the API and the Shared link

 

  • list_shared_links always return "true" for hasMore
  • Exception in 2/sharing/create_shared_link_with_settings: {".tag":"shared_link_already_exists","shared_link_already_exists":null} is raised but the shared link (I want to create) wasn't in the retrieved links I got with list_shared_links
4 Replies 4

Здравко
Legendary | Level 20

@DavidG11 wrote:

...

  • list_shared_links always return "true" for hasMore

...


Hi @DavidG11,

Did you continue with the cursor returned? 🧐 Or, just every single time you start, it's from beginning anew. 🙂

Hope this gives direction.

 

PS: By the way, to avoid processing long list of links, you can pass the path (or id) and request direct only link. In such a way you're going to receive single link - the desired one. 😉

DavidG11
New member | Level 2

Yes I continued with the cursor returned.

The last time, the hasMore return true but the links array is empty.

 

I'll try with the id, if the java integration supports this.

 

David

Здравко
Legendary | Level 20

@DavidG11 wrote:

...

The last time, the hasMore return true but the links array is empty.

...


It's possible. In such case, you have to continue! Empty array is NOT end criteria.

 


@DavidG11 wrote:

...

I'll try with the id, if the java integration supports this.

...


Take a look here. Don't forget to set direct only too.

Hope this helps.

DavidG11
New member | Level 2

I had a "rate limit" if I continue following the cursor.

 

Anyway, it worked using the file id as path parameter.

Need more support?