我试图在 rel=“no follow'>https://github.com/ornicar/php-gitub-api 的帮助下,从Github上下载所有下载。
此工程中没有下载对象, 所以我创建了我自己的 :
类类 Github_ Api_ 下載延展 Github_ Api{
public function getDownloads($repo, $username){
$string = repos/ .urlencode($username). / .urlencode($repo). /downloads ;
$response = $this->get($string);
die(print_r($response));
return $response;
时 时
时 时
当我运行这个,我只得到
Server Error HTTP 401: Unauthorized
- it should be possible to get this without authentication too, because if i use the url in the browser, it s working
- my authentication is working, because all the actions (e.g. create new repo,etc..) are working fine
有人能帮我吗?