Any helpp would be appreciable. I'm trying to create a user record through the API using SoftLayer_User_Customer::createObject(). I think I am passing the required object properties in a StdClass $object - but it shows an exception that invalid email address.But i put a valid email address.This have been eating my head for two days.Please help me to figore out this..
this is my code
function createUserAccount(){ $client = SoftLayer_client::getClient("User_Customer"); $record = new stdClass(); $record->companyName='company'; $record->city='city'; $record->address1='address1'; $record->accountId=(int)123; $record->country='country'; $record->postalCode = (int)12345; $record->firstName='firstName'; $record->lastName='lastName'; $record->username='username'; $record->email='[email protected]'; $records = $record; $pass='test1'; $results = $client->createObject($records,$pass); print"
"; print_r($results); print""; }