I would like to send text from matlab using twilio , how best can l do it ,is there a package l need to use
27 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ODENDAAL
am 15 Okt. 2024
Beantwortet: Jeff Koh
am 8 Nov. 2024 um 14:02
accountSID = 'ACe####'; Twilio Account SID
authToken = 'ACe####'; % Twilio Auth Token
twilioNumber = '+12088####'; % Twilio phone number
recipientNumber = '+277###'; % recipient's phone number
function sendSMS(message, accountSID, authToken, twilioNumber, recipientNumber)
twilioURL = sprintf('https://api.twilio.com/2010-04-01/ACe28####/%s/Messages.json', accountSID);
options = weboptions('RequestMethod', 'post', 'Username', accountSID, 'Password', authToken);
0 Kommentare
Akzeptierte Antwort
Shubham
am 15 Okt. 2024
Bearbeitet: Shubham
am 15 Okt. 2024
I understand you are looking for resources to send text messages via MATLAB using twilio.
To communicate using the web services in MATLAB, check out the following documentation: https://www.mathworks.com/help/matlab/web-services.html?s_tid=CRUX_lftnav
You can use the webwrite function to write data to RESTFUL web service. There is a very simple SMS client using Twilio which you can refer: https://github.com/bencorn/twilio-matlab-wrapper/blob/master/TwilioClient.m
I hope this helps!
2 Kommentare
Jeff Koh
am 30 Okt. 2024 um 2:24
I have link the added TwilioClient.m in the path but still unable to get it work.
Do I need to install anything? If so, where can I get the installation file.
I got this error: (Note that I have masked out part of AccountSID)
The server returned the status 400 with message "Bad Request" in response to the request to URL https://api.twilio.com/2010-04-01/Accounts/AC4e#############/Messages.json.
Weitere Antworten (1)
Jeff Koh
am 8 Nov. 2024 um 14:02
I have link the added TwilioClient.m in the path but still unable to get it work.
Do I need to install anything? If so, where can I get the installation file.
I got this error: (Note that I have masked out part of AccountSID)
The server returned the status 400 with message "Bad Request" in response to the request to URL https://api.twilio.com/2010-04-01/Accounts/AC4e#############/Messages.json.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Web Services finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!