Response Data from API's

5 Comments

  • Peter Brown

    Just to add to my initial post, I will be retrieving the maximum date from the db table to use as the {start_time} but I just need to know if it created_at or updated_at.

    Thanks again 

    0
  • Greg Katechis
    Zendesk Developer Advocacy
    Hi Peter! Please read our documentation on this topic which you can find here
    0
  • Peter Brown

    Hi Greg,

     
    thankyou for your response.
     
    I've read the documentation that you kindly directed me to.
    It says to use the generated_timestamp to use for start_time.
     
    I can see generated_timestamp in the tickets request but I can't see it in the response when I call the users api, api/v2/incremental/users.json.
     
    Thanks
    Pete
    0
  • Greg Katechis
    Zendesk Developer Advocacy

    Hi Peter! The generated_timestamp isn't necessary to use for start_time...instead you would use the next_page url or end_time at the bottom of the list of users. If this is your first export, you can just start with an arbitrary time that is set before your account was created. Subsequent calls will use the next_page url/end_time, which will contain the users created after the last record on the first export, assuming that there are additional users. You can determine that by seeing if end_of_stream is set to false. If it is, you have additional users on the next page. If it is not, the next_page url/end_time will be set to the update_at time of the last user  in your response.

    I hope that clarifies this for you, but let us know if you have any more questions about this.

    0
  • Greg Katechis
    Zendesk Developer Advocacy
    Hi Peter!
    0

Please sign in to leave a comment.

Powered by Zendesk