API Connection JSON with variable
Posted: Thu Aug 15, 2024 8:53 pm
Hi -
I am trying to make an API connection (JSON). I am using the "File," "JSON" option. In the headers, I enter the key and for the value, if I enter the actual key, the connection works fine and the data is returned. However, if I use a variable {{apikey}} where I've stored the key as string, no data is returned. I've tried the variable entry as {apikey} and {{apikey}}. I think double-curly braces is correct. Neither works though. Any suggestions?
I also tried using a connection with REST / OData with the API URL and custom headers and the connection test fails every time.
Thanks.
I am trying to make an API connection (JSON). I am using the "File," "JSON" option. In the headers, I enter the key and for the value, if I enter the actual key, the connection works fine and the data is returned. However, if I use a variable {{apikey}} where I've stored the key as string, no data is returned. I've tried the variable entry as {apikey} and {{apikey}}. I think double-curly braces is correct. Neither works though. Any suggestions?
I also tried using a connection with REST / OData with the API URL and custom headers and the connection test fails every time.
Thanks.