Pages: [1]   Go Down
Author Topic: Sending SMS using Send Hub CURL  (Read 992 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am using the Arduino to monitor the temps and humidity of me reptile room and enclosures. If anything goes wrong I would like to receive a text message. I have seen the Twitter version and my issue is the messages may duplicate. I am looking for a simple way of sending the following strings to the Send hub servers.

curl -H "Content-Type: application/json" -X POST --data '{"contacts" : [1111],"text" : "Testing"}' https://api.sendhub.com/v1/messages/?username=NUMBER\&api_key=APIKEY

OR

https://api.sendhub.com/v1/messages/?username=NUMBER&api_key=APIKEY
{
"contacts": [1111],
"text": "Testing"
}

Obviously with the proper Phone # and APIKEY.

Thank you  smiley-eek
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok let me try and reword this. Using an ethershield with an Arduino UNO what code could I use to send this to the server?
Please Help

https://api.sendhub.com/v1/messages/?username=NUMBER&api_key=APIKEY
{
"contacts": [1111],
"text": "Testing"
}


Thanks
Logged

0
Offline Offline
God Member
*****
Karma: 39
Posts: 986
Get Bitlash: http://bitlash.net
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not aware of any https: implementations for Arduino.

If your API provider supports http: instead of https:, see the Ethernet WebClient example for a starting point.

-br
Logged

Pages: [1]   Go Up
Jump to: