getUser without parameters
Closed this issue · 2 comments
Exxplozer commented
Function getUser haven't any parameters so I can't get self user because I can't add parameter 'v' for supported API version, I have got this error:
[Error: 410: The Foursquare API no longer supports requests that do not pass in a version parameter. For more details see https://developer.foursquare.com/overview/versioning]
brutaldev commented
You must provide the version globally in your config when you require node-foursquare
and it will get sent in all API requests. Example:
var foursquare = require('node-foursquare')({
foursquare: {
version: '20150802'
}
});
This is in the readme: https://github.com/clintandrewhall/node-foursquare#foursquare-api-version-and-deprecation-warnings
clintandrewhall commented
Thanks @brutaldev ...!