foursquare

Android - ScrollView like foursquare with maps + list

五迷三道 提交于 2019-12-20 08:55:08
问题 This is the Android equivalent of this iOS question. Trying to create a view that contains a MapView at about 20% of the screen (under an ActionBar...) and the rest of the screen is a ScrollView that when scrolling down, overlaps on top of the MapView and hides it. In short like FourSquare's Android app. Any ideas? 回答1: I've made an implementation based on AndroidSlidingUpPanel (many thanks to this project). Details http://android.amberfog.com/?p=915 Source code with example: https://github

How do I get more locations?

空扰寡人 提交于 2019-12-20 05:29:47
问题 I am trying to get some locations in New York using FourSquare API using the following API call: https://api.foursquare.com/v2/venues/search?ll=40.7,-74&limit=50 What I don't understand is that if the call imposes a limit of 50 search results (which is the maximum), how can I get more locations? When using Facebook API, the results being returned were random so I could issue multiple calls to get more results but FourSquare seems to be returning the same result set. Is there a good way to get

How do I get more locations?

余生长醉 提交于 2019-12-20 05:29:25
问题 I am trying to get some locations in New York using FourSquare API using the following API call: https://api.foursquare.com/v2/venues/search?ll=40.7,-74&limit=50 What I don't understand is that if the call imposes a limit of 50 search results (which is the maximum), how can I get more locations? When using Facebook API, the results being returned were random so I could issue multiple calls to get more results but FourSquare seems to be returning the same result set. Is there a good way to get

OAuth2 with intridea ruby gem

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 09:28:33
问题 I have the following code: token = client.auth_code.get_token(code, :redirect_uri => 'http://localhost:3000') response = token.get('https://api.foursquare.com/v2/users/self/checkins', {:mode => :query}) The problem is that no matter what :mode I specify I always get a Bearer token in Authorization header. The code in question is a private set_token which always depends on the default :mode which is always :header. Am I using it wrong? Thanks! 回答1: There seems to be a problem how the oauth2

Parsing JSON response in Android

旧街凉风 提交于 2019-12-18 17:03:13
问题 I am writing a httpget request for android that queries the foursquare api for nearby event. The JSON responce I receive back is {"groups": [ { "type": "Nearby", "venues": [ { "id": 2587838, "name": "Marriott Druids Glen Hotel Newtownmountkennedy", "primarycategory": { "id": 79281, "fullpathname": "Travel:Resort", "nodename": "Resort", "iconurl": "http://foursquare.com/img/categories/travel/resort.png" }, "address": "Newtownmountkennedy", "city": "Newtownmountkennedy", "state": "", "verified"

Foursquare api consumer disabled

流过昼夜 提交于 2019-12-17 17:00:53
问题 I recently started using the foursquare API, but suddenly I get "Consumer disabled" error responses. So far, the only API call I've been doing is one to browse some venues: https://api.foursquare.com/v2/venues/search?ll=51.222816,3.224778&query=Friet&radius=200&limit=10&categoryId=4d4b7105d754a06374d81259&client_id=app_id&client_secret=app_secret&v=20161116 These are the parameters I am sending: ll:51.222816,3.224778 query:Friet radius:200 limit:10 categoryId:4d4b7105d754a06374d81259 client

How do popular apps authenticate user requests from their mobile app to their server?

旧巷老猫 提交于 2019-12-17 08:02:14
问题 Say I have an Android application that connects to a .Net API for receiving/setting data. The confusion that I have is regarding how to sign-up/login the user first time and authenticate it every time they make a request to the API. If I just use username/password based authentication they won't be safe enough? And I can't save that username/password in the device for of course security reasons? Should I issue a GUID for every user at the sign-up, save it in their device and retrieve every

Foursquare API for venue user image error

爱⌒轻易说出口 提交于 2019-12-17 07:23:28
问题 The Foursquare API has divided its photo tag for user as prefix and suffix. But if I merge them to form a full image URL and paste this in my browser, gives me errors that says the image can't be displayed because it contains errors. Is it because server is temporarily unavailable or anything else? I am using the API for Venue Detail. I got the data like this user: { id: "26534686" firstName: "Bobbi" lastName: "E." photo: { prefix: "https://irs3.4sqi.net/img/user/" suffix: "/K4VCI4MXHWFUGXOF

Foursquare API doesn't work when searching main categories

青春壹個敷衍的年華 提交于 2019-12-14 03:15:43
问题 Venues Search API has stopped working as it has been working and as it is documented. After digging in this more deeply, it is obvious that "categoryId" parameter works only, if you define exact mach. If you define root category, it doesn't search from its subcategories as it should. To test, you can try: https://api.foursquare.com/v2/venues/search?ll=40.7,-74&categoryId=4bf58dd8d48988d154941735 --> Return Cuban Restaurants (4bf58dd8d48988d154941735 -> "Cuban Restaurant") This returns 0

FourSquare API for iphone

。_饼干妹妹 提交于 2019-12-13 12:22:03
问题 As I need to integrate the foursquare in my application, I have found the API and also integrate in my application. But there is some problem. I want to show the nearest venue around me. As there is also method to show the venue +(void)searchVenuesNearByLatitude:(NSString*)lat longitude:(NSString*)lon accuracyLL:(NSString*)accuracyLL altitude:(NSString*)altitude accuracyAlt:(NSString*)accuracyAlt query:(NSString*)query limit:(NSString*)limit intent:(NSString*)intent callback: