I have several scripts in events that send url to webhooks in ifttt. I read trough and searched though the forum and cant seem to find an answer to this.
My scripts are just like this:

example script:
&hs.GetURL("https://maker.ifttt.com/trigger/sonos_stop/with/key/ThisIsMyKey","/",TRUE,80)
in this script is the key used for my webhoooks account. In my example script say the key is: 'ThisIsMyKey' Every now and then I change that key (usually by mistake). When I change that key I have to re-enter it in every script that I use it in, 20+. I have tried to creating a global variable (string) and inserting the variable name, but I cant seem to find a format that works.
Is there a simple way to do this? Something like this?
&hs.GetURL("https://maker.ifttt.com/trigger/sonos_stop/with/key/{GLOAL VARIABLE KEY}","/",TRUE,80)
I want to stay simple, and not adding program calls or anything like that. Hopefully I am missing something very obvious and simple
Thanks for any help!
My scripts are just like this:
example script:
&hs.GetURL("https://maker.ifttt.com/trigger/sonos_stop/with/key/ThisIsMyKey","/",TRUE,80)
in this script is the key used for my webhoooks account. In my example script say the key is: 'ThisIsMyKey' Every now and then I change that key (usually by mistake). When I change that key I have to re-enter it in every script that I use it in, 20+. I have tried to creating a global variable (string) and inserting the variable name, but I cant seem to find a format that works.
Is there a simple way to do this? Something like this?
&hs.GetURL("https://maker.ifttt.com/trigger/sonos_stop/with/key/{GLOAL VARIABLE KEY}","/",TRUE,80)
I want to stay simple, and not adding program calls or anything like that. Hopefully I am missing something very obvious and simple
Thanks for any help!
Comment