API Connection JSON with variable

Stimulsoft BI Designer discussion
Post Reply
tbagby
Posts: 24
Joined: Mon Apr 22, 2024 1:42 pm

API Connection JSON with variable

Post by tbagby »

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.
Lech Kulikowski
Posts: 7332
Joined: Tue Mar 20, 2018 5:34 am

Re: API Connection JSON with variable

Post by Lech Kulikowski »

Hello,

Unfortunately, at the current moment, variables are not supported in headers.

Thank you.
tbagby
Posts: 24
Joined: Mon Apr 22, 2024 1:42 pm

Re: API Connection JSON with variable

Post by tbagby »

Thanks!
Lech Kulikowski
Posts: 7332
Joined: Tue Mar 20, 2018 5:34 am

Re: API Connection JSON with variable

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply