fourplaces
v2.0.1
Published
Foursquare Places API wrapper for Node.js
Downloads
1
Maintainers
Readme
Fourplaces
Foursquare Places API wrapper for Node.js.
Docs
Prerequisites
Installation
npm install fourplaces
Credentials
1. Foursquare
# Account
Create an Foursquare account on https://foursquare.com/developers/signup.
# Create App
Create A New Foursquare App on https://pt.foursquare.com/developers/apps.
# Client ID and Secret
Obtain an Client ID and Secret on https://pt.foursquare.com/developers/apps.
Examples
const Fourplaces = require('fourplaces');
const fourplaces = new Fourplaces({
client_id: 'CLIENT_ID',
client_secret: 'CLIENT_SECRET',
redirect_uri: 'REDIRECT_URI',
locale: 'LOCALE',
version: 'VERSION'
});
(async () => {
try {
const venues = await fourplaces.venues().explore({
query: 'Café',
near: 'Pato Branco, PR',
});
console.log(venues);
} catch (error) {
console.error(error);
}
})();