Need help with JS script and a curl command

Typo on my part. See the JS Scripting docs for details.

... actions.HTTP.sendHttpGetRequest(...