Sending Data to Twilio SMS via ThingHTTP | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Sending Data to Twilio SMS via ThingHTTP
No permission to create posts
August 9, 2016
5:09 pm
Avatar
SRT392
New Member
Members
Forum Posts: 2
Member Since:
August 9, 2016
sp_UserOfflineSmall Offline

I am able to send an SMS via Twilio using ThingHTTP but the message I send is hardcoded within ThingHTTP. Here is the way it looks in ThingHTTP:

Body: To=+167xxx89x63&From=+16x88xxx731&Body=Hello World

 

I am only able to send "Hello World" since it hardcoded into the Body within ThingHTTP. I need to send real messages/data from my app as an SMS message.

Is there a way to create the URL in my app that allows me to send data to Twilio via ThingHTTP?

 

Thanks for the help

August 10, 2016
12:02 am
Avatar
rw950431

Top
Members
Forum Posts: 261
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

There is this in the documentation.

and this thread.

The range of replacement strings are pretty limited.  For a more flexible solution you might be able to use a Matlab Analysis and the webwrite() matlab command.

August 10, 2016
5:55 pm
Avatar
SRT392
New Member
Members
Forum Posts: 2
Member Since:
August 9, 2016
sp_UserOfflineSmall Offline

Success!

I am now able to send an SMS containing data from my app using Twilio via ThingHTTP.

Use code from http://www.instructables.com/id/Send-SMS-from-Arduino-over-the-Internet-using-ENC2/step3/Arduino-Side/

You also MUST edit ThingHTTP Body to look like the following:

Body: From=+16xxxxx731&To=+167xxxxx263&Body=%%message%%
October 4, 2016
1:19 pm
Avatar
Super ME engineer
Taipei
New Member
Members
Forum Posts: 4
Member Since:
October 3, 2016
sp_UserOfflineSmall Offline

Hello, STR329!

   I should fill "From=+1XXXXX732&To=+167XXXXX263&Body=%%OOOOO%%" into Body box when I edit ThingHTTP to send SMS via ThingHTTP to Twilio? doube %, or single% ?

   BTW, I am new guy. May I ask what is "content type" box? Fill " application/x-www-form-urlencoded" ? Thanks!

January 31, 2017
12:14 am
Avatar
faizulmustafiz
New Member
Members
Forum Posts: 1
Member Since:
January 31, 2017
sp_UserOfflineSmall Offline

Hi SRT392

I have tried every thing.....!!! like its in the tutorial.

BODY = To=+88017**080249&From=+13203**4699&Body=%%message%% or

From=+13203**4699&To=%%number%%Body=%%message%%

but its not working the error i get view ThingHttp request response is

21211

The 'To' number 88017**080249 is not a valid phone number.https://www.twilio.com/docs/errors/21211400

my number is verified by twilio. and when i use send sms from twilio its working but when i am trying to send sms via ThingHttp it's not working.....!!
Any Suggestions......??CryCryCryCryCry

April 6, 2017
7:20 am
Avatar
raghunow
New Member
Members
Forum Posts: 1
Member Since:
April 6, 2017
sp_UserOfflineSmall Offline

Hi Guys,

 

I am facing a similar issue.

I am able to send an SMS from Thingspeak to a US number but not to an Indian number.

However, I am able to send an SMS from Twilio to the Indian number. This confirms that this number is verified and also that I am using the correct format in Thingspeak.

 

I also tried using &ForceDelivery=True" but it still doesnt work and I get this message.

{"code": 21211, "message": "The 'To' number ' 9198XXXXXX49' is not a valid phone number.", "more_info": "https://www.twilio.com/docs/errors/21211", "status": 400}

May 23, 2017
12:50 pm
Avatar
irproject

Silver
Members
Forum Posts: 8
Member Since:
April 6, 2017
sp_UserOfflineSmall Offline

raghunow said
Hi Guys,

 

I am facing a similar issue.

I am able to send an SMS from Thingspeak to a US number but not to an Indian number.

However, I am able to send an SMS from Twilio to the Indian number. This confirms that this number is verified and also that I am using the correct format in Thingspeak.

 

I also tried using &ForceDelivery=True" but it still doesnt work and I get this message.

{"code": 21211, "message": "The 'To' number ' 9198XXXXXX49' is not a valid phone number.", "more_info": "https://www.twilio.com/docs/errors/21211", "status": 400}  

Hi raghunow!

I'm having the same problem.

Did you figure out a way how to solve it?

Does anyone else knows how to solve it?

I'm frustrated.

Thnaks!

December 5, 2017
1:29 am
Avatar
logonutility
Mumbai
New Member
Members
Forum Posts: 1
Member Since:
December 5, 2017
sp_UserOfflineSmall Offline

Thanks a lot to give suggestions. I also want to integrate API for my business.

February 20, 2018
5:57 am
Avatar
samuel.thf
New Member
Members
Forum Posts: 1
Member Since:
February 20, 2018
sp_UserOfflineSmall Offline

SOLVED! Replace "+" with "%2B" for international mobile number.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

josephrj11, dennis55, jillhp4, tabathawg69, MarinaMa, Susandom

Administrators: Hans: 387, lee: 457