send sms from script using a MultiConnect® rCell

Home Forums General send sms from script using a MultiConnect® rCell

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8461
    Felipe Garcia
    Participant

    I have been given a MultiConnect® rCell to use to send sms’s from nagios but I am unable to find the correct documentation on how to interface with the box from a script.

    How or can I do this?

    #10565
    Richard Lakomy
    Participant

    I couldn’t find any documentation either but it can be accomplished with a quick and easy bash script:

      token=curl -k "https://192.168.2.1/api/login?username=admin&password=admin" |grep token|cut -f4 -d\"`
      curl -k -X POST -H "Content-Type: application/json" -d '{
      "recipients":["15178765309"],
      "message":"test messages are the best!!!!"
      }' "https://192.168.2.1/api/sms/outbox/?token=$token"

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.