deletePad() public method

deletePad
public deletePad ( $padID )
示例#1
0
 /**
  * @param $padId
  * @param $apiKey
  * @param string $host
  * @throws \Exception
  * @return boolean
  */
 public static function deletePad($padId, $apiKey, $host = 'http://localhost:9001')
 {
     $client = new Client($apiKey, $host);
     try {
         $response = $client->deletePad($padId);
     } catch (\Exception $e) {
         return false;
     }
     if ($response->getCode() == Response::CODE_OK) {
         return true;
     } else {
         return false;
     }
 }