A NodeJS module for interfacing with Foursquare.
- Version:
- 0.1.1
- Author:
- Clint Andrew Hall
- Source:
- ../node-foursquare/lib/node-foursquare.js, line 1
Methods
-
<static> getAccessToken(params, callback)
-
Exchange a user authorization code for an access token.
- Source:
- ../node-foursquare/lib/node-foursquare.js, line 78
- 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. 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()
-
Build and return an appropriate Authorization URL where the user can grant permission to the application.
- Source:
- ../node-foursquare/lib/node-foursquare.js, line 105