使用凌空解析json和json未提供的图片

时间:2018-12-31 12:12:06

标签: android android-volley

以下是我的APi回复

我想获取此api中未提供的标志图像的所有细节,该怎么办,请帮我做大学项目

"matches": [
{
"unique_id": 1144995,
"date": "2018-12-25T00:00:00.000Z",
"dateTimeGMT": "2018-12-25T23:30:00.000Z",
"team-1": "Australia",
"team-2": "India",
"type": "Test",
"squad": true,
"toss_winner_team": "India",
"winner_team": "India",
"matchStarted": true
},
{
"unique_id": 1153839,
"date": "2018-12-25T00:00:00.000Z",
"dateTimeGMT": "2018-12-25T22:00:00.000Z",
"team-1": "New Zealand",
"team-2": "Sri Lanka",
"type": "Test",
"squad": true,
"toss_winner_team": "Sri Lanka",
"winner_team": "New Zealand",
"matchStarted": true
},
{
"unique_id": 1144153,
"team-2": "Pakistan",
"team-1": "South Africa",
"type": "Test",
"date": "2018-12-26T00:00:00.000Z",
"dateTimeGMT": "2018-12-26T08:00:00.000Z",
"squad": true,
"toss_winner_team": "Pakistan",
"winner_team": "South Africa",
"matchStarted": true
}]

1 个答案:

答案 0 :(得分:0)

如果您要使用国家/地区名称来标记国家/地区图像,则可以使用此api并使用 flag_base64 键作为国家/地区标记网址。

https://raw.githubusercontent.com/samayo/country-json/master/src/country-by-flag.json