Current collected state Current
Observed since 20 Oct, 20:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
4sq
A wrapper for the Foursquare API
A node.js wrapper for the Foursquare API.
$ npm install 4sq
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
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
user(user_id[, params], callback)checkins(user_id[, params], callback)badges(user_id[, params], callback)By default user_id set to self.
The MIT License, see the included license.md file.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
requestEnvironment{
"local_name": "request",
"alias": false,
"peer_metadata": null
} | 2.x | runtime |
coffee-scriptEnvironment{
"local_name": "coffee-script",
"alias": false,
"peer_metadata": null
} | ~1.7.1 | development |
everyauthEnvironment{
"local_name": "everyauth",
"alias": false,
"peer_metadata": null
} | 0.2.x | development |
expressEnvironment{
"local_name": "express",
"alias": false,
"peer_metadata": null
} | 2.5.x | development |
ejsEnvironment{
"local_name": "ejs",
"alias": false,
"peer_metadata": null
} | 0.7.x | development |
Source distribution
{
"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=="
}
]
}Observed since 20 Oct, 20:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:adeec89fdc8f96e51b9d35eea780d02dbf97be8b369f38d7f533437f1a22acd7