foursquare

How can I get the position (lat, lon) of a foursquare checkin posted on twitter?

血红的双手。 提交于 2019-12-04 13:52:13
问题 I search with the twitter API all the public tweets with "4sq.com": http://search.twitter.com/search.json?q=4sq.com so I get all the check-in on Foursquare that actually shared on Twitter. {"created_at":"Sun, 08 Jan 2012 20:05:27 +0000","from_user":"fenavergara","from_user_id":50876086,"from_user_id_str":"50876086","from_user_name":"Fernanda Vergara Ch","geo":null,"id":156104246239051776,"id_str":"156104246239051776","iso_language_code":"lt","metadata":{"result_type":"recent"},"profile_image

How to use categoryId in Foursquare Venues search API

只愿长相守 提交于 2019-12-04 12:21:08
问题 I am getting unexpected results from API queries when including a categoryId parameter. For instance, when using the following parameters to search for 'The Citizen Public House' in Boston, MA ll: 42.3489027315987, -71.096134185791 query: citizen categoryId: 4bf58dd8d48988d116941735 <== 'bars' The results wind up including venues from other categories, like 'banks'. Is there something wrong with the categoryId parameter? In the API documentation it is labeled 'experimental.' Am I using it

How to build a Python crawler for websites using oauth2

ε祈祈猫儿з 提交于 2019-12-04 11:05:34
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 By USING THE FINDER finder.finde(ANY_USER_ID).mayorships() bla bla bla The problem is that at present,

Is there any way to get the foursquare venue id of a place given an Instagram location id?

别来无恙 提交于 2019-12-04 08:06:16
Instagram locations are selected from a list of foursquare venues, and it's definitely possible to search for Instagram locations given a foursquare venue id, but I have an Instagram post and would like to find the foursquare venue it corresponds to - is this possible? 来源: https://stackoverflow.com/questions/19283541/is-there-any-way-to-get-the-foursquare-venue-id-of-a-place-given-an-instagram-lo

Tastypie: How can I fill the resource without database?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 06:23:30
I want to grab some information from Foursquare , add some fields and return it via django-tastypie. UPDATE: def obj_get_list(self, request=None, **kwargs): near = '' if 'near' in request.GET and request.GET['near']: near = request.GET['near'] if 'q' in request.GET and request.GET['q']: q = request.GET['q'] client = foursquare.Foursquare(client_id=settings.FSQ_CLIENT_ID, client_secret=settings.FSQ_CLIENT_SECRET) a = client.venues.search(params={'query': q, 'near' : near, 'categoryId' : '4d4b7105d754a06374d81259' }) objects = [] for venue in a['venues']: bundle = self.build_bundle(obj=venue,

Scrollview like foursquare with maps + list

不想你离开。 提交于 2019-12-04 04:34:01
问题 I'm trying to understand how can I achieve a scrollview like Foursquare app uses. The map y position follows the revenue list when scrolling. UIScrollview with the map + a list of revenues as UIViews or UITableView using the map as HeaderSection and revenues as UITableViewCell (I tried that, but the map reloads after scrolling table) or Separating Map from UITableview and syncing map position with table list? 回答1: This looks very interesting. Create Parallax effect between UITableView &

OAuth not working inside an iframe

柔情痞子 提交于 2019-12-03 17:59:14
问题 I have built a Fiddle on JSFiddle which retrieves an OAuth access token via Foursquare's "token" response type. One or two days ago this was working fine. When "Login with Foursquare" was clicked Foursquare's authorization page appeared and I was able to get an access_token. Today I get an error that says "Refused to display document because display forbidden by X-Frame-Options." I have contacted JSFiddle to see if they have changed their X-Frame-Options headers, but I believe it is the

categoryId ignored for intent=browse searches in foursquare venues/search

半城伤御伤魂 提交于 2019-12-03 17:27:35
As of a few days ago, foursquare venues/search with intent=browse seems to ignore categoryId. It definitely worked before that. If I change intent=checkin the category filtering is applied. Here's a sample query https://api.foursquare.com/v2/venues/search?radius=1405&ll=37.769587%2C-122.420139&limit=30&intent=browse&client_id=CLIENTID&v=20120216&client_secret=CLIENTSECRET&categoryId=4d4b7105d754a06374d81259 note I'm doing a userless query. Perhaps related to the recent changes to allow multiple categoryId's? This is a bug and the team is investigating a fix. Thanks for the report 来源: https:/

Small Popup for Instructions, like foursquare ones

♀尐吖头ヾ 提交于 2019-12-03 16:44:55
问题 After seeing the last screenshots of new foursquare application and their balloon like cartoon instructions, I'd like to create some of these in my application. I found a similar question for iPhone Small popup for instructions... How? Here is another screenshot of foursquare app: I'd like to know how I could achieve that with Android. Thanks in advance for any help. UPDATE : This is what I could get so far but adding some buttons with a custom drawn background and layering them with a

Is there an api order_by/sort parameter in the works?

风流意气都作罢 提交于 2019-12-03 16:33:42
It would be extremely helpful if an "order_by" & "sort" parameter could be passed in the api querystring. "order_by" should accept the following options: distance | checkins | name "sort" should accept the following options: asc | desc The matched result set should have the order_by and sort parameters applied prior to narrowing the result set to the max "50" results that get returned. Is this on the foursquare radar or is it something that will not be offered? We are building an app that lets users locate "restaurants" closest to them based on the device's geolocation. The issue we are having