Skip to content

Commit

Permalink
Merge pull request michield#1 from silvioq/master
Browse files Browse the repository at this point in the history
Implement listsGet API
  • Loading branch information
michield committed May 3, 2016
2 parents 1a9e23e + 94403b9 commit 044dd5b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions phpListRESTApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,24 @@ public function listAdd($listName, $listDescription)
return $listId;
}

/**
* Get all lists.
*
* @return array All lists
*/
public function listsGet()
{
// Create minimal params for api call
$post_params = array(
);

// Execute the api call
$result = $this->callAPI('listsGet', $post_params);

// Return all list as array
return $result->data;
}

/**
* Find a subscriber by email address.
*
Expand Down

0 comments on commit 044dd5b

Please sign in to comment.