foursquare

Omniauth with FourSquare issue

心已入冬 提交于 2020-01-05 07:40:24
问题 UPDATE 2011/05/01: I later carefully read through FourSquare's API document, and found it says: (Note that the request parameters are not JSON, they are standard HTTP keys and values.) All authentication is via OAuth2, which means that all requests MUST be https. Could this be the problem that I don't have a SSL connection in my development machine? Hi all! I am trying to connect FourSquare via Omniauth, I followed the Railscast toturial below, and change the provider into foursquare. But the

Why does an exact match on a name return a useless set of venues?

吃可爱长大的小学妹 提交于 2020-01-04 09:10:07
问题 This doesn't make much sense to me, and I'm hoping someone can shed some light on what's going on here and how I work around it. If I query like this: https://api.foursquare.com/v2/venues/search?ll=37.77%2C-122.41&radius=15000&intent=browse&oauth_token=xxx&limit=20&query=pi%20ba I get a list of about 15 items, including the item I'm searching for (pi bar). However, if I search for the exact match name: https://api.foursquare.com/v2/venues/search?ll=37.77%2C-122.41&radius=15000&intent=browse

Identify a UIButton that is pressed in swift?

半世苍凉 提交于 2020-01-03 03:05:34
问题 How can I identify a UIButton element as a string and use that string in a function call? I want to be able to know what button has been pressed and then provide information based on that button that has been pressed. Would I use String Interpolation? I then want to use the string and run a query from the Foursquare API. Below is the code I have been working on: Firstly the button names: let buttonNames = ["african", "buffet", "burger", "chinese", "fries", "grill", "icecream", "jap", "mex",

What's the best way to tune my Foursquare API search queries?

女生的网名这么多〃 提交于 2019-12-31 12:58:24
问题 I'm getting some erratic results from Foursquare's venue search API and I'm wondering if anyone has any tips on how to process my input parameters for the most "intuitive" results. For example, suppose I am searching for a venue called "Ise Sushi", around "New York, NY", which is equivalent to (lat: 40.7143528, lon: -74.00597309999999) using Google Maps API. Plugging into the Foursquare Venue API, we get: https://api.foursquare.com/v2/venues/search?query=ise%20sushi&ll=40.7143528%2C-74

What is the IP address range for foursquare API? [closed]

梦想与她 提交于 2019-12-31 05:28:23
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I'm developing a Web service using a VM behind a firewall on a University. I need to know what a range of IP address to give to our IT guy so we can get access to calls from foursquare. 回答1: You'll never be able to reliably pin this down. It's not as if they are using one subnet. Your IT guy needs to open up

how foursquare determine a user location?

陌路散爱 提交于 2019-12-30 14:15:10
问题 I just use foursquare first time, looks it find my location and shows on the map very correct. I am using desktop at home, just curious, how does it know my address? Thanks. 回答1: It uses HTML5's Geolocation API to determine a user's location 回答2: It uses the GPS from your phone and updates your position on that. For an exact businesses you are at, you "Check-In" to a business through the app. 来源: https://stackoverflow.com/questions/9899694/how-foursquare-determine-a-user-location

Rails Select from JSON Array

独自空忆成欢 提交于 2019-12-30 11:49:29
问题 I have a JSON array that was returned from Foursquare; let's call it @venues . I want to be able to "select" a venue via a drop down box and I want it to be part of a form. That means I want to be able to select a specific venue by name (i.e. in this case, Hotel Utah Saloon), and save it's id into a model. To clarify, I will only be saving the venues I select, not all of them. Through research, I have found myself confused between select , collection_select , and select_tag . Keep in mind

Programmatic Save button not working

南笙酒味 提交于 2019-12-24 17:53:36
问题 I'm working on a site that will have more than one 'Save' button per page, and I need a callback for each one so that I can register in my own system that the user has completed the Save action. I thought I had figured out how to do this programmatically... but for each widget I create, when I try to add it to the DOM through the SDK, I get a "Cannot read property 'style' of null" error. Here's my Javascript <script type='text/javascript'> (function () { window.___fourSq = { "uid": "31904528"

Foursquare missing file upload / InvalidPhotoFormat error while uploading photo through api

左心房为你撑大大i 提交于 2019-12-24 00:47:03
问题 I'm trying to add a photo to foursquare page using api: https://api.foursquare.com/v2/photos/add and following node.js code: var accessToken = "myAccessToken"; var platformProfileId = "4squarePageId"; var b64content = "somebase64stringrepresentationofimage"; var url = "https://api.foursquare.com/v2/photos/add"; var formObj = {'oauth_token': accessToken, v: '20151009', 'pageId': platformProfileId, 'photo': b64content}; request({ url: url, //URL to hit form: formObj, //form data method: 'POST',

hereNow not working as expected

ぃ、小莉子 提交于 2019-12-23 23:21:03
问题 I've got that they changed their api according to this: https://groups.google.com/forum/?fromgroups#!topic/foursquare-api/sQMuHlv9wiU But it sais I should be able to get people near-by if I'm checked-in to the specific place. However it gives me back the same response before check-in and after check-in ... 回答1: Edit: A couple other devs have run into this issue, and in many cases, it looks like the issue is that lat/lng isn't being passed into the checkins/add request (the "ll" param). You're