Skip to content

Instantly share code, notes, and snippets.

@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 - 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 - 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 / 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 / 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 {