Catalog npm
Back to packageRELEASE DETAILS

0.1.6

npm

4sq

A wrapper for the Foursquare API

4sqapifoursquarewrapper
Published3 Apr 2014
Direct dependencies5
Transitive dependenciesNot calculated

README

Current package documentation

4sq

NPM version Dependency Status

A node.js wrapper for the Foursquare API.

Installation

$ npm install 4sq

Examples

var Foursquare = require('4sq');

var fsq = new Foursquare({
  token: 'OAuth2 access_token'
});

fsq.checkins('self', {limit: 5}, function(error, data) {
  if (error) {
    throw new Error(error);
  }

  console.log(data);
});
Foursquare = require '4sq'

fsq = new Foursquare token: 'OAuth2 access_token'

fsq.checkins 'self', limit: 5, (error, data) ->
  throw new Error error if error
  console.log data

How to retrieve foursquare OAuth2 access_token

Grab latest source code and install all dev dependencies

$ npm link

Change your host, client id, client secret in examples/get-access-token.coffee and after that run examples/get-access-token.coffee

$ coffee examples/get-access-token.coffee

API

  • user(user_id[, params], callback)
  • checkins(user_id[, params], callback)
  • badges(user_id[, params], callback)

By default user_id set to self.

Author

License

The MIT License, see the included license.md file.

Bitdeli Badge

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
request
Environment
{
  "local_name": "request",
  "alias": false,
  "peer_metadata": null
}
2.xruntime
coffee-script
Environment
{
  "local_name": "coffee-script",
  "alias": false,
  "peer_metadata": null
}
~1.7.1development
everyauth
Environment
{
  "local_name": "everyauth",
  "alias": false,
  "peer_metadata": null
}
0.2.xdevelopment
express
Environment
{
  "local_name": "express",
  "alias": false,
  "peer_metadata": null
}
2.5.xdevelopment
ejs
Environment
{
  "local_name": "ejs",
  "alias": false,
  "peer_metadata": null
}
0.7.xdevelopment

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "23714627fba9311c5547015cdfe5eae82708beed",
  "tarball": "https://registry.npmjs.org/4sq/-/4sq-0.1.6.tgz",
  "integrity": "sha512-8/P780SJhzxhZ+Rgzc7iuzgyJHfTB1H3j9iw080qEtEsci/hj8sxFZAgNHILAMZ9ltKTEqTNWrrgbyHRU4LngA==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIFu2KgIIBPeuhddmYj273Guh2SZmvA8TEOQmKDere5eXAiBa3voXVKv0CMYqN+wDkK4aY0mv9EiKbMKAePTtsqn1fA=="
    }
  ]
}

Repository

PENDING
meritt/node-4sq

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:18 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:adeec89fdc8f96e51b9d35eea780d02dbf97be8b369f38d7f533437f1a22acd7

Other collected versions

0.1.524 Dec0.1.43 Nov0.1.33 Nov0.1.218 May0.1.116 Mar0.1.08 JanView all collected versions →