@@ -101,6 +101,10 @@ |
||
101 | 101 | ]); |
102 | 102 | } |
103 | 103 | |
104 | + /** |
|
105 | + * @param string $method |
|
106 | + * @param string $path |
|
107 | + */ |
|
104 | 108 | public function request($method, $path, $data) |
105 | 109 | { |
106 | 110 | return $this->passthru('curl', ['-X', $method, '--data', Json::encode($data), 'https://api.github.com' . $path . '?access_token=' . $this->getToken()]); |