Exemplo n.º 1
0
 /**
  * @param string $title
  * @param string $key
  * @return Key
  */
 public function createKeyForUser($user_id, $title, $key)
 {
     $data = $this->api('users')->createKeyForUser($user_id, $title, $key);
     return Key::fromArray($this->getClient(), $data);
 }
Exemplo n.º 2
0
 /**
  * @param string $title
  * @param string $key
  * @return Key
  */
 public function addKey($title, $key)
 {
     $data = $this->api('projects')->addKey($this->id, $title, $key);
     return Key::fromArray($this->getClient(), $data);
 }