我正在使用github v3 api(https://developer.github.com/v3/)从存储库中恢复一些信息。
例如,我称之为:https://api.github.com/repos/redwarp/9-Patch-Resizer/releases
回复真的很冗长,给了我一堆我不需要的信息
[
{
"url": "https://api.github.com/repos/redwarp/9-Patch-Resizer/releases/485454",
"assets_url": "https://api.github.com/repos/redwarp/9-Patch-Resizer/releases/485454/assets",
"upload_url": "https://uploads.github.com/repos/redwarp/9-Patch-Resizer/releases/485454/assets{?name}",
"html_url": "https://github.com/redwarp/9-Patch-Resizer/releases/tag/1.3.2",
"id": 485454,
"tag_name": "1.3.2",
"target_commitish": "develop",
"name": "Save your settings",
"draft": false,
"author": {
"login": "redwarp",
"id": 1741661, ...
是否可以发送仅获取url,tag_name和author的请求?或者我应该保留一切,只使用我需要的东西?
答案 0 :(得分:3)
目前不可能 - 使用您需要的东西。