Μετάβαση στο κύριο περιεχόμενο

How to retrieve data for the Geotab Advanced Zone Detailed Report using API?

JBa-2021
Πρωτότυπη Αφίσα

I am programming use Python to call api to get the highlighted attributes (please see screenshot below) from API

image.pngHere is the api call for "Device", for example, for column D and E (groupname). It does not return the information I expected.

imageIf I change the typename to "ExceptionRule" to look for data in column M (rule name), for example, it's returning 'Get' missingmethodexception() error.

 

Please advise. Thank you!

 

 

 

Συμμετέχετε στη συζήτηση

Πρέπει να συνδεθείτε για να απαντήσετε σε αυτήν την ανάρτηση και να συμμετάσχετε στις συζητήσεις της κοινότητας Geotab.

Κορυφαίες απαντήσεις

Yes it's on the ExceptionEvent, and it's the ActiveFrom property

3 Απαντήσεις

Hey @JBa-2021​,

 

For the Device, you'll get group ids and you can use the group ids to do another Get for the Group searching by the ID. Honestly, I would get all groups and put them into a dictionary and reference them that way so you're not having to do a separate request for the groups for every Device.

 

For Exceptions, you'll want to use ExceptionEvent.

 

Hope that helps!

JBa-2021
Πρωτότυπη Αφίσα

Thank you! I think I got the idea. Do you happen to know which object to retrieve ExceptionDetailStartTime?

Yes it's on the ExceptionEvent, and it's the ActiveFrom property

Έχετε ακόμα ερωτήσεις;