Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.

Forum Discussion

DavidG11's avatar
DavidG11
New member | Level 2
3 years ago

Problem with share links

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

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    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's avatar
    DavidG11
    New member | Level 2
    3 years ago

    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

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    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's avatar
    DavidG11
    New member | Level 2
    3 years ago

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

     

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

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,039 PostsLatest Activity: 2 days ago
416 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If 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!