Hi everybody!
Hi everybody!
Been seaching the docs but didnt get it
How can i use secrets and variables inside REST scripts?
7 Replies
is it possible?
You have to pass it as args
variable('u/username/openai_token') or call the WM REST API from inside the script.Im using the REST script in an app. How can i access the variable in the app to pass is as args?
Or as string
$var:u/username/token.perfect!
so just using the variable string as the arg in the app should work?
Set it as an arg on the script config and WM will pass the correct value to your script
Yes
nice
thanks, im gonna try that
It worked wonderfully!
I would have loved that the app editor allowed to connect input to variables instead of inserting the text value for the variable. I think that could improve the UX