RemoveKeyword

From CDYNE Wiki
Jump to navigation Jump to search

RemoveKeyword Request

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

RemoveKeyword Response

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:
ShortCodeInvalid, KeywordInvalid, KeywordRemoved, KeywordNotFound, InternalError

ShortCode: ShortCode that this keyword is assigned to.


Datetime

String

String


String


2010-05-11T19:17:28

Keyword27

NoError


10101


Remove Keywords Code Examples

PHP

 1 $client = new SoapClient('http://sms2.cdyne.com/sms.svc?wsdl');
 2 $lk = 'f01d89fd-5155-5455-5585-e84ab8de8591';
 3 $KeywordsArray1 =  'TestKeyword';
 4 $ShortCode1 = '74121';
 5 
 6 $RequestArray = array(
 7                                   array(
 8                                    ShortCode'=>$ShortCode1,
 9                                    'Keyword'=> $KeywordsArray1,
10                               )
11                 );
12 $request = new AdvancedCallRequestData($lk,$RequestArray);
13 //print_r($request);
14 $result = $client->RemoveKeyword($request);
15 print_r($result);
16 class AdvancedCallRequestData {
17   public $AdvancedRequest;
18   function AdvancedCallRequestData($licensekey,$requests) { 
19             $this->KeywordRequest = array();
20             $this->KeywordRequest['LicenseKey'] = $licensekey;
21             $this->KeywordRequest['SMSKeywords'] = $requests;
22   }
23 }
24 ?>