我使用了下面的GitHub api,我能够得到路径的文件详细信息。在
此API调用的结果是:
[
{
"name": ".DS_Store",
"path": "Compile/Tables/test",
"sha": "1cef8efa8694678e3b7ab230a6a891afa1a1996d",
"size": 8196,
"url": "***",
"html_url": "***",
"git_url": "***",
"download_url": "***",
"type": "file",
"_links": {
"self": "***",
"git": "***",
"html": "***"
}
}]
我需要在这个响应中获取sha的提交日期详细信息。在
“sha”:“1cef8efa8694678e3b7ab230a6a891afa1a1996d”
我尝试过使用另一种API,即:
但此API对该sha的响应是:
^{pr2}$如何使用API调用获取提交日期详细信息和GitHub内容详细信息?在
最后利用该方法得到了预期的结果这里是图表是完整的代码
相关问题 更多 >
编程相关推荐