Understanding CURL to Omnis example

Mike Matthews - Omnis omnis at lineal.co.uk
Thu Mar 9 19:41:27 UTC 2023


Hello Das,

I feel for you here with these kinds of examples.  I fell foul of such a request 20 minutes ago.  So infuriating from my point of view.

Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>

www.lineal.co.uk<http://www.lineal.co.uk/>

www.sqlworks.co.uk<http://www.sqlworks.co/>



On 9 Mar 2023, at 19:09, Das Goravani <goravanis at gmail.com<mailto:goravanis at gmail.com>> wrote:

Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.



Twilio gives this CURL example as how to send them text messages.

curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages.json <https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages.json> \
--data-urlencode "To=+13105555555" \
--data-urlencode "From=+12125551234" \
--data-urlencode "MediaUrl=https://demo.twilio.com/owl.png <https://demo.twilio.com/owl.png>" \
--data-urlencode "Body=Hello from my Twilio line!" \
-u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'

Kelly wrote the following:

So that would mean you could send

POST https://api.twilio.com/2010-04-01/Accounts/<yourID>/Messages.json?To=+13105555555&From=+12125551234&Body=Hello <https://api.twilio.com/2010-04-01/Accounts/%3CyourID%3E/Messages.json?To=+13105555555&From=+12125551234&Body=Hello> from my Twilio line!

I see how to put in the To and From and Body.. but that last line.. how do you put that in.

Would I put in my URL a space, then -u then space, then my codes?

Would I include the single quote around my codes that they show in this example?

And I would put all this into URI for the HTTP Post command? (Thus not using Contents or Headers lists)?


_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list