4square-venues
Simple module for adding, editing or searching Foursquare Venues via the API
Last updated 6 years ago by mattcollins84 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install 4square-venues 
SYNC missed versions from official npm registry.

4square

Simple Module for 4Square Venues

npm install 4square-venues

Notes

This module will not (as yet) do the oAuth token exchange to get your oAuth access token, it is assumed this is known and stored in a DB or something.

The oAuth access token is only needed for destructive calls such as addVenue() or editVenue().

Examples

  var foursquare = new require('4square-venues')(CLIENT_ID, CLIENT_SECRET, [OAUTH_ACCESS_TOKEN], [API_DATE_VERSION]);

  var addParams = { ... }

  foursquare.addVenue(addParams, function(err, data) {
    
    if (err) {
      console.log(err);
    } else {
      console.log(data);
    }

  });

Methods

foursquare.addVenue(opts, callback)

foursquare.getVenue(opts, callback)

foursquare.getCategories(opts, callback)

foursquare.editVenue(opts, callback)

foursquare.searchVenues(opts, callback)

Current Tags

  • 0.0.3                                ...           latest (6 years ago)

3 Versions

  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 3
This Month 13
Last Day 0
Last Week 2
Last Month 6
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |