Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberiano committed Aug 16, 2016
2 parents ae32fc4 + 46118f6 commit 3fa5f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ See fields documentation at [official Pilot API reference](http://www.pilotsolut
*/

// From array (field names without "pilot_" prefix)
$lead_data = new \Zephia\PilotApiClient\LeadData([
$lead_data = new \Zephia\PilotApiClient\Model\LeadData([
'business_type_id' => 1,
'contact_type_id' => 1,
'suborigin_id' => 'FFFF0000',
Expand All @@ -56,7 +56,7 @@ $lead_data = new \Zephia\PilotApiClient\LeadData([
]);

// Using setters (camelcase)
$lead_data = new \Zephia\PilotApiClient\LeadData();
$lead_data = new \Zephia\PilotApiClient\Model\LeadData();
$lead_data->setBusinessTypeId(1);
$lead_data->setContactTypeId(1);
$lead_data->setSuboriginId('FFFF0000');
Expand Down

0 comments on commit 3fa5f94

Please sign in to comment.