Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@callemall
callemall / Java_ExtCreateBroadcast.java
Last active December 24, 2015 22:39
An example class that executes the Call-Em-All API function ExtCreateBroadcast to launch a text-to-speech voice broadcast.
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 July 31, 2013 16:34
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").
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 July 31, 2013 16:31
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.
#!/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 July 31, 2013 16:30
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).
#!/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 July 31, 2013 16:29
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.
#!/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'
@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 / 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 / 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 / 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";