Hello,
I’m creating custom-app with OAuth 1.0 connection, but before that I tried first with HTTP Request module as follows:
It returned status: 200.
However, when I applied to connection, it seems I got error, as I got error. How to debug connection? It can be identified through Make DevTool? Kindly advice
Below is the code I created in custom app - connection
// Step 1: OAuth1 Get request token
“requestToken”: {
// Request
"url": "https://xyz.com/rest/requesttoken",
"method": "POST",
"oauth":{
"consumer_key":"{{ifempty(parameters.consumerKey, common.consumerKey)}}",
"consumer_secret":"{{ifempty(parameters.consumerSecret, common.consumerSecret)}}",
"signature_method":"HMAC-SHA256"
},
"headers": {
"Authorization": "OAuth oauth_consumer_key=\"{{oauth.consumer_key}}\",oauth_signature_method=\"{{oauth.signature_method}}\",oauth_timestamp=\"{{timestamp}}\",oauth_nonce=\"{{uuid}}\",oauth_version='1.0',oauth_callback=\"{{oauth.redirectUri}}\""
},
// Response handling
"response": {
"data": "{{body}}",
"type": "urlencoded",
"valid": {
"condition": "{{!body.error || (substring(body;0;length('oauth_token')) == 'oauth_token')}}",
"message": "[{{statusCode}}] {{ifempty(body.error,body)}}",
"type": "RuntimeError"
},
"error": {
"message": "[{{body.status}}] {{ifempty(body.error.message,body.title)}}"
}
},
"log": {
"sanitize": [ // Excludes sensitive parameters from logs.
"request.headers.Authorization",
"response.body"
]
}
}
Thanks!