From 94403b96a3742e6b867ec82270ff63f06222475c Mon Sep 17 00:00:00 2001 From: silvioq Date: Mon, 2 May 2016 17:02:35 -0300 Subject: [PATCH] Implement listsGet API --- phpListRESTApiClient.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/phpListRESTApiClient.php b/phpListRESTApiClient.php index e69e1a2..75ff818 100644 --- a/phpListRESTApiClient.php +++ b/phpListRESTApiClient.php @@ -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. *