foursquare - Photo return an 404 error -
when combine prefix , suffix of photo (without //) (url : https://igx.4sqi.net/img/general/38627358_vvn4ggz1mrxpdy3sehlyhvy4ul3f7xqcy5kyxr73uo.jpg), have 404 error (i have data picture api of foursquare.) can me ? p.s : french
your format incorrect. read photos documentation on correct way format photo url. looks you're missing size parameter in url.
to assemble resolvable photo url, take prefix + size + suffix
size can 1 of following, xx or yy 1 of 36, 100,300, or 500.
- xxxyy original: original photo's size
- capxx: cap photo width or height of xx (whichever larger). scales other, smaller dimension proportionally
- widthxx: forces width xx , scales height proportionally
- heightyy: forces height yy , scales width proportionally
Comments
Post a Comment