API - List infections
Hello
When we use the API - List infections
We can't filter the data using "datefrom" and "dateto" to get only specific data within the given dates.
please advise how we do this.
We are trying to get a total number of infections for a client within a date range - you can do this on the PSB portal - we just want to do this via API
thanks
Robert
Comments
-
Hi,
one easy way to learn how our APIs exactly work is to open the browser developer tools (F12 on Windows for Firefox and Chrome) and then use the portal and see what kind of calls it is making to backend.
Here is one example of this specific call you are asking:
/companies/10349/infections?from=1516831200812&order=desc&page=1&perPage=50&sort=timestamp&to=1519077599000
So from=1516831200812 and to=1519077599000 parts have as unix timestamps the values.
Petri
PS. It seems that our API document is bit outdated for this part, so I'll get that fixed too.
7
Categories
- All Categories
- 4.6K WithSecure Community
- 3.6K Products
- 1 Get Support