foursquare

Foursquare API nearByVenue service issue

99封情书 提交于 2019-12-11 04:07:56
问题 Using Foursquare api "Venue" service.. i am parsing nearByVenue details like shop, restaurant etc. Suppose as an example i am getting following link: https://api.foursquare.com/v1/venues.json?geolat=40.562362&geolong=-111.938689 Issue is I am getting only 10 nearbyDetails.. suppose I am standing in New York there should be number of venue details.. why I am getting only 10 details only ? Is there any other service or i am following wrong approach to use it? Thanks 回答1: Add l=n where n is your

Foursquare Api return just 1 result on `venue/photos` endpoint with userless authentication

有些话、适合烂在心里 提交于 2019-12-11 02:53:06
问题 The result I get from venue/photos has different with the User Authentication . In the first one I just receive one result (one photo) in the result but in the the second one it return normal result that I expected. --userless authentication-- https://api.foursquare.com/v2/venues/43695300f964a5208c291fe3/photos?client_id=****&client_secret=****&v=20181002 "photos": { "count": 1, "items": [ {} ], "dupesRemoved": 0 } --user authentication-- https://api.foursquare.com/v2/venues

PHP foreach array with stdClass Object

送分小仙女□ 提交于 2019-12-11 01:40:43
问题 I need help trying to get values inside array and stdClass Object. FYI: I'm using foursquare API... I have something like this: `$fsq_groups = $venues->response->groups;` echo "<pre>"; print_r($fsq_groups); echo "</pre>"; From print_r($fsq_groups); Array ( [0] => stdClass Object ( [type] => Recommended Places [name] => recommended [items] => Array ( [0] => stdClass Object ( [reasons] => stdClass Object ( [count] => 2 [items] => Array ( [0] => stdClass Object ( [type] => general [message] =>

foursquare api v2 not getting reply for herenow

寵の児 提交于 2019-12-11 01:33:02
问题 using v2 api url https://api.foursquare.com/v2/venues/4d5db152e0ffa1cdb12a1e54/herenow?oauth_token=FSQ_USER_TOKEN&v=20111205&limit=100 Consistent replies since yesterday {"meta":{"code":200},"notifications":[{"type":"notificationTray","item":{"unreadCount":0}}],"response":{"hereNow":{"count":0,"items":[]}}} But I know that there are 2 checkins, 1 is mine. When I go to Foursquare.com I see the checkins for the venues. This started yesterday. 回答1: Are you sure you're calling the right endpoint?

Google map as fixed background like on foursquare

时光怂恿深爱的人放手 提交于 2019-12-10 20:45:07
问题 I'm trying to do something like this. I want to have google map as a fixed background and place my content(some text) on it as it's made on foursquare. Also i want to be able to scroll my content. This is my effort: #map { width: 100%; height: 100%; position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 0; } #content { width: 200px; margin: auto; position: relative; z-index: 1; border: 4px solid black; } ​ But the map disappears. Any help will be appreciated. 回答1: Here's a way you

FourSquare Photo upload on checkin with Android

岁酱吖の 提交于 2019-12-10 12:14:48
问题 I need to upload photo on checkin using FourSquare.If anybody has done it,Please help me in passing parameters.I have referred FourSquare Offical Document : https://developer.foursquare.com/docs/photos/add. I am facing issue in Last three parameters. Please Help me if you have done it.Thank You in Advance... 回答1: The parameters postUrl , postContentId , and postText are optional, so you do not need to provide them. postUrl and postContentId are used to provide a link that your photo can link

What is my foursquare authenticaion, callback_url and application website?

白昼怎懂夜的黑 提交于 2019-12-10 11:07:55
问题 Im trying to integrate the foursquare API in my iphone but am stuck On the very beginning: registering my app. Its asking me for my callback_url and application website inorder to register my app and get my authentication code but I dont understand what Im supposed to put in for those links since I dont have a domain name for this app. Its just an app with no websites. I have been spending so many hours trying to figure out what to put in those two fields on the foursquare developer site but

How to build a Python crawler for websites using oauth2

前提是你 提交于 2019-12-09 18:27:52
问题 I'm new in web programming. I want to build a crawler for crawling the social graph in Foursquare by Python. I've got a "manually" controlled crawler by using the apiv2 library. The main method is like: def main(): CODE = "******" url = "https://foursquare.com/oauth2/authenticate?client_id=****&response_type=code&redirect_uri=****" key = "***" secret = "****" re_uri = "***" auth = apiv2.FSAuthenticator(key, secret, re_uri) auth.set_token(code) finder = apiv2.UserFinder(auth) #DO SOME REQUIRES

How do I receive a JSON file using AJAX and parse it using javascript?

我怕爱的太早我们不能终老 提交于 2019-12-09 01:59:03
问题 I'm trying to parse this very long and complicated JSON that foursquare gives me. This is my AJAX request: $.ajax({ url: 'https://api.foursquare.com/v2/venues/explore', dataType: 'json', data: 'limit=7&ll='+latitude+','+longitude+'&client_id='+client_id+'&client_secret='+client_secret+'', async: false, success: getVenues(data) }); getVenues is a function I'm making to sort through the JSON and display relevant stuff on the page. The first problem I'm having is that I don't know how to tell

Realtime API self signed certificate

落花浮王杯 提交于 2019-12-08 09:56:38
问题 I'm having a problem using the foursquare realtime API and a self signed certificate. Every time I make a test push I get back "Your Server returned: 502 Bad Gateway" but I'm 90% sure it's not actually reaching my server (I have it set to watch get & post at any address and nothing comes through, if I get/post to any address on the server it works. Local and remote.) Is there some kind of issue with self signed certs and the push api? 回答1: The 502 error makes it sound like it could be a