Skip to content

Instantly share code, notes, and snippets.

@Mitya88
Created October 1, 2022 11:24
Show Gist options
  • Save Mitya88/de0593c43911733f3ceabe424ce00a73 to your computer and use it in GitHub Desktop.
Save Mitya88/de0593c43911733f3ceabe424ce00a73 to your computer and use it in GitHub Desktop.
{
"Services": [
{
"Url": "https://sandboxapi.ordercloud.io/v1",
"Endpoints": [
{
"Path": "/products/",
"ItemPath": "Items",
"Method": "GET",
"ItemType": "Product",
"Title": "%[Name]",
"Uri": "%[coveo_url]/products/%[ID]",
"ModifiedDate": "%[Inventory.LastUpdated]",
"ClickableUri": "%[coveo_url]/products/%[ID]",
"Metadata": {
"id": "%[ID]",
"description":"%[Description]"
}
}
],
"Authentication": {
"OAuth": {
"Query": {
"RefreshUrl": "https://sandboxapi.ordercloud.io/oauth/token",
"Method": "POST",
"Parameters": {
"grant_type": {
"Type": "Payload",
"Value": "client_credentials"
},
"refresh_token": {
"Type": "Payload",
"Value": "@RefreshToken",
"IsRefreshToken": true
},
"scope": {
"Type": "Payload",
"Value": "ProductReader"
},
"client_id": {
"Type": "Payload",
"Value": "@ClientId"
},
"client_secret": {
"Type": "Payload",
"Value": "@ClientSecret"
}
}
},
"Response": {
"AccessToken": "access_token",
"SupportsRefreshToken": "true",
"RefreshToken": "refresh_token",
"ExpiresIn": "expires_in",
"TokenType": "token_type"
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment