我尝试通过foursquare api获取场地。我尝试的步骤是:
- 注册了我的应用程序;
- 获取access_token;
- 下载foursquare-aync库
这是我尝试使用但没有用的代码:
require_once("Api_Foursquare_EpiCurl");
require_once("Api_Foursquare_EpiFoursquare");
require_once("Api_Foursquare_EpiSequence");
$fsObj = new EpiFoursquare($clientId, $clientSecret, $accessToken);
$venue = $fsObj->get('/venues/search', array('ll' => "{$myLat},{$myLng}"));
特别是我不了解我在注册中设置的回调的功能。谢谢!