Application

The Application API provides information about your app and its associated users.

GET Application

var applicationsApi = new YapilyApi.ApplicationsApi()

applicationsApi.getApplicationMeUsingGET(function(error, response) {
    if(error) {
        console.error(error);
    } else {
        console.log("Getting application self: \n\n", response);
    }
})

Application Users

Creating users and retrieving users for your application registered in the Yapily Dashboard

var api = new YapilyApi.ApplicationUsersApi()

module.exports.getUsersUsingGET = function(applicationUserIdsArray, callback) {
    opts = {};
    if (applicationUserIdsArray) {
        opts.filterApplicationUserId = applicationUserIdsArray;
        console.log("\n Filter on applicationUserIds: ", applicationUserIdsArray);
    }
    api.getUsersUsingGET(opts, function(error, response) {
        if(error) {
            console.log("\nCould not get all users:\n\n", error);
        } else {
            console.log("\nGetting all users:\n\n", response);
            callback(null, response);
        }
    });
}