Skip to content

Commit

Permalink
add version parameter to foursquare API request
Browse files Browse the repository at this point in the history
as of January 28, 2014 foursquare will drop support for API requests
without a version `v=YYYYMMDD` parameter

more: https://developer.foursquare.com/overview/versioning
  • Loading branch information
pirxpilot committed Dec 28, 2013
1 parent a45bd1d commit af4fbda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/foursquare.js
Expand Up @@ -20,7 +20,7 @@ oauthModule.submodule('foursquare')
.fetchOAuthUser( function (accessToken) {
var promise = this.Promise()
, userUrl = this.apiHost() + '/users/self'
, queryParams = { oauth_token: accessToken }
, queryParams = { oauth_token: accessToken, v: '20131201' }
request.get({ url: userUrl, qs: queryParams}, function (err, res, body) {
if (err) {
err.extra = {res: res, data: body};
Expand Down

0 comments on commit af4fbda

Please sign in to comment.