fourplaces

    2.0.1 • Public • Published

    Fourplaces

    Foursquare Places API wrapper for Node.js.

    Docs

    Documentation

    Authentication

    Internationalization

    Versioning

    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);
      }
    })();

    Built With

    Authors

    Acknowledgments

    Install

    npm i fourplaces

    DownloadsWeekly Downloads

    1

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    33.1 kB

    Total Files

    19

    Last publish

    Collaborators

    • xxgicoxx