get('authorizations'); } public function show($number) { return $this->get('authorizations/'.rawurlencode($number)); } public function create(array $params, $OTPCode = null) { $headers = null === $OTPCode ? array() : array('X-GitHub-OTP' => $OTPCode); return $this->post('authorizations', $params, $headers); } public function update($id, array $params) { return $this->patch('authorizations/'.rawurlencode($id), $params); } public function remove($id) { return $this->delete('authorizations/'.rawurlencode($id)); } public function check($id, $token) { return $this->get('authorizations/'.rawurlencode($id).'/tokens/'.rawurlencode($token)); } }