我正在将 GitHub API 集成到我的 CakePhp 项目中。我正在使用 cURL 发出请求。我能够成功获得 oAuth Code 和 AccessToken。
但是当我试图通过调用来获取用户信息时
https:\api.github.com\user?access_token=7190aa11e267e0665edd367ab723d18ec34c7d64
我得到空响应。
我正在粘贴我在下面得到的回复:
headers":{"url":"https://api.github.com/user?access_token=7190aa11e267e0665edd367ab723d18ec34c7d64","content_type" :null ,"http_code":0,"header_size":0,"request_size":0, "filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.297,"namelookup_time":0.047,"connect_time":0.297,"pretransfer_time":0,"size_upload":0," size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0},"**response":无效的}
请让我知道我错过了什么?