我正在使用 GitHub-API 获取我使用的 API 的最新版本,例如“解析-SDK-Android”和“解析服务器”。
查询“https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/releases/latest” 返回正确的 JSON 数据。
查询“https://api.github.com/repos/ParsePlatform/parse-server/releases/latest” 返回 JSON“消息”:“未找到”。
根据文档,这可能是身份验证问题。
因此,我使用生成的 access_token 运行查询,但它仍然给我“消息”:“未找到”,因此这不是身份验证问题。
据我所知,解析服务器存储库不是私有(private)的。
有人有想法吗?
谢谢
最佳答案
您的请求没有任何问题。
GET: https://api.github.com/repos/ParsePlatform/parse-server/releases
给你一个空结果:
[]
他们只是没有releases created对于这个存储库。与
进行比较GET: https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/releases
作为解决方法,您可以使用
GET: https://api.github.com/repos/ParsePlatform/parse-server/tags
查看最新的标签。
{
"name": "2.1.2",
"zipball_url": "https://api.github.com/repos/ParsePlatform/parse-server/zipball/2.1.2",
"tarball_url": "https://api.github.com/repos/ParsePlatform/parse-server/tarball/2.1.2",
"commit": {
"sha": "01f4bcc3e3f259f2e6e763584e764ed036a657fe",
"url": "https://api.github.com/repos/ParsePlatform/parse-server/commits/01f4bcc3e3f259f2e6e763584e764ed036a657fe"
}
}
关于GitHub-API - 获取最新的api版本返回 "Not Found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35537805/