简体   繁体   English

Github API在应用程序中的集成

[英]Github API Integration in an App

I want to integrate Github API in an App. 我想在应用程序中集成G​​ithub API。 But not getting by Github documentaion. 但不能通过Github文档来获取。 I have normal user account(Free one). 我有普通用户帐户(免费)。 please help me. 请帮我。

I want to 1. Connect to Github API 2. Find the most recent commits (choose at least 25 or more of the commits) 我想1.连接到Github API 2.查找最新的提交(至少选择25个或更多提交)

I am not sure 我不确定
1. https://api.github.com/ 1. https://api.github.com/
2. what would be the second step ? 2.第二步是什么?

https://developer.github.com/v3/oauth/ https://developer.github.com/v3/oauth/

you need to get a token, and then use one of the repositories endpoints at https://developer.github.com/v3/repos/commits/ 您需要获取令牌,然后使用位于https://developer.github.com/v3/repos/commits/的存储库端点之一

There is a limit to use GitHub API for an unauthorized user. 未经授权的用户使用GitHub API受到限制。 You can authenticate user by using basic authentication, personal token, OAUTH token, OAUTH2 token or by integrating GitHub in app. 您可以使用基本身份验证,个人令牌,OAUTH令牌,OAUTH2令牌或通过将GitHub集成到应用中来对用户进行身份验证。 Please check out the GitHub developer documentation for more details - https://developer.github.com/v3/search 请查看GitHub开发人员文档以了解更多详细信息-https: //developer.github.com/v3/search

I've written an answer on how to use GitHub Search API in an Android App using HTTP request with basic authentication- https://stackoverflow.com/a/41238266/5745574 我已经写了关于如何使用HTTP请求基本身份验证-使用GitHub的搜索API在Android应用程序的答案https://stackoverflow.com/a/41238266/5745574

Hope it'll help!! 希望对您有所帮助!! :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM