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?
I would also strongly advise against posting your API keys publicly and
recommend you change the one you just posted, as there are bots which
crawl the public-facing web for such keys.
On Wed, 09 Sep 2015 12:24:19 +0100, Jose Damaso <[hidden email]> wrote:
> 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
> 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!
> use-livecode mailing list
> [hidden email] > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
Thanks for the suggestions, David - especially about my keys (yikes!). I tried the format below and it seems to get further along as I don't get the authentication errors I saw previously. I receive an error that I need a 'FROM' although it's in the string.