$phoneHome->setValue('800-123-1234');
$phoneHome->setLocation('home');
$customer->setPhones(array($phoneWork, $phoneHome));
// Emails: at least one email is required
$emailHome = new \HelpScout\model\customer\EmailEntry();
$emailHome->setValue('*****@*****.**');
$emailHome->setLocation('home');
$emailWork = new \HelpScout\model\customer\EmailEntry();
$emailWork->setValue('*****@*****.**');
$emailWork->setLocation('work');
$customer->setEmails(array($emailWork, $emailHome));
// Social Profiles
$facebook = new \HelpScout\model\customer\SocialProfileEntry();
$facebook->setValue('https://facebook.com/john.appleseed');
$facebook->setType('facebook');
$twitter = new \HelpScout\model\customer\SocialProfileEntry();
$twitter->setValue('https://twitter.com/johnappleseed');
$twitter->setType('twitter');
$customer->setSocialProfiles(array($facebook, $twitter));
// Chats
// ~~~~~
$chatAim = new \HelpScout\model\customer\ChatEntry();
$chatAim->setValue('jappleseed');
$chatAim->setType('aim');
$chatGTalk = new \HelpScout\model\customer\ChatEntry();
$chatGTalk->setValue('*****@*****.**');
$chatGTalk->setType('gtalk');
$customer->setChats(array($chatAim, $chatGTalk));
$website1 = new \HelpScout\model\customer\WebsiteEntry();
$website1->setValue('http://www.johnappleseed.com');
$website2 = new \HelpScout\model\customer\WebsiteEntry();
예제 #2
0
 $phoneHome->setValue("800-123-1234");
 $phoneHome->setLocation("home");
 $customer->setPhones(array($phoneWork, $phoneHome));
 // Emails: at least one email is required
 $emailHome = new \HelpScout\model\customer\EmailEntry();
 $emailHome->setValue("*****@*****.**");
 $emailHome->setLocation("home");
 $emailWork = new \HelpScout\model\customer\EmailEntry();
 $emailWork->setValue("*****@*****.**");
 $emailWork->setLocation("work");
 $customer->setEmails(array($emailWork, $emailHome));
 // Social Profiles
 $facebook = new \HelpScout\model\customer\SocialProfileEntry();
 $facebook->setValue("https://facebook.com/john.appleseed");
 $facebook->setType("facebook");
 $twitter = new \HelpScout\model\customer\SocialProfileEntry();
 $twitter->setValue("https://twitter.com/johnappleseed");
 $twitter->setType("twitter");
 $customer->setSocialProfiles(array($facebook, $twitter));
 // Chats
 // ~~~~~
 $chatAim = new \HelpScout\model\customer\ChatEntry();
 $chatAim->setValue("jappleseed");
 $chatAim->setType("aim");
 $chatGTalk = new \HelpScout\model\customer\ChatEntry();
 $chatGTalk->setValue("*****@*****.**");
 $chatGTalk->setType("gtalk");
 $customer->setChats(array($chatAim, $chatGTalk));
 $website1 = new \HelpScout\model\customer\WebsiteEntry();
 $website1->setValue("http://www.johnappleseed.com");
 $website2 = new \HelpScout\model\customer\WebsiteEntry();