and more in a single search tool across platforms. Read the announcement here. |
02/22/2024 02:46 AM
What are the values that should be set for the highlighted parameters in the FreshService Connection below and where from these values get?
I have referred the Community based Connector guide where they mention an API Key we should use.
https://docs-be.saviyntcloud.com/bundle/EIC-Connectors/page/Content/Resources/Attachments/Freshservi...
Where do I put the API key in the connection below and what the Username, password and Fresh_Service_Token value means exactly.
Connection JSON:
===================
{
"authentications": {
"acctAuth": {
"authType": "Basic",
"url": "https://hostname.domain_name/api/v2/tickets",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"properties": {
"userName": "<USERNAME>",
"password": "<PASSWORD>"
},
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic XXXXXXXX",
"testConnectionParams": {
"http": {
"url": "https://<hostname.domain_name>/api/v2/tickets",
"httpMethod": "GET",
"requestBody": "",
"httpParams": {},
"httpHeaders": {
"contentType": "application/json",
"Authorization": "Basic <FreshService_Token_Value>"
},
"httpContentType": "application/json"
}
},
"successResponse": [],
"successResponsePath": "responseText",
"errors": [
"fail",
"error"
],
"errorPath": "responseText"
},
"apiRateLimitConfig": {
"retryAfterCalls": 100,
"retryWaitSeconds": 60
}
}
}
Solved! Go to Solution.
02/22/2024 03:05 AM
Hi @Saviynt_Savvy ,
As per the documentation, you need to base64 encode the API key and put it in the accessToken parameter in the ConnectionJSON.
02/22/2024 03:25 AM
Hi @naveenss ,
Thanks for the reply.
What values should I use in place of the other highlighted parameters like <username> <password> <Fresh_Service_Token_Value>
02/22/2024 03:33 AM
Hi @Saviynt_Savvy ideally for a basic auth type these values doesnt matter as the accesstoken remains constant.
please let me know if you are facing any issues.
02/22/2024 09:23 PM
@Saviynt_Savvy This is a sample I used :
02/22/2024 09:35 PM
Refer : https://docs.saviyntcloud.com/bundle/REST-v24x/page/Content/Examples-for-JSON-Construction.htm