Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Devery committed Jan 6, 2015
1 parent e69e160 commit 85cf890
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Expand Up @@ -37,9 +37,9 @@ $leadsApi = $closeIoApiWrapper->getLeadApi();

// create lead
$lead = new Lead();
$lead->setName('Dynamic Test');
$lead->setDescription('Dynamic lead test description');
$lead->setUrl('www.dynamic-lead-test.com');
$lead->setName('Test Company');
$lead->setDescription('Company description');
$lead->setUrl('www.test-company.com');

// address
$address = new Address();
Expand All @@ -50,19 +50,19 @@ $address->setAddress2('Mitte');

// contacts
$contact = new Contact();
$contact->setName('Dynamic Testcontact');
$contact->setTitle('Dynamic Contact Test Title');
$contact->setName('Testy Testersson');
$contact->setTitle('Chief Tester');

// emails
$email = new Email();
$email->setEmail('testcontactemail@dynamic-lead-test.com');
$email->setType('work');
$email->setEmail('testy-testersson@test-company.com');
$email->setType(Email::EMAIL_TYPE_OFFICE);
$contact->addEmail($email);

// phones
$phone = new Phone();
$phone->setPhone('01244349656');
$phone->setType('mobile');
$phone->setPhone('+491234567890');
$phone->setType(Phone::PHONE_TYPE_MOBILE);
$contact->addPhone($phone);

$lead->addAddress($address);
Expand Down

0 comments on commit 85cf890

Please sign in to comment.