Skip to content

Instantly share code, notes, and snippets.

@callemall
callemall / Perl - ExtCreateBroadcast (Text).perl
Created July 31, 2013 16:07
Using the ExtCreateBroadcast function, this example launches a text-only broadcast to a set of comma delimited phone numbers. Recipients must be able to receive texts on their phone.
#!/usr/bin/perl -w
# SOAP client for CEA web service
use strict;
use SOAP::Lite;
# To turn on SOAP debugging use this
# ==================================
# use SOAP::Lite +trace => 'all';
# ==================================
@callemall
callemall / Perl - ExtCreateBroadcast (Voice).perl
Created July 31, 2013 16:12
This example creates a voice-only broadcast using the ExtCreateBroadcast function. In this case, the messageID parameter is left blank. Once the broadcast is created, a message will have to be recorded using the toll-free number and message recording ID returned by the function.
#!/usr/bin/perl -w
# SOAP client for CEA web service
use strict;
use SOAP::Lite;
# To turn on SOAP debugging use this
# ==================================
# use SOAP::Lite +trace => 'all';
# ==================================
@callemall
callemall / Perl - SendOptInvitation.perl
Created July 31, 2013 16:14
This example invites a phone number to join the text messaging group identified by the keyword "RAMBLES". The SendOptInvitation function is used for this purpose.
#!/usr/bin/perl -w
# SOAP client for CEA web service
use strict;
use SOAP::Lite;
# To turn on SOAP debugging use this
# ==================================
# use SOAP::Lite +trace => 'all';
# ==================================
@callemall
callemall / PHP - CheckAccount.php
Created July 31, 2013 16:16
This example uses the CheckAccount function to retrieve basic information and settings of an account including its status, the available call balance, and most of the settings seen on the "My Account" tab when logged in to a Call-Em-All account.
// =====================
// account information
// =====================
$username = "999111999";
$pin = "9991";
$proxy = "http://staging-api.call-em-all.com/webservices/ceaapi_v2.asmx?WSDL";
$client = new SoapClient($proxy, array("trace" => true));
@callemall
callemall / PHP - ExtCreateBroadcast.php
Created July 31, 2013 16:17
This example creates and launches a simple text-to-speech broadcast using the ExtCreateBroadcast function.
// =====================
// account information
// =====================
$username = "999111999";
$pin = "9991";
// =====================
// 1 = Announcement
// 2 = Survey
// 3 = SMS
@callemall
callemall / PHP - SendOptInvitation.php
Created July 31, 2013 16:18
This example invites a phone number to join the text messaging group identified by the keyword "RAMBLES". The SendOptInvitation function is used for this purpose.
// =====================
// account information
// =====================
$username = "999111999";
$pin = "9991";
$firstName = "PersonTo";
$lastName = "Invite";
@callemall
callemall / PowerShell - CheckAccount.ps1
Created July 31, 2013 16:21
This example uses the CheckAccount function to retrieve some basic information and settings on an account including its status, the available call balance, and most of the settings seen on the "My Account" tab when logged in to a Call-Em-All account.
# ======================================================
# Programming Example on how to check account balance
# ======================================================
function CheckAccount
(
[String] $username,
[String] $pin
)
{
@callemall
callemall / PowerShell - ExtCreateBroadcast.ps1
Last active December 20, 2015 11:29
This example creates and launches a simple text-to-speech broadcast using the ExtCreateBroadcast function.
# ===========================================================================================================================
#
# Send a voice-only broadcast (an announcement) with the name 'Test of Emergency' to the Emergency contacts group outside of the
# calling window. The broadcast should launch immdediately with the text-to-speech message of 'Please call the emergency bridge
# line as soon as possible, we are having an outage.'
#
# To do this, we'll make use of the ExtCreateBroadcast_AD function (shown below), passing it six parameters:
#
# ExtCreateBroadcast_AD 'Test of Emergency' Emergency 1 0 '' 'Please call the emergency bridge line as soon as possible, we are having an outage'
#
@callemall
callemall / Python - CheckAccount.py
Created July 31, 2013 16:26
This example uses the CheckAccount function to retrieve some basic information and settings on an account including its status, the available call balance, and other settings seen on the "My Account" tab when logged in to a Call-Em-All account.
#!/usr/bin/python
# The suds SOAP client is not included in the default Python
# distribution and must be installed manually either by manual
# download or easy_install.
from suds.client import Client
url = 'http://staging-api.call-em-all.com/webservices/ceaapi_v2.asmx?wsdl'
@callemall
callemall / Python - CheckAccount (Proxy).py
Created July 31, 2013 16:28
This example grabs account information using the CheckAccount function, but does so through a proxy.
#!/usr/bin/python
# The suds SOAP client is not included in the default Python
# distribution and must be installed manually either by manual
# download or easy_install.
from suds.client import Client
url = 'http://staging-api.call-em-all.com/webservices/ceaapi_v2.asmx?WSDL'