{"id":15038218,"url":"https://github.com/sparrowxiao/viewsfromgithub","last_synced_at":"2026-02-28T13:32:33.464Z","repository":{"id":152121578,"uuid":"190116420","full_name":"sparrowxiao/ViewsFromGithub","owner":"sparrowxiao","description":"To create a project to call a RESTful API and use other essential skills for iOS development","archived":false,"fork":false,"pushed_at":"2019-06-04T20:40:52.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-13T13:13:59.038Z","etag":null,"topics":["github-api","rest-api","swift-4","xcode10"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sparrowxiao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-04T02:40:12.000Z","updated_at":"2019-06-04T20:41:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2ac2df0-d671-4472-90fd-1104d1313c1a","html_url":"https://github.com/sparrowxiao/ViewsFromGithub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrowxiao%2FViewsFromGithub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrowxiao%2FViewsFromGithub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrowxiao%2FViewsFromGithub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparrowxiao%2FViewsFromGithub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparrowxiao","download_url":"https://codeload.github.com/sparrowxiao/ViewsFromGithub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243410446,"owners_count":20286396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-api","rest-api","swift-4","xcode10"],"created_at":"2024-09-24T20:37:35.344Z","updated_at":"2025-10-17T12:02:07.540Z","avatar_url":"https://github.com/sparrowxiao.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ViewsFromGithub\nTo create a project of calling a RESTful API and using other essential skills for iOS development\n\nDay1:\n- [x] Made a most regular http connection worked\nI'd like to read proofed the documentation, so Foundation owns the basic swift API to make http request\nhttps://developer.apple.com/documentation/foundation/url_loading_system/fetching_website_data_into_memory\n\nI named a function getHTMLContent()\n\nDay2:\n- [ ] Github REST API \nSo far the latest Github REST API version is here[https://developer.github.com/v3/]\nSometimes I  check the traffic of my public repos, as we know, if you want to check the numbers of views from website, you have to click the repo \u003e insights \u003e Traffic, too many clicks. To me, yes if I want to check it everyday.\n\nHere, we can have the easy way to do it \nhttps://developer.github.com/v3/repos/traffic/#views\nI'd like to test the command line in Terminal to see the right responsed data format.\n```\ncurl -i -H \"Authorization: token xxx_your_token_created_in_github\" https://api.github.com/repos/sparrowxiao/HTML-Email-Template/traffic/views\n```\n\n\n\nTodo:\n- [ ] Error Handling\n- [ ] Unit Test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparrowxiao%2Fviewsfromgithub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparrowxiao%2Fviewsfromgithub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparrowxiao%2Fviewsfromgithub/lists"}