Skip to content

Commit

Permalink
fix bug where included contact properties were not being limited prop…
Browse files Browse the repository at this point in the history
…erly #6
  • Loading branch information
ryanwinchester committed Apr 13, 2015
1 parent 4901ab0 commit 5540904
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Api/Contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,16 @@ public function all($params)
{
$endpoint = "/contacts/v1/lists/all/contacts/all";

if (isset($params['property']) && is_array($params['property'])) {
$queryString = $this->generateBatchQuery('property', $params['property']);
unset($params['property']);
} else {
$queryString = null;
}

$options['query'] = $this->getQuery($params);

return $this->request('get', $endpoint, $options);
return $this->request('get', $endpoint, $options, $queryString);
}

/**
Expand Down

0 comments on commit 5540904

Please sign in to comment.