Пример #1
0
 /**
  * @param $handle
  * @return mixed
  * @throws \Exception
  */
 public function get($handle)
 {
     $data = $this->gandi->info($this->api_key, $handle);
     if (!is_array($data)) {
         throw new \Exception("Cannot get contact details.");
     }
     return $data;
 }
Пример #2
0
 /**
  * @param array|null $options
  * @return array
  */
 public function getList(array $options = null)
 {
     $result = $this->gandi->info($this->api_key, $options);
     $data = array();
     foreach ($result as $operation) {
         $data[] = new Operation($operation);
     }
     return $data;
 }