+1
Under review

Variable HTTP Header in PUT Command

Lee Douglas 3 years ago in Devices / Http updated by ComfortClick Support 3 years ago 4

Working on integration with the HIVE system from British Gas.

I need to send a "login" command through the API to receive a SessionID.

Which I can do easily in bOS.

I then need to pass this SessionID into each later command as a header for authorisation. As the SessionID varies every 30 minutes or so, I need to have the "SessionID" as a variable Header in later commands.

Are you able to amend Config to allow for variables in POST command headers?

(I note we can already use variables in several other places of the command, just not the header which I need).


Specifics:


URL is: https://api-prod.bgchprod.info:443/omnia/nodes

Command is GET.


The header I need to use is:

Content-Type: application/vnd.alertme.zoo-6.0+json
Accept: application/vnd.alertme.zoo-6.0+json
X-Omnia-Client: Hive Web Dashboard
X-Omnia-Access-Token: Irg6fxvdBrhE0xewMiGJxo4


Where the final highlighted section varies every 30 minutes.

Under review

Hello,


if you could provide your email to david.boben@comfortclick.com or support@comfortclick.com and i will send you and example we have regarding this http driver.


Best regards.

Attached is my email address.

Hello,

I'm in the same boat as Lee Douglas and have a need for this (to interface with another device). I have a device that has an API which requires a dynamic header to be changed frequently
Will the use of variables in http headers be part of the next software release? 


Appreciate your thoughts.


Thanks in advance.


Hello,


the variable http headers have been implemented into bOS and will be available with the next software release.


Best regards.