foursquare

Create venue without providing ll

给你一囗甜甜゛ 提交于 2019-12-13 00:33:46
问题 This url I am hitting for searching the venues https://api.foursquare.com/v2/venues/search?ll=undefined%2Cundefined&query=A&limit=25&v=20170721&m=foursquare&client_id=CLIENTID&client_secret=CLIENTSECRET It gives me the near by venues but I need to get overall venues around the world... So when I don't put the ll it throws error must provide ll How can I search for all the venues ? Any help would be appriciated 回答1: You can use intent=global param. e.g. https://api.foursquare.com/v2/venues

Issues with map behind UIView, similar to FourSquare venue detail

落爺英雄遲暮 提交于 2019-12-12 15:28:28
问题 I am currently using this excellent solution from @yonel to make something similar to the FourSquare venue detail page. Within my storyboard I have this: The problem is: because the scroll is a bit laggy, when I scroll fast I get a "Received memory warning." message in my console. The curious thing is that if I remove all of the labels and buttons inside the UIView (just below the Map View ), everything works fine. Any idea what could be wrong? 回答1: As the above posters mentioned, it is

Foursquare - OAuth Authentication - .Net Sample

廉价感情. 提交于 2019-12-12 08:57:49
问题 Is there any sample on how to authenticate to Foursquare using Oauth ? 回答1: There a very nice workflow summary for how to use OAuth with Foursquare here: http://developer.foursquare.com/docs/oauth.html Once you get authenticated with OAuth, you can start making foursquare API calls: http://developer.foursquare.com/docs/overview.html 来源: https://stackoverflow.com/questions/3611731/foursquare-oauth-authentication-net-sample

Foursquare venues api returns incorrect data for checkin intent

梦想与她 提交于 2019-12-12 03:46:03
问题 It varies from city to city but I've noticed that the actual Foursquare app always returns an accurate list of stores that are nearby for checkin ... whereas the developer api results are mostly inaccurate and often upto 3 blocks off their mark when usin intent=checkin ... what gives? 来源: https://stackoverflow.com/questions/15249164/foursquare-venues-api-returns-incorrect-data-for-checkin-intent

How to get all the venues data using foursquare api

橙三吉。 提交于 2019-12-12 03:44:22
问题 I have created app in foursquare and get the client_id and client_secret key . I need all the restaurants details of a city.but i got only 50 restaurant details. Please help me . thanks in advance 'https://api.foursquare.com/v2/venues/explore?near=San Francisco,San Francisco&section=food&novelty=50&client_id=client_id&client_secret=client_secret&v=20170109'; 回答1: Matt is correct that you can use the offset parameter but his linked documentation and sample url was a little off. It looks like

Trouble looping through an array created from a foursquare JSON feed

▼魔方 西西 提交于 2019-12-12 01:35:40
问题 I'm working on a side project and at its core, I need to get a foursquare json feed into an array that i can loop through. My code is below and results in the following error: Warning: Invalid argument supplied for foreach() in /homepages/7/d346835943/htdocs/dealrub/results.php on line 56 Here is an example of the json feed that i am correctly acquiring: $jsonurl = "http://api.foursquare.com/v2/venues/search?ll=".$lat.",".$lon."&limit=100"; $json = file_get_contents($jsonurl,0,null,null);

How to place a button “over” the UITableView like Foursquare

邮差的信 提交于 2019-12-11 21:43:34
问题 As the title, I'd like to place a button over the UITableView, like what they did to the check-in button in Foursquare: you can still roll the table view up and down, but the button will stay at the same position. Any tips? Thanks! ! 回答1: If you are using a view controller with a table view inside it, just add another subview of the view, above the table view. If you are using a table view controller, it is a bit more tricky. You can add the button as a subview of the table view, and when the

What are requirements to handler of Push Callback of Foursquare API?

强颜欢笑 提交于 2019-12-11 17:58:23
问题 What are requirements for handler of Push Callback of Foursquare API? What http verb 4sq uses to make a call ? What parameters/information does it send to my server ? What my server should reply ? Surprisingly I don't see answers on these questions at https://developer.foursquare.com/overview/ Update: Well, since nobody replied I decided to insert to DB whatever comes to my end-point. Turned out callbacks never reach my server. Foursquare Push Console says my server returns 502 Bad Gateway

Why is Foursquare API not returning menu for certain venues

不羁岁月 提交于 2019-12-11 16:28:00
问题 I am hoping someone can figure this out: Through the Foursquare API, you can get the menu by providing the Venue_ID of a particular restaurant: https://developer.foursquare.com/docs/venues/menu e.g. https://api.foursquare.com/v2/venues/47a1bddbf964a5207a4d1fe3/menu?oauth_token=my_auth_token_goes_here&v=20130928 And that works. But it doesn't work for the following (and several other) restaurants: https://api.foursquare.com/v2/venues/4fa027ede4b0e4be23b3374e/menu?oauth_token=my_auth_token_goes

foursquare oauth2 for IOS

僤鯓⒐⒋嵵緔 提交于 2019-12-11 12:05:34
问题 Im upgrading from v1 foursquare api to v2 which requires Oauth2. Is it correct that to use the web server flow as recommened I should direct the user to : https://foursquare.com/oauth2/authenticate ?client_id=YOUR_CLIENT_ID &response_type=code &redirect_uri=YOUR_REGISTERED_REDIRECT_URI Once the user is authenticated foursquare will redirect to : https://YOUR_REGISTERED_REDIRECT_URI/?code=CODE Meaning I need to define an endpoint at https://YOUR_REGISTERED_REDIRECT_URI which will then make a