Avatar

Consume Reports Via API

0

Good day,

I would like to know if the consuming reports via the API, as presented in the "Best Kept Secrets of the MyGeotab SDK" presentation given at Geotab Connect 2018, is available yet?

Romeo McKay

Please sign in to leave a comment.

2 comments

0
Avatar

Hello Romeo,

This feature is not currently finalized for the public but has been created. 

An example API call in javascript would be the following:

api.call("GetReportJson", {

    "argument": {

        "fromUtc": "2018-10-01T00:00:00.000Z",

        "toUtc": "2018-10-23T00:00:00.000Z",

        "groups":[{"id":"GroupCompanyId"}],

        "devices":[],

        "reportArgumentType":"DeviceActivityDetail"

    },

    "reportTemplate": {

        "id": "ReportTemplateTripsDetailId"

    },

    "sheetName": "Report"

})

Please note that any changes to this method while it is still in beta will not be announced so this code may break between now and it's public release.

Wajih Qazi 0 votes
0
Avatar

Hello,

The code snippet below doesn't seem to yield any results in the api runner. Have you tried running it there with any success?

Romeo McKay 0 votes