code snippet.
require('ET_Client.php');
$myclient = new ET_Client();
$NameOfAttributeOne = "ExampleAttributeOne";
$NameOfAttributeTwo = "ExampleAttributeTwo";
$profileAttrOne = array("Name" => $NameOfAttributeOne, "PropertyType"=>"string", "Description"=>"New Attribute from the SDK", "IsRequired"=>"false", "IsViewable"=>"false", "IsEditable"=>"true", "IsSendTime"=>"false");
$profileAttrTwo = array("Name" => $NameOfAttributeTwo, "PropertyType"=>"string", "Description"=>"New Attribute from the SDK", "IsRequired"=>"false", "IsViewable"=>"false", "IsEditable"=>"true", "IsSendTime"=>"false");
$response = $myclient->CreateProfileAttributes(array($profileAttrOne,$profileAttrTwo));
print_r($response);
reponse:
[StatusCode] => Error
[StatusMessage] => PropertyDefinitionReadOnlyAccess
[OrdinalID] => 0
[ErrorCode] => 67035