对于场地的用户图像错误Foursquare的API [英] Foursquare API for venue user image error

查看:688
本文介绍了对于场地的用户图像错误Foursquare的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Foursquare的API已经划分了照片标记用户为preFIX和后缀。但是,如果我把它们合并成一个完整的图像URL和粘贴在我的浏览器,给了我,说无法显示图像,因为它包含错误的错误。是不是因为服务器暂时不可用或其他任何东西?

The Foursquare API has divided its photo tag for user as prefix and suffix. But if I merge them to form a full image URL and paste this in my browser, gives me errors that says the image can't be displayed because it contains errors. Is it because server is temporarily unavailable or anything else?

我使用的API地点细节。

I am using the API for Venue Detail.

我得到了这样的数据。

user: {

id: "26534686"
firstName: "Bobbi"
lastName: "E."
photo: {
    prefix: "https://irs3.4sqi.net/img/user/"
    suffix: "/K4VCI4MXHWFUGXOF.jpg"
}
}
visibility: "public" 

但是,当我把这个网址 https://irs3.4sqi.net/img/用户/ K4VCI4MXHWFUGXOF.jpg 给我的错误。

任何线索?

推荐答案

我不知道它的正确与否,展现给四方的方式。但我已经调查了Foursquare的创建大小的缩略图30×30和110×110等。

I don't know its right or not to show the way to Foursquare. But what I have investigated that Foursquare creates thumbnails of sizes 30 x 30 and 110 x 110 etc.

我形成这样的图像路径
对于较小的图像

I formed the image path like this for small image

user->photo->prefix.'30x30'.user->photo->suffix;

对于较大尺寸

user->photo->prefix.'110x110'.user->photo->suffix;

这是我与(30×30)和(110x110)级联他们。

That is I have concatenated them with (30x30) and (110x110).

这样上面的图像变
<一href=\"https://irs3.4sqi.net/img/user/30x30/K4VCI4MXHWFUGXOF.jpg\">https://irs3.4sqi.net/img/user/30x30/K4VCI4MXHWFUGXOF.jpg

<一href=\"https://irs3.4sqi.net/img/user/110x110/K4VCI4MXHWFUGXOF.jpg\">https://irs3.4sqi.net/img/user/110x110/K4VCI4MXHWFUGXOF.jpg这是有效的到现在。

Thus the above image becomes https://irs3.4sqi.net/img/user/30x30/K4VCI4MXHWFUGXOF.jpg and https://irs3.4sqi.net/img/user/110x110/K4VCI4MXHWFUGXOF.jpg which are valid till now.

希望这会工作,直到他们改变这一点。

Hope this will work until they change this.

这篇关于对于场地的用户图像错误Foursquare的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆