我想知道如何从GitHub应用程序接口获取此数据。
我知道我可以获得原始数据,但是有没有办法使用GitHub应用编程接口获得这些数据呢?
以下是请求的文件:
发布于 2021-11-14 02:38:30
以seen here的身份尝试
curl -GLOf -H "Authorization: token ${GITHUB_TOKEN?not set}" \
-H "Accept: application/vnd.github.v4.raw" \
"https://api.github.com/repos/$ORG/$REPO/contents/$FILEPATH" -d ref="$REVISION"在您的示例中,对于公共存储库:
curl -GLOf -H "Accept: application/vnd.github.v4.raw" \
"https://api.github.com/repos/graphql-compose/graphql-compose-examples/contents/examples/northwind/data/csv/employees.csv"我刚刚测试了一下,得到了一个包含原始内容的employees.csv文件。
https://stackoverflow.com/questions/69955717
复制相似问题