Skip to content

Instantly share code, notes, and snippets.

@callemall
callemall / Java_ExtCreateBroadcast.java
Last active Dec 24, 2015
An example class that executes the Call-Em-All API function ExtCreateBroadcast to launch a text-to-speech voice broadcast.
View Java_ExtCreateBroadcast.java
import java.net.URL;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import java.net.MalformedURLException;
import com.call_em_all.CEAAPI_v3_BetaLocator;
import com.call_em_all.CEAAPI_v3_BetaSoap;
public class Demo {
@callemall
callemall / Visual Basic - ExtCreateBroadcast.vb
Created Jul 31, 2013
The code below uses the API's ExtCreateBroadcast function to generate a broadcast. The broadcast uses audio from a previous broadcast by putting the broadcast's ID in the MessageID variable (IN_MessageID = "442499").
View Visual Basic - ExtCreateBroadcast.vb
Partial Class SendBroadcast
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
' Use this for Production
' Dim urlstring As String = "http://API.call-em-all.com/Webservices/CEAAPI_v2.asmx"
' Use this for Testing
@callemall
callemall / Python - SendOptInvitation.py
Created Jul 31, 2013
The following example invites a phone number to join the text messaging group identified by the keyword "RAMBLES". The SendOptInvitation function is used for this purpose.
View Python - SendOptInvitation.py
#!/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 - GetBroadcastResult.py
Created Jul 31, 2013
In this example the GetBroadcastResult function is used to retrieve the status and result of an in-progress or completed broadcast. The example fetches detailed call-by-call results of a previously created broadcast (versus summary information).
View Python - GetBroadcastResult.py
#!/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 - ExtCreateBroadcast.py
Created Jul 31, 2013
Using the ExtCreateBroadcast function, this example creates and launches a broadcast that reuses the audio from a previous broadcast (request.messageID = 128342). It also demonstrates how to access Call-Em-All through a proxy.
View Python - ExtCreateBroadcast.py
#!/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 Jul 31, 2013
This example grabs account information using the CheckAccount function, but does so through a proxy.
View Python - CheckAccount (Proxy).py
#!/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.py
Created Jul 31, 2013
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.
View Python - CheckAccount.py
#!/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 / PowerShell - ExtCreateBroadcast.ps1
Last active Dec 20, 2015
This example creates and launches a simple text-to-speech broadcast using the ExtCreateBroadcast function.
View PowerShell - ExtCreateBroadcast.ps1
# ===========================================================================================================================
#
# 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 / PowerShell - CheckAccount.ps1
Created Jul 31, 2013
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.
View PowerShell - CheckAccount.ps1
# ======================================================
# Programming Example on how to check account balance
# ======================================================
function CheckAccount
(
[String] $username,
[String] $pin
)
{
@callemall
callemall / PHP - SendOptInvitation.php
Created Jul 31, 2013
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.
View PHP - SendOptInvitation.php
// =====================
// account information
// =====================
$username = "999111999";
$pin = "9991";
$firstName = "PersonTo";
$lastName = "Invite";
You can’t perform that action at this time.