Sidebar Menu

AssignKeyword

Assigns one or more keywords to a license key.

Endpoint

POST (HTTP): http://sms2.cdyne.com/sms.svc?wsdl

Syntax

AssignKeyword(Request)

Request Parameters

Parameter Name Description Data Type Required Sample Value
LicenseKey

Your license key, as required to invoke this web service.

GUID True F01d89fd-5155-5455-5585-e84ab8de8591
SMSKeywords

An array of keyword requests.

Array of KeywordRequestInfo objects True

Response

Returns: AssignKeywordResponse object

Code Samples

<?php

$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->AssignKeyword($request);
print_r($result);

class AdvancedCallRequestData {
  public $AdvancedRequest;
  function AdvancedCallRequestData($licensekey, $requests) {
    $this->KeywordRequest = array();
    $this->KeywordRequest['LicenseKey'] = $licensekey;
    $this->KeywordRequest['SMSKeywords'] = $requests;
  }
}

?>