Adapter Online Help > TDV Web-Based Data Sources > TDV SOAP and REST OAUTH Examples > Foursquare OAuth Example
 
Foursquare OAuth Example
Foursquare uses Query as the access token type. However, it uses oauth_token as the access token name instead of using access_token in the URL, as defined in RFC 6749, so you need to use QueryTokenName for the service.
OAuth Tab Field
Sample Values
Authorization URI
https://foursquare.com/oauth2/authenticate
AccessToken URI
https://foursquare.com/oauth2/access_token
Text field below the Using Processors check box
 
<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>