Skip to content

Commit

Permalink
Implement listsGet API
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioq committed May 2, 2016
1 parent 1a9e23e commit 94403b9
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 94403b9

Please sign in to comment.