AddUserGroups()

From Rackspace Email & Apps API
Jump to: navigation, search

This function will add one or more new contact groups to an address book. The contacts must be identified using the "id" element returned by GetUserContactsFull() or GetUserContactsFullStr(). The array should be formatted as in:

   array[0]["groupName"]="mygroup1";
   array[0]["contactIds"]="12;47;92";
   array[1]["groupName"]="mygroup2";
   array[1]["contactIds"]="11;20;33;34";
   ....

Input Parameters

Four strings, an associative array of group names and contacts, and a result integer

   Administrative username,
   Administrative password,
   Domain name,
   User ID (the portion of the email address before the @ symbol),
   Group array (see above for format),
   Result integer

Return Values

If successful, the return value of the function will be 1.

Consult the Result Code Table for a list of result codes and their meaning.