listAllPads() public method

listAllPads
public listAllPads ( )
Example #1
0
 /**
  * @param $apiKey
  * @param string $host
  * @return array
  * @throws \Exception
  */
 public static function getAllPadIds($apiKey, $host = 'http://localhost:9001')
 {
     $client = new Client($apiKey, $host);
     try {
         $response = $client->listAllPads();
     } catch (\Exception $e) {
         return false;
     }
     if ($response->getCode() == Response::CODE_OK) {
         return $response->getData()['padIDs'];
     } else {
         return false;
     }
 }