Skip to content
Minimalist streaming API client for Fouresquare
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example
lib
.gitignore
package.json
readme.md

readme.md

Fours

Minimalist streaming API client for Fouresquare.

Heavily ripping off inspired by https://github.com/diy/diy-client written by Andrew Sliwinski.

Installation

npm install fours

Basic Use

var fours = require('fours')(
        'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // client_id
        'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'  // client_secret shhhh
    );

var request = fours({
    method: 'GET',
    uri:    '/venues/search?near=San%20Francisco,CA'
}).pipe(process.stdout);

request.on('error', function (err) {
    // Oh noes! 
});
Something went wrong with that request. Please try again.