How to properly iterate through paginated results in Clockify?2019 Community Moderator ElectionHow to specify date/time for the clockify API? Which fields are optional?How to access Clockify API through Power QueryProblem with Clockify API, how to get estimate working againHow to lock timeEntrys via API?How can I fix a 501 error from the clockify API?

What should tie a collection of short-stories together?

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Charles Hockett - 'F' article?

Does Mathematica reuse previous computations?

how to draw discrete time diagram in tikz

Could the Saturn V actually have launched astronauts around Venus?

Opacity of an object in 2.8

Property of summation

Why is the BSI not using powers of two?

What approach do we need to follow for projects without a test environment?

PTIJ: Who should I vote for? (21st Knesset Edition)

In a future war, an old lady is trying to raise a boy but one of the weapons has made everyone deaf

My adviser wants to be the first author

How do I hide Chekhov's Gun?

How can you use ICE tables to solve multiple coupled equilibria?

Python if-else code style for reduced code

Hacking a Safe Lock after 3 tries

What exactly is this small puffer fish doing and how did it manage to accomplish such a feat?

Instead of Universal Basic Income, why not Universal Basic NEEDS?

Professor being mistaken for a grad student

What do Xenomorphs eat in the Alien series?

how to write formula in word in latex

Why did it take so long to abandon sail after steamships were demonstrated?

Life insurance that covers only simultaneous/dual deaths



How to properly iterate through paginated results in Clockify?



2019 Community Moderator ElectionHow to specify date/time for the clockify API? Which fields are optional?How to access Clockify API through Power QueryProblem with Clockify API, how to get estimate working againHow to lock timeEntrys via API?How can I fix a 501 error from the clockify API?










0















The clockify API is unclear (to me) about how to iterate through results.



For example, https://clockify.github.io/clockify_api_docs/#operation--workspaces--workspaceId--timeEntries--get says




Each request is limited to 10 time entries. To get the other 10 (and the next 10 and so on), you'll have to include the page parameter and increment it with each request (eg. https://api.clockify.me/api/workspaces/workspaceId/timeEntries/?page=1)




Data returned from this endpoint is merely an array of timeEntries (bonus for being simple!). Reading beyond the last page returns an empty array (status=200).



So, the question is: Does clockify intend that clients read until an empty array, or am I missing something?










share|improve this question


























    0















    The clockify API is unclear (to me) about how to iterate through results.



    For example, https://clockify.github.io/clockify_api_docs/#operation--workspaces--workspaceId--timeEntries--get says




    Each request is limited to 10 time entries. To get the other 10 (and the next 10 and so on), you'll have to include the page parameter and increment it with each request (eg. https://api.clockify.me/api/workspaces/workspaceId/timeEntries/?page=1)




    Data returned from this endpoint is merely an array of timeEntries (bonus for being simple!). Reading beyond the last page returns an empty array (status=200).



    So, the question is: Does clockify intend that clients read until an empty array, or am I missing something?










    share|improve this question
























      0












      0








      0








      The clockify API is unclear (to me) about how to iterate through results.



      For example, https://clockify.github.io/clockify_api_docs/#operation--workspaces--workspaceId--timeEntries--get says




      Each request is limited to 10 time entries. To get the other 10 (and the next 10 and so on), you'll have to include the page parameter and increment it with each request (eg. https://api.clockify.me/api/workspaces/workspaceId/timeEntries/?page=1)




      Data returned from this endpoint is merely an array of timeEntries (bonus for being simple!). Reading beyond the last page returns an empty array (status=200).



      So, the question is: Does clockify intend that clients read until an empty array, or am I missing something?










      share|improve this question














      The clockify API is unclear (to me) about how to iterate through results.



      For example, https://clockify.github.io/clockify_api_docs/#operation--workspaces--workspaceId--timeEntries--get says




      Each request is limited to 10 time entries. To get the other 10 (and the next 10 and so on), you'll have to include the page parameter and increment it with each request (eg. https://api.clockify.me/api/workspaces/workspaceId/timeEntries/?page=1)




      Data returned from this endpoint is merely an array of timeEntries (bonus for being simple!). Reading beyond the last page returns an empty array (status=200).



      So, the question is: Does clockify intend that clients read until an empty array, or am I missing something?







      clockify






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 6 at 19:47









      ReeceReece

      3,92111733




      3,92111733






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55031102%2fhow-to-properly-iterate-through-paginated-results-in-clockify%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55031102%2fhow-to-properly-iterate-through-paginated-results-in-clockify%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown