現在、foursquare API を使用しています。ここの github からファイルをダウンロードしましたhttps://github.com/jmathai/foursquare-async。しかし、clientId、クライアント シークレット、redirectUri などの資格情報を入力すると、うまくいきません。リダイレクト URI の不一致があると表示されます。simpleTest.php ファイルのコードの冒頭は次のようになります。
ob_start();
require_once 'EpiCurl.php';
require_once 'EpiFoursquare.php';
$clientId = 'CLIENT_ID';
$clientSecret = 'CLIENT_SECRET';
$code = 'CODE';
$accessToken = 'ACCESS_TOKEN';
$redirectUri = 'http://www.thered-line.com/foursquare/simpleTest.php';
$userId = '4855602';
$fsObj = new EpiFoursquare($clientId, $clientSecret, $accessToken);
$fsObjUnAuth = new EpiFoursquare($clientId, $clientSecret);
$code と $accessToken を取得するにはどうすればよいですか?