[progress Communities] [progress Openedge Abl] Forum Post: Re: Option To Use The Mobile...

  • Thread starter Thread starter Shiva Duriseati
  • Start date Start date
Status
Not open for further replies.
S

Shiva Duriseati

Guest
Hi Anu, You could use following code at server side(Object script trigger.) to make a phone call using Twilio Number: Pass To, From and any Url which has to be called after picking phone. For a test i've used sample URL which is provided by twilio. var url="https://ID:TOKEN@api.twilio.com/2010-04-01/Accounts/ACdf427218d05067f2a5333beaba63607d/Calls ";//Construction of URL var params={"To":"+XXXXXX","From":"+XXXXXX","Url":" demo.twilio.com/.../Passin recipient and sender mobile number var finalResponse = rbv_api.sendHttpPost(url, params, null); rbv_api.println(finalResponse); I will see if i can make the call using ajax post. But its NOT A GOOD IDEA to make a client side call where AuthToken and ID could be visible to everyone . The same can be tested using POSTMAN or any rest clients. Please see attached screenshot. Regards, Shiva

Continue reading...
 
Status
Not open for further replies.
Back
Top