- Source:
- ./lib/node-foursquare.js, line 24
Namespaces
Methods
-
<static> getAccessToken(params, callback)
-
Exchange a user authorization code for an access token.
- Source:
- ./lib/node-foursquare.js, line 185
- See:
-
- https://developer.foursquare.com/docs/oauth.html
Parameters:
Name Type Description params
Object A collection of parameters for the Access Token request. Properties
Name Type Argument Default Description code
String The code provided by Foursquare as the result of the user redirect. redirect_uri
String The URL to redirect to after the code is exchanged for a token. client_id
String The Client ID provided by Foursquare. client_secret
String The Client Secret provided by Foursquare. grant_type
String <optional>
"authorization_code" The type of authorization to request. callback
Function The function to call with results, function({Error} error, {Object} results). -
<static> getAuthClientRedirectUrl(clientId, redirectUrl)
-
Build and return an appropriate Authorization URL where the user can grant permission to the application.
- Source:
- ./lib/node-foursquare.js, line 219
Parameters:
Name Type Description clientId
String The Client ID provided by Foursquare redirectUrl
String The URL to redirect to after authorization is granted.