foursquare

Foursquare venue photos API only occasionally working with client_id/client_secret?

前提是你 提交于 2019-12-11 11:03:37
问题 I've found that some venues will only return photos if I use a signed in user instead of a client_id / client_secret. Is this intentional? curl -i https://api.foursquare.com/v2/venues/4c36476d93db0f47f6cc1d92/photos?client_id=xxx\&client_secret=xxx\&group=venue\&v=20120304 HTTP/1.1 200 OK Access-Control-Allow-Origin: * Cache-Control: no-cache, private, no-store Content-Type: application/json; charset=utf-8 Date: Mon, 05 Mar 2012 00:28:34 GMT Expires: Mon, 5 Mar 2012 00:28:34 GMT Pragma: no

Connect to Foursquare app in developer mode

微笑、不失礼 提交于 2019-12-11 10:12:12
问题 Following the advice of a fellow Stack Overflow user (on a previous question which I asked: Lastest Foursquare check-in on map) I have written a PHP-based Foursquare app which uses the Push API to show my latest checkin on a map which I can then embed into my blog. Obviously I would like to keep this app private, so that it only shows my latest checkins. I figured the best way would be to keep the app in Developer Mode, but it seems that I can't connect to the app myself (i.e. using the same

images from foursquare are NSURLErrorFileDoesNotExist = -1100

我怕爱的太早我们不能终老 提交于 2019-12-11 09:15:02
问题 I am attempting to download an image from foursquare( sourced from using the venue api) and I keep getting NSURLErrorFileDoesNotExist = -1100, errors for trying to grab the image. imageUrl = [NSURL URLWithString: [NSString stringWithFormat: [@"https://irs0.4sqi.net/img/general/720x400/1203715_jAVNrPE87IFuOUa69i1q5UXQ0bUAfjG8V-R_hBUL09c.jpg" stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]]; //[cell.venueImageView sd_setImageWithURL:imageUrl placeholderImage:nil]; typeof

how to add venue to foursquare without user authentication

情到浓时终转凉″ 提交于 2019-12-11 08:30:01
问题 I want to add venues to foursquare from my app but I don't want to make the users sign in into foursquare. I created one fake user that my server uses for all the real users of my application, but I'm afraid foursquare will block this fake user becauase it's going to add many venues, and from different places at the same time. What's the best solution? thanks. 回答1: Your set up is definitely not recommended, but as a way to mitigate your risks, limit the number of venues a user can create via

How can I implement a realtime dashboard?

荒凉一梦 提交于 2019-12-11 07:39:50
问题 I would like to implement a realtime dashboard like an index page of www.foursquare.com I checked foursquare.com's index page with Chrome's developer tool and surprised that they don't use xhr to get those information approx. every 5 seconds. Using ajax polling causes memory leak in some browsers and make a server busier. Is there any way that I can implement a realtime dashboard efficiently with PHP and jQuery(AJAX)? (Perhaps I need an extra server something like a push server?) :| 回答1:

Calling foursquare userless api from the command line

牧云@^-^@ 提交于 2019-12-11 07:24:45
问题 I have been successfully using foursquare's API with the oauth_token from the command line using wget. E.g., wget https://api.foursquare.com/v2/venues/4510e899f964a52089391fe3?oauth_token=MY_TOKEN&v=20120327 With this command, I was able to obtain the response and parse the results. However, since using the authentication token has a limit of 500 requests per hour (etc.) and since I am interested in userless access, I thought of using the client_id and client_secret . However, whenever I am

NSJSONSerialization isValidJSONObject returns false for received data from Venue search endpoint

南笙酒味 提交于 2019-12-11 06:14:43
问题 Xcode 8.1 Deployment target iOS 9.0 I'm getting an array of compact venue objects as expected from Foursquare Venue Search endpoint in... - (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask didReceiveData:(NSData *)data When I check the data object using... if ([NSJSONSerialization isValidJSONObject:data]) i get a false. Can someone tell me what is wrong over here? Edit: Here is the complete if block (after adding typecast to data in if block)... id

400 Bad Request with Foursquare API

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 05:59:51
问题 I am posting a checkin to 4sq but keep getting 400 Bad Request. Here is a very simple code that does the checkin: client = new WebClient(); client.UploadStringCompleted += (s, args) => { var result = args.Result; }; client.UploadStringAsync(new Uri("https://api.foursquare.com/v2/checkins/add/?oauth_token=my_token"), "POST", "venueId=venue_id"); I am sure my_token and venue_id is correct because I use them for getting list of previous checkins and venue information. Do you see something wrong

How can I get checkins in a certain location on Foursquare?

你说的曾经没有我的故事 提交于 2019-12-11 05:34:16
问题 I guess the title is pretty self-explanatory. I want to get all the checkins in a certain area given the latitude and longitude. All I've been able to find is https://developer.foursquare.com/docs/checkins/recent and https://developer.foursquare.com/docs/venues/venues , but neither of them are useful for me. I'm pretty sure there has to be a way, but I can't find it. 回答1: Use this api and filter by "hereNow" count for each venue, this will give you count of people currently in that location

how to get profile pic for foursquare user based on the object

别来无恙 提交于 2019-12-11 05:16:00
问题 There is some contradiction in the api documentation: on one location: https://developer.foursquare.com/docs/responses/user on another location, trying it out: https://developer.foursquare.com/docs/explore#req=users/self https://irs3.4sqi.net/img/user/HBVX4T2WQOGG20FE.png is returning an Internal Error. How can I get the profile pic of a user? A couple of days ago the endpoint returned a string with the profile pic, now it has changed, but I can't find any documentation on that. Edit: Also