【问题标题】:How to get access token for searching venues in foursquare如何获取访问令牌以在foursquare中搜索场所
【发布时间】:2011-06-04 06:59:13
【问题描述】:

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

thisgem,获取场地。

 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

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

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

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

【问题讨论】:

    标签: api foursquare access-token


    【解决方案1】:

    我觉得你应该看看

    foursquare Venues Project (beta)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-07
      • 2013-11-10
      • 2012-02-28
      • 1970-01-01
      • 2013-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多