コード例 #1
0
ファイル: Zone.php プロジェクト: dyninc/dyn-php
 /**
  * Returns any unpublished changes made within the current session
  *
  * @return array|false|ApiResponse
  */
 public function getChanges()
 {
     $result = $this->apiClient->get('/ZoneChanges/' . $this->getName());
     if ($result && $result->isOk()) {
         if ($result->isComplete()) {
             return $result->data;
         } else {
             return $result;
         }
     }
     return false;
 }
コード例 #2
0
 public function testApiCallWithNoTokenThrowsException()
 {
     $this->setExpectedException('Dyn\\TrafficManagement\\Api\\Exception\\NotAuthenticatedException');
     $client = new Client();
     $client->get('/foo');
 }