Help sending variables to KWGT via HTTP API

Has anyone had any success sending variables KWGT using there HTTP API, ive tried everything and I’m not able to populate my widget, thanks

“curl -X POST Search results for 'msg' - Kustom Forum
–header “Content-Type: application/json”
–data '{
“tokens”: [
“my KWGT API key”,
],
“data”: {
“foo”: “hello from remote!”
}
}”

“tokens”: [ “$lv(“apiKey”)$” ]

This is how I’ve been sending variables in my web get requests. Put an extra pair of “” around them to make sure it’s parsed as a string in curl. And if it doesn’t, you could always split the string and append them like
" …\“” + $lv(“apiKey”)$ + “\”…" yeah?

2 Likes

Hi there,

Have you tried using # prefix to call a local variable ?
For example:

  • We set this: $lv(“test1”, “Hello World”)$
  • We get this: $lv(“test1”)$ OR $#test1$

I hope this would help.
:smiling_face::+1: