Github Api로이 Api 호출에서 데이터를 가져 오려고합니다. 그러나 내가 시도하고 그것에서 데이터를 얻을 때마다 나는 아래의 오류가 발생합니다. 왜 이것이 작동하지 않는지 알 수가 없습니다.Github API JSON PHP에서 아무 것도 반환하지 않는 호출
저는 PhpStorm을 통해 로컬 호스트에서 실행하고 있습니다.
코드 :
이$url = urlencode("https://api.github.com/users/devinmatte/repos");
$json = file_get_contents($url);
$obj = json_decode($json);
echo $obj;
오류 :
[Sat Mar 25 20:02:14 2017] PHP Warning: file_get_contents(https%3A%2F%2Fapi.github.com%2Fusers%2Fdevinmatte%2Frepos): failed to open stream: No such file or directory in /home/devin-matte/Documents/Git-Challenge/index.php on line 13
를, "자식 문제는"무엇인가? –
Git-Challenge는 내가 작업하고있는 프로젝트의 이름입니다. 나는 Game-ify에 학생들을위한 git 저장소에 기여하려고 노력하고있다. –