Skip to content

Create Integrations

Define integrations to specify the HTTP requests required to retrieve the raw feed from the OEM, including the polling interval and schema version.

Create an integration using the Integrations API.

Create Integration with Basic Authentication

Section titled “Create Integration with Basic Authentication”

Here’s an example of how to format the OEM details in request body for an integration that includes a feed endpoint which authenticates with Basic Authentication

Sample Request

"OemInfo": [
{
"UrlType": "Feed",
"Url": "https://oem.com/aemp",
"HttpMethod": "GET",
"Headers": {
"Authorization": "Basic <base64encoded>"
},
"Sequence": 1
}
]

Create Integration with Client Credentials Authentication

Section titled “Create Integration with Client Credentials Authentication”

Here’s an example of how to format the OEM details in request body for an integration that includes a feed endpoint which authenticates with Oauth Client Credentials Grant type

Sample Request

"OemInfo": [
{
"UrlType": "Token",
"Url": "https://oem.com/token",
"HttpMethod": "POST",
"Headers": {
"Authorization": "Basic <base64encoded>",
"Content-Type": "application/x-www-form-urlencoded"
},
"Body": {
"grant_type": "client_credentials"
},
"Sequence": 1
},
{
"UrlType": "Feed",
"Url": "https://oem.com/aemp",
"HttpMethod": "GET",
"Headers": {
"Authorization": "Bearer {$.Response[1].Body.access_token}"
},
"Sequence": 2
}
]

Create Integration with Authorization Code Authentication

Section titled “Create Integration with Authorization Code Authentication”

Here’s an example of how to format the OEM details in request body for an integration that includes a feed endpoint which authenticates with Oauth Authorization Code Grant type

Sample Request

"OemInfo": [
{
"UrlType": "Token",
"Url": "https://oem.com/v1/token",
"HttpMethod": "POST",
"Headers": {
"Authorization": "Basic <base64encoded>",
"Content-Type": "application/x-www-form-urlencoded"
},
"QueryParams": {
"grant_type": "authorization_code",
"code": "fGPGXLf6EEE8-VVih0xLiKNAnO6WViVekoRyLYwzNp0",
"redirect_uri": "https://developer.deere.com/getToken"
},
"Sequence": 1
},
{
"UrlType": "RefreshToken",
"Url": "https://oem.com/oauth2/aus78tnlaysMraFhC1t7/v1/token",
"HttpMethod": "POST",
"Headers": {
"Authorization": "Basic <base64encoded>",
"Content-Type": "application/x-www-form-urlencoded"
},
"QueryParams": {
"grant_type": "refresh_token",
"refresh_token": "{$.refresh_token}"
},
"Sequence": 2
},
{
"UrlType": "Feed",
"Url": "https://oem.com/Fleet/1",
"HttpMethod": "GET",
"Headers": {
"Authorization": "Bearer {$.Response[2].Body.access_token}",
"Accept": "application/xml"
},
"Sequence": 3
}
]