I am having trouble with figuring out what exactly to use as a dataset type to connect Geotab SDK.
I have tried using both REST and HTTP and I get an error saying the GET method could not be found trying to return a list of devices
I am having trouble with figuring out what exactly to use as a dataset type to connect Geotab SDK.
I have tried using both REST and HTTP and I get an error saying the GET method could not be found trying to return a list of devices
Bu gönderiye yanıt vermek ve Geotab Topluluğu tartışmalarına katılmak için giriş yapmanız gerekmektedir.
When using the SDK Runner, you are using the pre-installed JavaScript Wrapper, which are easier to work with than the raw web request format. When you use only the web request format, the authentication requests should be made first, then you will need to use the POST request with the credentials objects that is returned from subsequent Authentication requests. Check the Authentication for the details https://geotab.github.io/sdk/software/guides/concepts/#authentication .
Postman or Insomnia can help to test your raw http requests. I copied two requests below for your quick reference. The first one is for Authentication and you get the sessionId. The second one is for Get Device with the credencials i.e. sessionId. Hope it helps.
{
"method": "Authenticate",
"params": {
"userName": "aaaa",
"database": "bbbb",
"password": "cccc"
}
}
{
"method": "Get",
"params": {
"typeName": "Device",
"resultsLimit": 10,
"search": {
"fromDate": "2020-11-21T00:00:00.000Z"
},
"credentials": {
"userName": "aaaa",
"database": "bbbb",
"sessionId": "OrSVJT55bCv4VRbwqC8hsA"
}
}
}
Hello @TRoop-1501 ,
Thank you for asking your question in our community. I tried to look into this a little but did not find anything definitive. I have contacted our SMEs to see if they can help with this. I will let you know what I hear from them.
Please reach out if you have any additional questions or any other details to add. We are happy to help.
Have a great day!
Eishi FUN
Düzenlenmiş EishiFUN tarafından
Thank you Eishi…
Hopefully someone will have an answer to this.
Best regards,
Tim Roop | Software Analyst
Gladieux Trading & Marketing Co. L.P.
Not sure if you've seen my answer in this thread. Just in case you missed that so here is a quick answer to your question: you can use HTTP POST as datasource in Azure Data Factory to get a list of devices. I can help if you still run into issue.
Thanks,
Sunan
The Geotab API is JSON/RPC, not REST. You can use HTTP POST as datasource in Azure Data Factory to get a list of devices. The requests to the Geotab API are invoked using HTTP GET or HTTP POST. HTTP POST requests use the JSON-RPC standard. When making requests that contain MyGeotab credentials, use the POST request only. This helps to minimize potential leaks into browser histories, or web server logs. ( https://geotab.github.io/sdk/software/guides/concepts/ for the details ).
Another amazing option / resource is MyGeotab API Adapter project (https://github.com/Geotab/mygeotab-api-adapter). You can use this tool to integrate Geotab into Azure platform and don't need to worry about web based API calls. Keep in mind the MyGeotab API Adapter is an open source project, so you can vette it for security purposes, as well as make any changes to your instance that you may require.
We are also trying to deploy MyGeotab API Adapter to Azure. It's in process. Basically we will push this tool to Azure and retrieve data from MYG to Azure SQL database. From there our customers can easily use and analyze their fleet data on Azure.
If you have any more questions please feel free to contact us. I would be happy to help. Or we can discuss further based on your business use case.
Thanks and Best Regards,
Sunan Sun
Yes Sunan...
Thank you for your assistance!!
I am still having trouble figuring out exactly how to return the device data in ADF.
So I can replicate this using the "runner" utility that Geotab SDK provides
However, when I try and and connect this HTTP dataset to a pipeline in ADF and then run the "preview", I am getting the following error. Am I missing something here?


When using the SDK Runner, you are using the pre-installed JavaScript Wrapper, which are easier to work with than the raw web request format. When you use only the web request format, the authentication requests should be made first, then you will need to use the POST request with the credentials objects that is returned from subsequent Authentication requests. Check the Authentication for the details https://geotab.github.io/sdk/software/guides/concepts/#authentication .
Postman or Insomnia can help to test your raw http requests. I copied two requests below for your quick reference. The first one is for Authentication and you get the sessionId. The second one is for Get Device with the credencials i.e. sessionId. Hope it helps.
{
"method": "Authenticate",
"params": {
"userName": "aaaa",
"database": "bbbb",
"password": "cccc"
}
}
{
"method": "Get",
"params": {
"typeName": "Device",
"resultsLimit": 10,
"search": {
"fromDate": "2020-11-21T00:00:00.000Z"
},
"credentials": {
"userName": "aaaa",
"database": "bbbb",
"sessionId": "OrSVJT55bCv4VRbwqC8hsA"
}
}
}
Thank you for your assistance. This helped tremendously...