douwei1408 2013-07-27 18:39
浏览 181

Github API在获取用户信息时返回NULL响应

I am integrating GitHub API in my CakePhp project. I am using cURL for making request. I am able to get oAuth Code and AccessToken successfully.

But when I am trying to fetch User information by calling

https:\api.github.com\user?access_token=7190aa11e267e0665edd367ab723d18ec34c7d64

I am getting null response.

I am pasting the response that I got below:

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":null}

Please let me know what am I missing?

  • 写回答

1条回答 默认 最新

  • douqiu9529 2013-07-30 19:10
    关注

    Posting answer to the question I raised above.

    Problem was with cURL SSL verification. So I turned it off. >curl_setopt( $c, CURLOPT_SSL_VERIFYPEER, false ); Please let me know if there is a better solution.

    评论

报告相同问题?

悬赏问题

  • ¥15 opencv图像处理,需要四个处理结果图
  • ¥15 无线移动边缘计算系统中的系统模型
  • ¥15 深度学习中的画图问题
  • ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条
  • ¥15 Python报错怎么解决
  • ¥15 simulink如何调用DLL文件
  • ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离
  • ¥30 线性代数的问题,我真的忘了线代的知识了
  • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统
  • ¥188 需要修改一个工具,懂得汇编的人来。