curling twilio API

Jose Damaso rjd318 at gmail.com
Wed Sep 9 07:24:19 EDT 2015


Hi all - can someone help me convert the following?

curl -X POST 'https://api*twilio*com/2010-04-01/Accounts/AC0afb9e5c70c0fde47904a9a6ff/Messages.json'
\
--data-urlencode 'To=5034554562' \
--data-urlencode 'From=+1212022183' \
--data-urlencode 'Body=test message' \
-u AC0afb9e5c70c0fde47904a9a6ff:e6a1bdc2a7a7484d6cdc96e

I just don't have any experience working with http(s) APIs and I've been
working through the forum posts as best I can. The only thing I've gathered
so far is using urlEncode for the --data-urlencode lines. Are the -X POST
and -u parts done in httpheaders?

Any help would be greatly appreciated - thanks!



More information about the Use-livecode mailing list