问题描述
我正在制作一个GitHub应用程序,并且我正在尝试根据此文档创建一个仓库
当我对该URL发出GET请求时,它可以工作,并且我得到了用户的存储库,但是发出了这样的发布请求:
curl --request POST \
--url https://api.github.com/user/repos \
--header 'authorization: token [user_access_token]' \
--data '{"name": "test"}'
返回此
{
"message": "Resource not accessible by integration","documentation_url": "https://docs.github.com/rest/reference/repos#create-a-repository-for-the-authenticated-user"
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)