What can we help you with?

e.g. Gantt chart, Creating tasks, Sharing folders

How do exponential fallback starting with 1sec wait ?

7 comments

  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Serge S

    Hi Marco! Thanks for sharing your question on the API Community!

    Currently, there's aย rate limit of 100 requests per minute. In reality, it all comes down to a wiser use of exponential cooldown, which will allow your app to make as many calls as it needs to. Basically, it means you can make about 100 calls and then wait only 1 or 2 seconds before you can make another 100, so your app will not have to wait a full minute or more to overcome the cooldown. Please let me know ifย making calls with artificial delays (so that after the first error the app waits for 1-2 second before the next call) will work for you.

    Serge S Community Team at Wrike ๐ŸŒŽDiscover... Wrike Discover and become a Wrike expert. Click here to get started

    Is this helpful? 1
    Comment actions Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Marco Pรฉrez


    Hi Serge, first of all, thanks for your soon answer.

    ย 

    So, I don't do the complete 100 requests. I send around 50 or 60 requests but sometimes they are one after other. So if I understood well, I can make them and if I got aย 429, I can wait 2 seconds and send the rest of my requests?

    ย 

    PS : In the future will be ok if the API can retrieveย the hours of a project. ย 

    Is this helpful? 0
    Comment actions Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Serge S

    You're right, Marco. If you receive the error, please wait 1 or 2 seconds and send the rest of the requests.

    As for the ability to retrieve the hours of a Project, could you please specify? Are you referring to hours entered in the Custom Fields or hours actually logged via the Time Trackerย and visible in the Timelog View?

    Serge S Community Team at Wrike ๐ŸŒŽDiscover... Wrike Discover and become a Wrike expert. Click here to get started

    Is this helpful? 0
    Comment actions Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Marco Pรฉrez

    Ok, that is good to know, thanks for that, I really appreciate.ย 

    No, is not a custom field. (I attached an image ). I mean, is there a way to get the sum of the whole tasks in a project?ย 

    Well, I guess itย has to be in other thread.ย 

    ย 

    Is this helpful? 0
    Comment actions Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Serge S

    Hey Marco! I apologize for not replying earlier!

    Thank you for the clarification. At the moment, there's no straightforward way to get a sum of all Timelog records for a Folder/Project via API. However, I'd recommend the following solution: make a call to get all records of the needed Project/Folder with the help ofย [GET] /folders/{folderId}/timelogsย command and make your app calculate the results.ย Hope this will work for you! :)

    Serge S Community Team at Wrike ๐ŸŒŽDiscover... Wrike Discover and become a Wrike expert. Click here to get started

    Is this helpful? 0
    Comment actions Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Marco Pรฉrez

    Hi, Dontย worry. Indeed, that is what I do, but sometimes I do other operations and differentย folders etc That is why some of my requests are complicated. But it is ok. ย 

    It will be helpful if in the future theย API can evolve. ย Thanks !!

    ย 

    Is this helpful? 0
    Comment actions Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Serge S

    We are definitely keen on developing our API, Marco! I'd suggest sharing your feedback along with the use case in our Product Feedback section. This way other users will be able to support your idea with votes and our Product Team can gauge the popularity of the request and prioritize the roadmap accordingly. :)

    Serge S Community Team at Wrike ๐ŸŒŽDiscover... Wrike Discover and become a Wrike expert. Click here to get started

    Is this helpful? 0
    Comment actions Permalink

Please sign in to leave a comment.

Folllowing List for Post: How do exponential fallback starting with 1sec wait ?
[this list is visible for admins and agents only]

Community

Welcome ๐Ÿ––

Hi there! ๐Ÿ™‚ Want to become a black belt Wrike Ninja? Here's how to earn a Wrike badge

Welcome ๐Ÿ–– Have you checked out this week's Release Notes yet?

Hey! ๐Ÿ‘‹ Curious about something? Visit How To to search and ask the Community for answers.

Welcome! ๐Ÿ‘‹ Figured out a good tip or trick? Share it in Best Practices.

Want to connect your existing software to Wrike? Learn and ask how in the API section.