I am trying to figure out how the twillio sample curl -request actually works for SMS message. Here is a link to the "test" messages that you can use to make a request: https://www.twilio.com/user/account/developer-tools/api-explorer/message-create
Here is the curl post:
curl -X POST 'https://api.twilio.com/2010-04-01/Accounts/accountsid/Messages.json' \
--data-urlencode 'To=phoneNumber' \
--data-urlencode 'From=+phoneNumber' \
--data-urlencode 'Body=Testing' \
-u accountsid:[AuthToken]
*Note: phoneNumber in the the To and From fields are actual numbers, same with the accountsid.
I am trying to find out what this url actually looks like?
What is the full URL? When I run this in the command line, it shows me a JSON type object which is what I would expect, I just am trying to get a visual of how this json object is attached to https://api.twilio.com/2010-04-01/Accounts/accountsid/Messages.json
I would imagine it would look something like:
https://api.twilio.com/2010-04-01/Accounts/accountsid/Messages.json&"To=phoneNumber"&"From=+phoneNumber"&"Body=Testing"&"accounsid:authtoken
I don't think this url is 100% correct. When I run this and put this url in my browser I keep getting asked my credentials for Twilio, I put in the correct username and password and it rejects it.