2012-06-09 79 views
2

不确定这是最近发生在变更日志中的更改。我没有看到在photos.item响应中的“URL”字段https://api.foursquare.com/v2/venues/VENUE_ID/photos照片项目回复地点详细信息缺少url

按照文档中:

https://developer.foursquare.com/docs/responses/photo

电流响应包含一个前缀/后缀 - 和连接它们不给我一个可行的网址:

{

id: "4fd2d8ebe4b0191b9baa0f27" 
createdAt: 1339218155 
source: { 
    name: "Instagram" 
    url: "http://instagram.com" 
} 
prefix: "https://irs3.4sqi.net/img/general/" 
suffix: "/6HAKqu62Rs08SA91kcigymvft2D3NliwE12D0JtJWbo.jpg" 
width: 612 
height: 612 
user: { 
    id: "579544" 
    firstName: "Nick" 
    lastName: "J." 
    photo: { 
     prefix: "https://irs2.4sqi.net/img/user/" 
     suffix: "/VDJ3TVMKB03IGDYD.jpg" 
    } 
} 
visibility: "public" 

}

+0

我能够通过在前后匹配前缀和后缀来达到这个目的,就像这样:https://irs3.4sqi.net/img/general/original//6HAKqu62Rs08SA91kcigymvft2D3NliwE12D0JtJWbo.jpg。看起来API文档需要更新url的前缀和后缀格式 – user1446282

+0

与用户的配置文件图片有同样的问题:http://stackoverflow.com/questions/10967413/how-to-get-profile -pic换四角-基于用户的 - 上的对象 – kurt

回答

相关问题