Parameter Name |
Data Type |
Sample Input |
---|---|---|
LicenseKey: Required to authenticate users invoking this Web Service. Trial Key. Production Key. |
Guid |
F01d89fd-5155-5455-5585-e84ab8de8591 |
SMSKeywords: An array of keyword requests shown below. |
||
KeywordRequestInfo Keyword: Existing keyword. ShortCode: ShortCode to remove keyword from. |
String String |
Keyword27 10101 |
Parameter Name |
Data Type |
Sample Output |
---|---|---|
ReturnCode: Return code for method call. Should always return NoError for RemoveKeyword(). |
String |
NoError |
SMSKeyword: An array of keyword responses shown below. |
||
KeywordResponseInfo EntryDate: DateTime in UTC of when keyword was added. Keyword: Keywords attempting to remove. ReturnCode: Return code for this keyword. Can return: ShortCode: ShortCode that this keyword is assigned to. |
Datetime String String String |
2010-05-11T19:17:28 Keyword27 NoError 10101 |
$client = new SoapClient('http://sms2.cdyne.com/sms.svc?wsdl');
$lk = 'f01d89fd-5155-5455-5585-e84ab8de8591';
$KeywordsArray1 = 'TestKeyword';
$ShortCode1 = '74121';
$RequestArray = array(
array(
ShortCode'=>$ShortCode1,
'Keyword'=> $KeywordsArray1,
)
);
$request = new AdvancedCallRequestData($lk,$RequestArray);
//print_r($request);
$result = $client->RemoveKeyword($request);
print_r($result);
class AdvancedCallRequestData {
public $AdvancedRequest;
function AdvancedCallRequestData($licensekey,$requests) {
$this->KeywordRequest = array();
$this->KeywordRequest['LicenseKey'] = $licensekey;
$this->KeywordRequest['SMSKeywords'] = $requests;
}
}
?>