如何在foursquare中获取用于搜索场地的访问令牌

时间:2011-06-03 22:52:32

标签: api foursquare access-token

如何在foursquare中获取用于搜索场地的访问令牌。

this宝石,到取得场地。

 venue = Foursquare::Venue.new(access_token) 
 venue.search({:ll => "37.792694,-122.409325"})

来自foursquare API。

https://developer.foursquare.com/docs/oauth.html

获取访问令牌

使用新API有三种常用方法。

Web服务器应用程序

 (PHP, Perl, Ruby, Python, Java, Scala, etc.)
 Redirect users who wish to authenticate to
 https://foursquare.com/oauth2/authenticate
   ?client_id=YOUR_CLIENT_ID
   &response_type=code
   &redirect_uri=YOUR_REGISTERED_REDIRECT_URI

等等。其他3种获取令牌的方法。

但为什么我需要令牌来搜索场地。我只是想搜索场地。

PS:基本上我正在开发一个应用程序,为此我需要场地,那就是我需要foursquare api。我想要的只是场地及其提示,标签等,与用户在foursquare上的数据无关

1 个答案:

答案 0 :(得分:1)

我认为你应该看看

foursquare Venues Project (beta)