Hi Renauld,
I downloaded the shareware version of tried Rick's tools but I couldn't figure out how to do what I wanted to do.
So... Rick and others came to the rescue.
It works perfectly. Here is code that I'm using.
DO c:\outilsvfp\westwind\wwClient
loHttp = CREATEOBJECT("wwHttp")
*** This should do the BASIC auth that is requested above
loHttp.cUsername = "YouUserNameHere"
loHttp.cPassword = "YourPassswordHere"
* Alternately add the AUTH Header explicitly
* loHttp.AddHeader("Authorization", "Basic " + STRCONV("TWILIO_ACCOUNT_SID:TWILIO_AUTH_TOKEN",13))
*** Form post vars
loHttp.AddPostKey("Body","West Wind code Rick Strahl")
loHttp.AddPostKey("From","+1 FollowedByYourPhoneNumber"
loHttp.AddPostKey("To","+1 FollowedByPhoneNumberWhereYouWantToSend")
lcJson = loHttp.Post("
https://api.twilio.com/2010-04-01/Accounts/YourAccountIdentification/Messages.json")
If something goes wrong the content of lcJson will help you a lot figuring out what happened.
You can download the shareware version here
https://client-tools.west-wind.com/If you have problems let me know. I'll help you as much as I can. But Rick and other will also be there :-)
Regards
>Sad but I guess that TwilioX won't be updated to comply with a newer version (1.2) of TLS.
>
>So I'm looking at alternatives. I'm reading right now the White Paper that Rick Strahl wrote for VirtualFoxFest. Very interesting.
>
>The thing is that I don't get how to use his tools so that I can send SMS by connecting to Twilio.
>
>Hi Dennis,
>
>I brought this issue to Todd from 2020. I believe its the libcurl library that needs to be updated to support TLS1.2. Anyway, I resorted on using chilkat library and this is working fine.
>
https://www.example-code.com/foxpro/twilio.asp>
https://github.com/VFPX/TwilioX/issues/4
*******************************************************
Save a tree, eat a beaver.
Denis Chassé