HTML loadurl headers
Ryan McLean
mcleanrs-xtension at outlook.com
Fri Mar 16 20:42:06 EDT 2018
Sorry if this duplicates I always use the wrong email alias to post to list.
Drop and run before I'm away from email for a bit...
Xtension release notes for build 918 note that you can add extra headers to loadurl command but documentation doesn't say how.
Here is the example from the JSON-based API I am using - I need to translate it into Xtension speak:
----
curl -H "X-Authorization: YOUR_AUTH_TOKEN" \
-H "Content-Type: application/json" \
-X POST -d '{"type":"lock"}' \
https://api.candyhouse.co/v1/sesames/ABCD12345/control
{“type”:”unlock”}
-----
Thinking it's something close to:
loadurl "https://api.candyhouse.co/v1/sesames/ABCD12345/control" post data {“type”:”unlock”}¬
But unsure how to get my other header stuff in there like my auth token.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20180317/5bd2fed8/attachment.html>
More information about the XTensionList
mailing list