This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Enqueue workflowSid="WW0123456789abcdef0123456789abcdef"/> | |
<Task>{"account_number": "12345abcdef"}</Task> | |
</Enqueue> | |
</Response> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Gather timeout="10" finishOnKey="*" action="endpoint to process DTMF"> | |
<Say>Enter 1 for Mortgage Department</Say> | |
<Say>Enter 2 for Customer Support</Say> | |
</Gather> | |
</Response> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.i18n.phonenumbers.CountryCodeToRegionCodeMap; | |
import com.google.i18n.phonenumbers.NumberParseException; | |
import com.google.i18n.phonenumbers.PhoneNumberUtil; | |
import com.google.i18n.phonenumbers.Phonenumber; | |
import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; | |
import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource; | |
public static String lookupCountryLibPhoneNumber(String phonenumber) { | |
String countryKey = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "sinatra" | |
require 'rubygems' | |
require 'twilio-ruby' | |
accountsid = "<Your AccountSid>" | |
authtoken = "<Your AuthToken>" | |
callerid = "<CallerId>" | |
#Hash of phone numbers to <Dial> out to | |
phonenumbers = { "1" => "+15555555555", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.twilio.demo; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Random; | |
import org.apache.http.NameValuePair; | |
import org.apache.http.message.BasicNameValuePair; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This class gets the list of IncomingPhoneNumbers(DID's) | |
* for an account. Based on the cut off date, the filtered | |
* DID's are deleted from this account | |
* | |
*/ | |
public class DropDID { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; | |
import org.apache.http.NameValuePair; | |
import org.apache.http.message.BasicNameValuePair; | |
import com.twilio.sdk.TwilioRestClient; | |
import com.twilio.sdk.TwilioRestException; | |
import com.twilio.sdk.resource.instance.Account; |
NewerOlder