Code Transformation
function integer transform() {
$out.0.requestContent = $in.o.json_file;
$out.0.charset = "UTF-8";
$out.0.URL = "https://api.abcd.com/applicationname/apiname";
$out.0.requestMethod = "POST";
$out.0.oAuthAccessToken = dictionary.TOKEN;
return ALL;
}
I am working on building a clover graph. My goal is to get the bearer token by calling http connector using authentication - 'HTTP BASIC' first and then use this token to call other APIs. I am able to accomplish the fist part but unable to pass the token as there are just two authentication methods available - (HTTP BASIC, HTTP DIGEST). Any suggestions on how to achieve second part would be greatly appreciated.
CloverETL - 4.4.0.11
I got the token stored in a directory
graph is expected to post the JSON data to the api using bearer token