Angel IVR REST API wrapper for Salesforce Apex

Hey all,

Just a random post to help out any developers who may be trying to use the Angel IVR outbound calling features of their new REST API. This is a wrapper class that should do all the hard work for you. It handles all the HTTP traffic, batching, parsing of responses and serialization for ya. You’ll need to create a custom setting called Angel IVR Site and store your API token, API endpoint, subscriber Id in there (or just change the references to settings.whatever in the code to be hard coded. The test class shows creation of one of these objects, along with the expected fields names.

Here is the code. I’ll probably post up a sample app later and maybe even an installable package. I just wanted to get this out there before I forget, or get too lazy to do anything else with it.

Like this:

Related

7 responses

roy

this is really saving my ass! i was caught off guard by Angels move to REST and had no idea what do as the guy who wrote the code is gone! This really gave me a good direction. I am still going over it and converting it to C# and trying to understand everything. Did you ever get a chance to follow up with a sample app??

Glad it’s helping you out. I did write an app, but unfortunately since I switched jobs I don’t have access to that code anymore. The subscriber Id should be somewhere in your account info if you log into the angel website.

this code doesnt actually include an implementation of a campaign call does it (or did i miss something) … that is i still need to write code that actually invokes this class and makes the call? Sorry if its a stupid question but this is proving a big tricky to wrap my head around.

I have spent the last couple of weeks developing an App which has almost the same functionality about 90% (why didn’t I google for ‘Salesforce Angel’ before, this would have given me a real head start with this baseline, but thanks to Angel documentation I didn’t run into much trouble).

The App I am writing does Immediate calls from Salesforce on a Scheduled basis if the data in Salesforce objects (like cases, contacts, accounts and leads) meet a certain criteria.

What was the use case or business case for the App you wrote for SF and Angel Outbound IVR ? Were the calls user initiated or automatic ?