Go Down

Topic: Sending SMS using Send Hub CURL (Read 1 time) previous topic - next topic

Repdrino

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:

Repdrino

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

billroy

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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy