Exemple :
$ curl https://api.github.com/repos/Brunni132/roxxortool/releases/tags/v1.0
{
"url": "https://api.github.com/repos/Brunni132/roxxortool/releases/1622152",
"assets_url": "https://api.github.com/repos/Brunni132/roxxortool/releases/1622152/assets",
"upload_url": "https://uploads.github.com/repos/Brunni132/roxxortool/releases/1622152/assets{?name}",
"html_url": "https://github.com/Brunni132/roxxortool/releases/tag/v1.0",
"id": 1622152,
"tag_name": "v1.0",
"target_commitish": "master",
"name": "First release",
"draft": false,
"author": {
"login": "Brunni132",
"id": 9025750,
"avatar_url": "https://avatars.githubusercontent.com/u/9025750?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/Brunni132",
"html_url": "https://github.com/Brunni132",
"followers_url": "https://api.github.com/users/Brunni132/followers",
"following_url": "https://api.github.com/users/Brunni132/following{/other_user}",
"gists_url": "https://api.github.com/users/Brunni132/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Brunni132/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Brunni132/subscriptions",
"organizations_url": "https://api.github.com/users/Brunni132/orgs",
"repos_url": "https://api.github.com/users/Brunni132/repos",
"events_url": "https://api.github.com/users/Brunni132/events{/privacy}",
"received_events_url": "https://api.github.com/users/Brunni132/received_events",
"type": "User",
"site_admin": false
},
"prerelease": false,
"created_at": "2015-08-03T17:18:31Z",
"published_at": "2015-08-03T17:20:46Z",
"assets": [
{
"url": "https://api.github.com/repos/Brunni132/roxxortool/releases/assets/764100",
"id": 764100,
"name": "RoxxorTool.zip",
"label": null,
"uploader": {
"login": "Brunni132",
"id": 9025750,
"avatar_url": "https://avatars.githubusercontent.com/u/9025750?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/Brunni132",
"html_url": "https://github.com/Brunni132",
"followers_url": "https://api.github.com/users/Brunni132/followers",
"following_url": "https://api.github.com/users/Brunni132/following{/other_user}",
"gists_url": "https://api.github.com/users/Brunni132/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Brunni132/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Brunni132/subscriptions",
"organizations_url": "https://api.github.com/users/Brunni132/orgs",
"repos_url": "https://api.github.com/users/Brunni132/repos",
"events_url": "https://api.github.com/users/Brunni132/events{/privacy}",
"received_events_url": "https://api.github.com/users/Brunni132/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 26668,
"download_count": 2,
"created_at": "2015-08-03T17:22:04Z",
"updated_at": "2015-08-03T17:22:05Z",
"browser_download_url": "https://github.com/Brunni132/roxxortool/releases/download/v1.0/RoxxorTool.zip"
}
],
"tarball_url": "https://api.github.com/repos/Brunni132/roxxortool/tarball/v1.0",
"zipball_url": "https://api.github.com/repos/Brunni132/roxxortool/zipball/v1.0",
"body": "First version ever, please follow the README for setup instructions."
}
Tu as un "download_count" pour chaque "asset".