Nomenclature Predictably Misunderstood

    swarmapp-api

    1.0.2 • Public • Published

    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

    1. Lodash: for prefilling API call parameters
    2. Axios: to make the actual API calls
    3. querystring: to prepare url query parameters

    Feature request

    I will be glad (for the time-being) to add the feature you are missing, just open an issue.

    Contributions

    1. Fork
    2. Edit
    3. Push

    Install

    npm i swarmapp-api

    DownloadsWeekly Downloads

    4

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    5.93 kB

    Total Files

    3

    Last publish

    Collaborators

    • mo9a7i