Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Controllers/PurchasablePhoneNumbersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -110,6 +111,7 @@ public function listAvailableNPAs (
//process optional query parameters
APIHelper::appendUrlWithQueryParameters($queryBuilder, array (
'limit' => $limit,
'page' => $page,
));

//validate and preprocess url
Expand Down Expand Up @@ -206,4 +208,4 @@ public function search (
return $response->body;
}

}
}