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 |
Parameter Name |
Data Type |
Sample Output |
---|---|---|
ReturnCode: Return code for method call. Should always return NoError for GetKeywords(). |
String |
NoError |
SMSKeyword: An array of keyword responses shown below. |
||
KeywordResponseInfo EntryDate: DateTime in UTC of when keyword was added. Keyword: Keyword. ShortCode: ShortCode that this keyword is assigned to. |
Datetime String String |
2010-05-11T19:17:28 Keyword27 10101 |
<?php
$client = new SoapClient('http://sms2.cdyne.com/sms.svc?wsdl');
$lkey = array('LicenseKey' => 'YOUR LICENSE KEY');
$result = $client->GetKeywords($lkey);
print_r($result);
?>
<?php
$url = 'http://sms2.cdyne.com/sms.svc/GetKeywords?LicenseKey=YOUR LICENSE KEY';
$cURL = curl_init();
curl_setopt($cURL,CURLOPT_URL,$url);
curl_setopt($cURL,CURLOPT_HTTPGET, true);
curl_setopt($cURL,CURLOPT_RETURNTRANSFER, true);
curl_setopt($cURL, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Accept: application/json'));
$result = curl_exec($cURL);
curl_close($cURL);
print_r($result);
?>