Swarmapp-api
A JavaScript wrapper for SwarmApp (foursquare) API
Installation
Only offered through NPM
$ npm install --save swarmapp-api
Usage
To be revised
Initialize
const swarmappapi = require('swarmapp-api');
const swarm = new swarmappapi({ api_key: <your-api-key> });
Call a function
function exampleGetFriends() {
try {
return api.getFriends();
}
catch (error) {
console.error('error: ' + error);
}
}
Dependencies
- Lodash: for prefilling API call parameters
- Axios: to make the actual API calls
- querystring: to prepare url query parameters
Contributions
- Fork
- Edit
- Push