开发者

Foursquare API Help

I'm trying to get nearby venues. I found this url where i can just plug in lat and lon.

How do i use this URL? I tried getting the libraries from Foursquare API site, but can't get them to work.

I know i can json_decode the result on this page to get a php object, but how do i make a call and get the data to my webpage?

开发者_开发知识库

https://api.foursquare.com/v1/venues.json?geolat=40.562362&geolong=-111.938689&l=10

Thanks


$data = file_get_contents(http://MyURL/);
        $results = json_decode($data, true); //true = making it into array, not object
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜