Socket
Socket
Sign inDemoInstall

4square-venues

Package Overview
Dependencies
30
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    4square-venues

Simple module for adding, editing or searching Foursquare Venues via the API


Version published
Maintainers
1
Created

Readme

Source

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)

Keywords

FAQs

Last updated on 06 Mar 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc