Thank you for visiting the Rackspace Community
The The Community is live! Post new content or topics so our teams can assist.

Please contact your support team if you have a question or need assistance for any Rackspace products, services, or articles.

Issues with Email API V1 Distribution List Updates

I am having issues trying to update my distribution lists using the Email API v1, here is my code below PLEASE HELP !!

//Brian Copy for playing

$USER_KEY = 'xxxxxxxxxxxxxxt';
$SECRET_KEY = 'xxxxxxxxxxxxxxxxxxxxxx;
$USER_AGENT = 'xxxxxx';
$VERSION = 'v1';

$time_stamp = date('YmdHis');
$data_to_sign = $USER_KEY . $USER_AGENT . $time_stamp. $SECRET_KEY;
$signature = base64_encode(sha1($data_to_sign, true));

$data= array(
'Members' => array(
'Recipients' => array(
'Action' => 'Add',
'Value' => '')));
$jsonData = json_encode($data);

$url = "">";

$headers = array("Content-Type: application/json","Content-Length: 73" .strlen($jsonData),"User-Agent: " .$USER_AGENT,"X-Api-Signature: " .$USER_KEY .":".$time_stamp.":".$signature);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
//curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

echo $response ;