GitHub的API - 创建回购 [英] github api - create repo
问题描述
我试图创建一个使用Github的API回购,但它总是返回该JSON:
I'm trying to create a repo using Github API, but it always return this JSON:
{"message":"Not Found"}
但只有当我尝试创建使用OAuth访问令牌的请求头,如果我使用的用户名和密码,API创建回购和返回成功信息出现此错误。
But this error appears only when I try to create using OAuth access token in request header, if I use username and password, API create the repo and return a successful message.
人有问题,这个API端点?
Anyone had problems with this API endpoint?
推荐答案
我不知道你使用的是什么技术。但就在iOS中的情况下,你可以用它描述了3个简单的方法来与GitHub的API交互这个演示程序。
I do not know what technology you are using. But just in case of iOS, you can use this demo app which describes 3 simple ways to interact with the GitHub API.
注:本演示应用程序只提供几个选定的功能
Note: This demo app provide only few selected functionality.
希望这有助于!
这篇关于GitHub的API - 创建回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!