https://api.github.com/search/repositories?q=ios&sort=stars

来源:5-1 Popular(最热)模块的数据层设计

慕田峪7746316

2018-01-12

请求不到数据

写回答

1回答

CrazyCodeBoy

2018-01-15

数据是可以请求到的:

  1. 检查一下你的电脑是否能够正常访问https://api.github.com/

  2. 检查访问https://api.github.com/次数是否收到了限制:

  3. 一下是请求到的数据:

{
  "total_count": 214645,
  "incomplete_results": false,
  "items": [
    {
      "id": 24953448,
      "name": "material-design-icons",
      "full_name": "google/material-design-icons",
      "owner": {
        "login": "google",
        "id": 1342004,
        "avatar_url": "https://avatars1.githubusercontent.com/u/1342004?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/google",
        "html_url": "https://github.com/google",
        "followers_url": "https://api.github.com/users/google/followers",
        "following_url": "https://api.github.com/users/google/following{/other_user}",
        "gists_url": "https://api.github.com/users/google/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/google/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/google/subscriptions",
        "organizations_url": "https://api.github.com/users/google/orgs",
        "repos_url": "https://api.github.com/users/google/repos",
        "events_url": "https://api.github.com/users/google/events{/privacy}",
        "received_events_url": "https://api.github.com/users/google/received_events",
        "type": "Organization",
        "site_admin": false
      },
      "private": false,
      "html_url": "https://github.com/google/material-design-icons",
      ...


0
3
CrazyCodeBoy
回复
慕田峪7746316
对的Github的 API请求有次数限制,过段时间限制就会好
2018-01-23
共3条回复

React Native技术精讲与高质量上线App开发

一个真实的上线项目,一次完整的开发过程,全面掌握React Native技术

1577 学习 · 727 问题

查看课程