08-23-2023 09:20 PM
Hi,
I built a custom connector and it is working fine. Then I got other file upload requirements, but it didn't work with the custom connector's post action. So, I had to implement a Python script that can upload the file to API when manually providing an access token.
question is: Is there any way to extract the access_token or header information from the custom connector?
progress so far: I added custom action and it can returns the connection variable. but it only contain user_id, password, etc..
Is there anyone who can help on this?
Thank you
Solved! Go to Solution.
09-07-2023 10:19 PM
Hi @sampath
This is Marlon from the support team.
Yes, there is a way to extract the access_token or header information from the custom connector.
You can use after_response method to extract the API call response headers: https://docs.workato.com/developing-connectors/sdk/guides/error-handling.html#after-response
09-07-2023 10:19 PM
Hi @sampath
This is Marlon from the support team.
Yes, there is a way to extract the access_token or header information from the custom connector.
You can use after_response method to extract the API call response headers: https://docs.workato.com/developing-connectors/sdk/guides/error-handling.html#after-response
09-18-2023 02:38 PM
Thanks @marlon-muela I will try and let you know. 🙂