SMS using URL

Contains tips for configurators working with Aware IM
Post Reply
wings
Posts: 133
Joined: Mon Oct 20, 2008 7:59 am
Location: Australia

SMS using URL

Post by wings »

Hi

After a new record is created I want to send SMS so I created a rule to handle this

eg
if RequestIssue IS NEW then DISPLAY URL
'https://www.smsglobal.com.au/http-api.p ... uePriority

If I use Display URL I get an error as it want to display the page specified.

How should I implement this?
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

wings,

I would build the URL in a RegularUser attribute & use ... DISPLAY URL LoggedInRegularUser.SmsUrl . Using this method allows you to inspect the URL during testing to see if it's being built properly.

To build URLs like this, I store the various static snippets in SystemSettings also. For Example SystemSettings.SmsUrl_1 would hold https://www.smsglobal.com.au/http-api.p ... dsms&user=

Tom
aware_support
Posts: 7526
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

If you just want to call the URL and handle its output without displaying anything use the URL_CONTENTS function that reads the specified URL and return the result as string.
Aware IM Support Team
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

How can it be implemented using this URL method to indicate whether sms message is sent or not?
AwareIM 5.1a build 1454, Debian 64bit , MySQL
RLJB
Posts: 914
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Post by RLJB »

Try:

SMSMailNotification.Confirm=URL_CONTENTS('http://www.smsglobal.com/http-api.php?a ... %20message.')

The confirmation from SMSGlobal gets written into SMSMailNotification.Confirm - if there is an error you get the error in there too, and you can do with it as you wish.
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

Thanks. I am just leraning how to do this.

How do you send sms notifications by system using this method?
CREATE SMSNotification
SMSNotification.Sending=
URL_CONTENTS('http://somesms-server.com/sys/send.php? ... my_message')
Like this right?
AwareIM 5.1a build 1454, Debian 64bit , MySQL
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

Answering to myself- Yes it works this way! Very very glad to make it work:)
AwareIM 5.1a build 1454, Debian 64bit , MySQL
Post Reply