CallFire has a new API!
We are proud to announce the launch of our API 2.0! Learn more about our streamlined, transactional and broadcast APIs. This version of the API documentation will remain available for reference only. There will be no new development, only bug fixes. We highly recommend upgrading to our newer and more sophisticated documentation.
Use this operation to see the status of Broadcasts in account. Filter by type of campaign whether currently running. Returns a list of Broadcast info such as campaign name, type, status, ect...
Request Parameters
Parameter | Demo Value | Description | Data Type |
---|---|---|---|
QueryBroadcasts | Broadcasts request by query | object | |
MaxResults | Max number of results to return limited to 1000 (default: 1000) | long | |
FirstResult | Start of next result set (default: 0) | long | |
Type | [VOICE, IVR, TEXT, CCC] | List[BroadcastType] | |
Running | Filter on running Broadcasts | boolean | |
LabelName | Label that result must have to be included | string |
* indicates choice value, bolded parameters are required
Response Parameters
Parameter | Description | Data Type |
---|---|---|
BroadcastQueryResult | List of Broadcasts returned from query | |
TotalResults | Results count | long |
Broadcast | A TEXT, IVR, or VOICE Broadcast | |
id | Unique ID of Broadcast | long |
Name | Name of Broadcast | string |
Status | Status of Broadcast (response only)[START_PENDING, RUNNING, STOPPED, FINISHED, ARCHIVED, TEST, SETUP, SCHEDULED, SUSPENDED, VALIDATING_EMAIL, VALIDATING_START, BLOCKED_SUSPICIOUS, APPROVED, DECLINED, PAUSED, CANCELED] | BroadcastStatus |
LastModified | Last Modified 'CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]' | dateTime |
Type | Type of Broadcast[VOICE, IVR, TEXT, CCC] | BroadcastType |
Label | Labels on Broadcast | string |
ResumeNextDay | If 'true' resumes the unfinished campaign to the next day | boolean |
VoiceBroadcastConfig | Configuration needed for a Voice Broadcast | |
id | Unique ID of BroadcastConfig | long |
Created | DateTime Broadcast was created 'CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]' | dateTime |
FromNumber | E.164 11 digit number or short code | PhoneNumber |
LocalTimeZoneRestriction | Restrict the times your compaign can run | |
BeginTime | Earliest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
EndTime | Latest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
RetryConfig | Retry logic for broadcast | |
MaxAttempts | Max attempts to retry broadcast (default: 1) | int |
MinutesBetweenAttempts | Minutes between broadcast attempts (default: 60) | int |
RetryResults | Conditions to retry on[LA, AM, BUSY, DNC, XFER, NO_ANS, XFER_LEG, SENT, RECEIVED, DNT, TOO_BIG, INTERNAL_ERROR, CARRIER_ERROR, CARRIER_TEMP_ERROR, UNDIALED, SD, POSTPONED, ABANDONED, SKIPPED, INVALID_NUMBER] | List[Result] |
RetryPhoneTypes | Phone types to call in retry[FIRST_NUMBER, HOME_PHONE, WORK_PHONE, MOBILE_PHONE] | List[RetryPhoneType] |
AnsweringMachineConfig | Action to take if machine answers[AM_ONLY, AM_AND_LIVE, LIVE_WITH_AMD, LIVE_IMMEDIATE] | AnsweringMachineConfig |
LiveSoundText | string | |
LiveSoundId | ID of Sound to play if call answered by live person | long |
LiveSoundTextVoice | Voice | |
MachineSoundText | string | |
MachineSoundId | ID of Sound to play if call answered by machine | long |
MachineSoundTextVoice | Voice | |
TransferSoundText | string | |
TransferSoundId | ID of Sound to play if call transfered | long |
TransferSoundTextVoice | Voice | |
TransferDigit | Phone digit call transfers on if pressed | PhoneDigit |
TransferNumber | Number to transfer call to | PhoneNumber |
DncSoundText | string | |
DncSoundId | Do Not Call unique ID of sound | long |
DncSoundTextVoice | Voice | |
DncDigit | Do Not Call Digit | PhoneDigit |
MaxActiveTransfers | Max Transfers | int |
TextBroadcastConfig | Configuration needed for a Text Broadcast | |
id | Unique ID of BroadcastConfig | long |
Created | DateTime Broadcast was created 'CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]' | dateTime |
FromNumber | E.164 11 digit number or short code | PhoneNumber |
LocalTimeZoneRestriction | Restrict the times your compaign can run | |
BeginTime | Earliest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
EndTime | Latest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
RetryConfig | Retry logic for broadcast | |
MaxAttempts | Max attempts to retry broadcast (default: 1) | int |
MinutesBetweenAttempts | Minutes between broadcast attempts (default: 60) | int |
RetryResults | Conditions to retry on[LA, AM, BUSY, DNC, XFER, NO_ANS, XFER_LEG, SENT, RECEIVED, DNT, TOO_BIG, INTERNAL_ERROR, CARRIER_ERROR, CARRIER_TEMP_ERROR, UNDIALED, SD, POSTPONED, ABANDONED, SKIPPED, INVALID_NUMBER] | List[Result] |
RetryPhoneTypes | Phone types to call in retry[FIRST_NUMBER, HOME_PHONE, WORK_PHONE, MOBILE_PHONE] | List[RetryPhoneType] |
Message | 160 char or less message to be sent in text broadcast. Use rented 'keyword' in message if need response | string |
BigMessageStrategy | Set strategy if message is over 160 chars (default: SEND_MULTIPLE)[SEND_MULTIPLE, DO_NOT_SEND, TRIM, MMS, RCS] | BigMessageStrategy |
IvrBroadcastConfig | Configuration needed for an IVR Broadcast | |
id | Unique ID of BroadcastConfig | long |
Created | DateTime Broadcast was created 'CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]' | dateTime |
FromNumber | E.164 11 digit number or short code | PhoneNumber |
LocalTimeZoneRestriction | Restrict the times your compaign can run | |
BeginTime | Earliest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
EndTime | Latest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
RetryConfig | Retry logic for broadcast | |
MaxAttempts | Max attempts to retry broadcast (default: 1) | int |
MinutesBetweenAttempts | Minutes between broadcast attempts (default: 60) | int |
RetryResults | Conditions to retry on[LA, AM, BUSY, DNC, XFER, NO_ANS, XFER_LEG, SENT, RECEIVED, DNT, TOO_BIG, INTERNAL_ERROR, CARRIER_ERROR, CARRIER_TEMP_ERROR, UNDIALED, SD, POSTPONED, ABANDONED, SKIPPED, INVALID_NUMBER] | List[Result] |
RetryPhoneTypes | Phone types to call in retry[FIRST_NUMBER, HOME_PHONE, WORK_PHONE, MOBILE_PHONE] | List[RetryPhoneType] |
DialplanXml | IVR xml document describing dialplan | string |
CccBroadcastConfig | Configuration needed for a CCC Broadcast | |
id | Unique ID of BroadcastConfig | long |
Created | DateTime Broadcast was created 'CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]' | dateTime |
FromNumber | E.164 11 digit number or short code | PhoneNumber |
LocalTimeZoneRestriction | Restrict the times your compaign can run | |
BeginTime | Earliest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
EndTime | Latest time a client can be contacted in the timezone associated with the number's NPA/NXX | time |
RetryConfig | Retry logic for broadcast | |
MaxAttempts | Max attempts to retry broadcast (default: 1) | int |
MinutesBetweenAttempts | Minutes between broadcast attempts (default: 60) | int |
RetryResults | Conditions to retry on[LA, AM, BUSY, DNC, XFER, NO_ANS, XFER_LEG, SENT, RECEIVED, DNT, TOO_BIG, INTERNAL_ERROR, CARRIER_ERROR, CARRIER_TEMP_ERROR, UNDIALED, SD, POSTPONED, ABANDONED, SKIPPED, INVALID_NUMBER] | List[Result] |
RetryPhoneTypes | Phone types to call in retry[FIRST_NUMBER, HOME_PHONE, WORK_PHONE, MOBILE_PHONE] | List[RetryPhoneType] |
AgentGroupId | Unique ID of AgentGroup | long |
SmartDropSoundId | Unique ID of SmartDropSound | long |
ScriptId | Unique ID of Script | long |
TransferNumberIdList | ID List of TransferNumbers | List[long] |
AllowAnyTransfer | Allow any transfer | boolean |
TransferCallerId | Transfer caller Id | string |
Recorded | Recorded | boolean |
<?php
/**
* You'll need your login/password pair when you create the SOAP client.
* Don't use the fake login/password provided here; it's just for show and
* won't work.
*/
$wsdl = "http://callfire.com/api/1.1/wsdl/callfire-service-http-soap12.wsdl";
$client = new SoapClient($wsdl, array(
'soap_version' => SOAP_1_2,
'login' => 'YourLoginId',
'password' => 'YourPassword'));
/**
* QueryBroadcasts
*/
$query = new stdclass();
$query->MaxResults = 2;
$query->FirstResult = 0;
$query->Type = array('TEXT'); // [VOICE, IVR, TEXT]
$query->Running = false;
$response = $client->QueryBroadcasts($query);
print_r($response);
// Sample $response
// stdClass Object (
// [TotalResults] => 4
// [Broadcast] => Array(
// [0] => stdClass Object (
// [Name] => Test Broadcast Service
// [Status] => STOPPED
// [Type] => TEXT
// [TextBroadcastConfig] => stdClass Object (
// [FromNumber] => 67076
// [Message] => Hello, just testing broadcast
// )
// [id] => 167
// )
// [1] => stdClass Object (
// [Name] => Test SMS Broadcast
// [Status] => FINISHED
// [Type] => TEXT
// [TextBroadcastConfig] => stdClass Object (
// [FromNumber] => 67076
// [Message] => Hello, just testing SMS messaging
// )
// [id] => 327
// )
// )
// )
?>