0
嘿所以我想顯示圖像在一個Android應用程序whos圖像網址打包到/用戶/用戶ID /媒體/最近的Instagram API調用的JSON響應。顯示來自Instagram API的JSON響應中包含的圖像鏈接?
因此,這裏是一些例子JSON由API調用返回:
"images": {
"low_resolution": {
"url": "http://distillery.s3.amazonaws.com/media/2011/02/02/6ea7baea55774c5e81e7e3e1f6e791a7_6.jpg",
"width": 306,
"height": 306
},
"thumbnail": {
"url": "http://distillery.s3.amazonaws.com/media/2011/02/02/6ea7baea55774c5e81e7e3e1f6e791a7_5.jpg",
"width": 150,
"height": 150
},
"standard_resolution": {
"url": "http://distillery.s3.amazonaws.com/media/2011/02/02/6ea7baea55774c5e81e7e3e1f6e791a7_7.jpg",
"width": 612,
"height": 612
}
},
"type": "image",
"users_in_photo": [],
"filter": "Earlybird",
"tags": ["foodtruck"],
"id": "22721881",
但是如果我嘗試訪問該圖像的URL,即使在我的瀏覽器,通過粘貼URL http://distillery.s3.amazonaws.com/media/2011/02/02/6ea7baea55774c5e81e7e3e1f6e791a7_5.jpg
到瀏覽器,我得到以下Access Denied
響應:
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>39FC127F315ADE6C</RequestId>
<HostId>
Kfc/hK1hWuMNh7ESlfEgdHy/ITxF2AVP3AjozUQiDfx2lxS94jTzjfNiZwCSQisH9iuRFY5mI0g=
</HostId>
</Error>
任何想法,爲什麼是這樣?訪問令牌我工作正常的API調用自己,但我不能看到如何傳遞一個圖像請求從圖像url令牌?
任何幫助將是偉大的,謝謝。
有趣,我得到我的API響應中有不同的URL,它的工作原理是,檢查http://gramfeed.com – krisrak