ユーザーガイド > Webベースのデータソースの構成 > TDVのSOAPおよびREST OAUTHの例 > FoursquareのOAuthの例
 
FoursquareのOAuthの例
Foursquareは、アクセストークンタイプとしてクエリーを使用します。ただし、RFC 6749で定義されているようにURLでaccess_tokenが使用されるのではなく、アクセストークン名としてoauth_tokenが使用されるため、サービスにはQueryTokenNameを使用する必要があります。
[OAuth]タブのフィールド
サンプル値
[Authorization URI(認可URI)]
https://foursquare.com/oauth2/authenticate
[AccessToken URI(アクセストークンURI)]
https://foursquare.com/oauth2/access_token
[Using Processors(プロセッサーの使用)]チェックボックスの下のテキストフィールド
 
<Authorization>
   <AuthorizationProcessors>
      <AuthorizationProcessor>
         document.getElementById('username').value='test@gmail.com';          document.getElementById('password').value='xxxxxx';          document.getElementById('loginToFoursquare').submit();
      </AuthorizationProcessor>
   </AuthorizationProcessors>
</Authorization>
<QueryTokenName>oauth_token</QueryTokenName>