Je suis la mise en œuvre de la recherche Bing
pour la recherche d'images.Android: personnalisation de résultat de recherche d'image Bing
J'ai fait référence this lien, et changez ma réponse à JSON
.
Il fonctionne et le résultat est comme:
{
"d": {
"results": [{
"__metadata": {
"uri": "https://api.datamarket.azure.com/Data.ashx/Bing/Search/Image?Query=\u0027Pepsi\u0027&$skip=0&$top=1",
"type": "ImageResult"
},
"ID": "64737694-fc53-4d68-933d-10edc214fd3a",
"Title": "Pepsi: Like Madonna, its look has been reinvented time and time again ...",
"MediaUrl": "http://tjthesportsgeek.files.wordpress.com/2012/02/pepsi.png",
"SourceUrl": "http://tjthesportsgeek.com/2012/02/14/tale-of-the-tape-coke-vs-pepsi/",
"DisplayUrl": "tjthesportsgeek.com/2012/02/14/tale-of-the-tape-coke-vs-pepsi",
"Width": "1588",
"Height": "2064",
"FileSize": "569827",
"ContentType": "image/png",
"Thumbnail": {
"__metadata": {
"type": "Bing.Thumbnail"
},
"MediaUrl": "http://ts2.mm.bing.net/th?id=OIP.M7f9b9a39639b9ca8bb6f1cba6e35d041H0&pid=15.1",
"ContentType": "image/jpg",
"Width": "369",
"Height": "480",
"FileSize": "19879"
}
},
// Next array element
]
}
}
mais ce que je dois est:
Le résultat
json
avec seulement MediaUrl et MediaUrl de Miniature. (Comme il est possible dans Google Recherche personnalisée avec l'aide de la balise "champ" comme des champs = articles (lien, image/thumbnailLink))L'image seulement avec la taille moyenne. (J'ai cherché ceci et ai appliqué le filtre mais d'aucune utilité.)
Veuillez répondre avec vos suggestions valables.