Skip to content

Instantly share code, notes, and snippets.

Private Sub btnOK_Click()
Dim msg As String
msg = Me.txtMessage.Value
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim strSQL As String
Set db = CurrentDb
roster![ContactNumber]
CallUrl = BASEURL & “/2010-04-01/Accounts/” & ACCOUNTSID & “/Calls”
return {['Content-Type']='application/xml'},
[[<?xml version="1.0"?>
<Response>
<Sms>Hello, Mobile Monkey</Sms>
</Response>]]
people = {};
people["+14158675309"] = "Curious George";
people["+14158675310"] = "Boots";
people["+14158675311"] = "Virgil";
local from = (request.form or request.query).From;
local name;
if type(people[from]) then
name=people[from]
else
name = "Monkey";
end
return {['Content-Type']='application/xml'}, string.Format(
[[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n
<Response>
<Sms>%s, thanks for the message!</Sms>
</Response>]], name)
local twilio = require 'twilio'
local AUTHTOKEN = '[auth_token]'
if twilio.verify(request, AUTHTOKEN) then
return {['Content-Type']='application/xml'},
[[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n
<Response>
<Say>Hello, Monkey</Say>
</Response>]]
local twilio = require('twilio')
local ACCOUNTSID = '[account_sid]'
local AUTHTOKEN = '[auth_token]'
local PHONENUMBER = '+14259678361'
local response = twilio.sms(ACCOUNTSID, AUTHTOKEN,
PHONENUMBER,
'+15555555555',
'The Monkey Party is at 6PM. Bring Bananas!')
local twilio = require 'twilio'
local ACCOUNTSID = '[account_sid]'
local AUTHTOKEN = '[auth_token]'
local PHONENUMBER = '+14259678361'
twilio.call(ACCOUNTSID, AUTHTOKEN,
PHONENUMBER,
"+15555555555",
'http://twilio-demo.webscript.io/hello-monkey')