code: function getEntities(callback) {
      self.get(filter, fields, null, page, sort, function(error, entities, pagination) {
        if (error) return callback(error);
  
        allEntities = allEntities.concat(entities);
  
        if (page < pagination.pages - 1) {
  
          // There are other pages
          // Get next page
          page++;
          getEntities(callback);
  
        } else {
  
          // No more pages
          // End it
          callback(null);
        }
      });
    }
docs: Fetches all entities iterating on all pages.
  
  @param {Function} callback The function to call when it's done