Skip to content

Commit

Permalink
Merge pull request #1 from jcdejong/master
Browse files Browse the repository at this point in the history
ability to manually specify the columns to return
  • Loading branch information
ngroot committed Oct 17, 2013
2 parents b6b993e + dc513f0 commit 6b84d8a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/CAC/Component/ESP/Api/Engine/EngineApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,20 @@ public function getMailinglistUnsubscriptions($mailinglistId, \DateTime $from, \
*
* @param integer $mailinglistId
* @param string $email
* @param array $columns
*
* @return array
*/
public function getMailinglistUser($mailinglistId, $email)
public function getMailinglistUser($mailinglistId, $email, $columns=array())
{
if (count($columns) == 0) {
$columns = array('email', 'firstname', 'infix', 'lastname');
}

$result = $this->performRequest(
'Subscriber_getByEmail',
$email,
array('email', 'firstname', 'infix', 'lastname'),
$columns,
$mailinglistId
);

Expand Down

0 comments on commit 6b84d8a

Please sign in to comment.