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.
Create and configure new autoreply message for existing Did
Auto-Replys are text message replys sent to a customer when a customer replys to a text message from a campaign. A keyword will need to have been purchased before an Auto-Reply can be created.
Request Parameters
Parameter | Demo Value | Description | Data Type |
---|---|---|---|
CreateAutoReply | Create AutoReply using attached info | object | |
RequestId | anyURI | ||
AutoReply | object | ||
id | Unique ID of Text Auto Reply | long | |
Number | Phone number to configure an auto reply message | PhoneNumber | |
Keyword | string | ||
Match | string | ||
Message | string |
* indicates choice value, bolded parameters are required
Response Parameters
Parameter | Description | Data Type |
---|---|---|
CreatedId | Unique ID of resource | long |
<?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'));
/**
* CreateAutoReply. Operation Not Implemented, Comming Soon.
*/
$request = new stdclass();
// $request->RequestId = anyURI; // anyURI
$request->AutoReply = new stdclass(); // required
// $request->AutoReply->id = 2; // long
$request->AutoReply->Number = '18185551212'; // PhoneNumber required choice
$request->AutoReply->Keyword = 'CHOCOLATE'; // string required choice
$request->AutoReply->Match = 'CHOCOLATE'; // string required
$request->AutoReply->Message = 'Thank you for replying, here is some great chocolate'; // string required
$response = $client->CreateAutoReply($request);
print_r($response);
?>