Skip to content

Instantly share code, notes, and snippets.

@Mitya88
Created September 30, 2022 11:37
Show Gist options
  • Save Mitya88/fe528a279642f0176b54d63d1f7e6556 to your computer and use it in GitHub Desktop.
Save Mitya88/fe528a279642f0176b54d63d1f7e6556 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]",
"Description":"%[Description]",
"Uri": "%[coveo_url]/products/[%ID]",
"ClickableUri": "%[coveo_url]/products/[%ID]",
"Metadata": {
"id": "%[ID]"
}
}
],
"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