From c9d068b5815f3a597d9033257de4408a582d5f48 Mon Sep 17 00:00:00 2001 From: Greg Kennedy Date: Mon, 4 Dec 2017 16:37:32 -0800 Subject: [PATCH] Added support for page to the listAvailableNPAs function. It was missing, although it was listed in the documentation as being available. --- src/Controllers/PurchasablePhoneNumbersController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Controllers/PurchasablePhoneNumbersController.php b/src/Controllers/PurchasablePhoneNumbersController.php index 1e817a1..67d45cc 100644 --- a/src/Controllers/PurchasablePhoneNumbersController.php +++ b/src/Controllers/PurchasablePhoneNumbersController.php @@ -95,11 +95,12 @@ public function listAreaAndExchange ( /** * Retrieves a list of all NPAs (area codes) that contain purchasable telephone numbers. * @param int $limit Required parameter: Number of items to display (Max 200). + * @param int|null $page Optional parameter: Page to display * @return mixed response from the API call * @throws APIException **/ public function listAvailableNPAs ( - $limit) + $limit,$page=NULL) { //the base uri for api requests $queryBuilder = Configuration::$BASEURI; @@ -110,6 +111,7 @@ public function listAvailableNPAs ( //process optional query parameters APIHelper::appendUrlWithQueryParameters($queryBuilder, array ( 'limit' => $limit, + 'page' => $page, )); //validate and preprocess url @@ -206,4 +208,4 @@ public function search ( return $response->body; } -} \ No newline at end of file +}