Hi Makers,
I use a “basic” connection because my application does not manage OAuth. I use the following code:
{
“url”: “https://XXXXXXXXXXX.learnybox.com/api/v2/oauth/token/”,
headers: {
“x-api-key”: “{{parameters.apiKey}}”,
“Accept-Charset”: “UTF-8”,
“Content-Type”: “application/x-www-form-urlencoded”
},
“body”: {
“grant_type”: “access_token”
},
“type”: “urlencoded”,
“method”: “POST”,
“response”: {
“data”: {
“expires”: “{{body.data.expires_in}}”,
“accessToken”: “{{body.data.access_token}}”,
“refreshToken”: “{{body.data.refresh_token}}”
}
}
}
In modules I use connection variables.
Example :
“Authorization”: "Bearer {{connection.accessToken}}
I would like to know if it is possible to update a connection variable in a module?
Thanks for your help