nareshishere | Posts: 74

how to get the report completion for specific time period

0 votes

how to get the report completion for specific time period in a day like between 8am to 12 pm.

using the below api 

/api/reports/completion.

what format should be From date and to date . Need to retrieve for specific timings in a day


Duo_Liang | Posts: 3776

Reply to: how to get the report completion for specific time period

0 votes

Hi there,

 

In Report Completion API "/api/reports/completion", there are two parameters "from" and "to" allow you to specify the time period. 

The date format is "{yyyy}-{mm}-{dd}T{hh}:{mm}:{ss}Z", which represents the GMT time.

For example, now is 4:00PM EST (8:00PM GMT) and there's a package get updated. If you query by: 

"/api/reports/completion?from=2020-03-18T19:59:00Z&to=2020-03-18T20:01:00Z"

This updated package (and mostly likely the only package) will be returned from the response. 

 

Duo


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off