Module: collectionsGet

(require("collectionsGet"))(idopt) → {promise}

Returns a list of collections based on the organization ID. Branches utilize a subset of collection information maintained at the system level in Polaris. To retrieve a list of all collections in the system, pass in an organization ID of 1. To retrieve a list of collections for a specific branch, pass in the branch ID.
Parameters:
Name Type Attributes Default Description
id integer <optional>
1 all|system|library|branch
Source:
Returns:
Type
promise
Examples
myPapi.collectionsGet()
     .then(function(response) {
         console.log(response.data);
     });
myPapi.collectionsGet('3')
     .then(function(response) {
         console.log(response.data);
     });