Skip to content

Instantly share code, notes, and snippets.

@callemall
callemall / Access Visual Basic - ExtCreateBroadcast.vb
Last active December 20, 2015 11:19
This example creates and launches a simple text-to-speech broadcast using the ExtCreateBroadcast function.
Private Sub TestXMLHTTP()
Dim username As String
Dim pin As String
Dim broadcastType As String
Dim phoneNumberSource As String
Dim broadcastName As String
Dim checkCallingWindow As String
Dim commaDelimitedPhoneNumbers As String
Dim TTSText As String
@callemall
callemall / Access Visual Basic - ProvideAudio.vb
Created July 31, 2013 15:36
This code uses the ProvideAudio function to upload an audio file to an account's audio library for use in future broadcasts.
Option Compare Database
Private Sub TestXMLHTTP()
Dim username As String
Dim pin As String
Dim AudioType As String
Dim BinaryMessage As String
Dim AudioDescription As String
@callemall
callemall / Bash - GetListContents.bash
Created July 31, 2013 15:39
Making use of the GetListContents function, this example shows how to retrieve contact list entries.
#!/bin/bash
(
cat <<EOF
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://wwCw.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetListContents xmlns="http://call-em-all.com/">
<myRequest>
<username>##U##</username>
<pin>##P##</pin>
@callemall
callemall / C++ Install Pre-requisites.txt
Last active December 20, 2015 11:28
Setting up needed files for doing SOAP calls in C++. Install from an account that has appropriate system privileges.
wget http://curl.haxx.se/download/curl-7.21.3.tar.gz
gunzip curl-7.21.3.tar.gz
tar -xvvf curl-7.21.3.tar
cd curl-7.21.3
./configure --prefix=/usr
make
make install
@callemall
callemall / C++ Install gSOAP.txt
Created July 31, 2013 15:51
Install gSOAP for using C++ programs to access a SOAP API. Install from an account that has appropriate system privileges.
wget http://sourceforge.net/projects/gsoap2/files/gSOAP/gsoap_2.8.1.zip/download
unzip gsoap_2.8.1.zip
cd gsoap-2.8/
./configure --prefix=/usr
make
make install
@callemall
callemall / C++ Pull Definitions From Web Service.txt
Created July 31, 2013 15:53
Commands to pull the Call-Em-All SOAP API web service definitions from the server.
mkdir /usr/local/src/CEAAPI
cd /usr/local/src/CEAAPI
cp /usr/local/src/gsoap-2.8/gsoap/typemap.dat .
wsdl2h -o CEAAPI.h http://staging-api.call-em-all.com/webservices/CEAAPI_v2.asmx?WSDL
soapcpp2 -i CEAAPI.h -I/usr/share/gsoap/import/
@callemall
callemall / C++ Std string.txt
Last active December 20, 2015 11:29
For issues using std::string, uncomment the following line in typemap.dat to use char* strings when the definition gets created.
# To use regular char* strings instead of std::string, use:
xsd__string = | char* | char*
@callemall
callemall / C++ Sample Program.cpp
Created July 31, 2013 15:59
Create and launch a text-to-speech broadcast using the API's ExtCreateBroadcast function.
#include "soapH.h" // include header files
#include "soapCEAAPI_USCOREv2Soap12Proxy.h" // get proxy
#include "CEAAPI_USCOREv2Soap12.nsmap" // get namespace bindings
using namespace std;
int main()
{
CEAAPI_USCOREv2Soap12Proxy q;
@callemall
callemall / C++ Compiling.txt
Created July 31, 2013 16:01
Command line compile instructions for the C++ Sample Program.
g++ -o sample sample.cpp soapC.cpp soapCEAAPI_USCOREv2SoapProxy.cpp soapCEAAPI_USCOREv2Soap12Proxy.cpp -lgsoap++
@callemall
callemall / C++ Sample Results.txt
Created July 31, 2013 16:02
Results of running the C++ Sample Program.
SRV1092:/usr/local/src/CEAAPI# ./sample
ErrorCode : 0
ErrorMessage : Operation Successful
BroadcastID : 12939
GoodrecordCount : 1
BadRecordCount : 0