Hello everyone,
I fetching data from an API that requires a token that expires after a few minutes. It has a header that says X-Authorization and then the token I get from another API. Since I am not en API expert, I have checked a tutorial on how to make this dynamically instead of opening the connector every time the token expires. However, I keep getting errors.
This is what my script looks like:
Here I fetch the token I need.
The REST connection looks as follows
Finally, this is the loading script
This is the second connection where I fetch the data that requires the token I mentioned. I have read that when you use the statement WITH CONNECTION overrides the data you have set up on the REST connection.
After running the script, I get the following error
I do not know if I have to add the X-Authorization statement in the script or if I am missing some parameters.
I hope you can help me!
Thanks!