lib/google.js
function getProperties() {
    return analytics.management.webproperties.listAsync({
        auth: auth,
        accountId: accountId
    })
    .then((properties) => {
        logger.debug('got properties', JSON.stringify(properties, null, 4));
        return _.map(properties.items, (property) => {
            return _.pick(property, 'id', 'name');
        });
    });
}
function getProperties() {
    return analytics.management.webproperties.listAsync({
        auth: auth,
        accountId: accountId
    })
    .then((properties) => {
        logger.debug('got properties', JSON.stringify(properties, null, 4));
        return _.map(properties.items, (property) => {
            return _.pick(property, 'id', 'name');
        });
    });
}
function getProperties ( ) { return analytics . management . webproperties . listAsync ( { auth : auth , accountId : accountId } ) . then ( ( properties ) => { logger . debug ( 'got properties' , JSON . stringify ( properties , null , 4 ) ) ; return _ . map ( properties . items , ( property ) => { return _ . pick ( property , 'id' , 'name' ) ; } ) ; } ) ; }
Get all accessible properties for the account
Get all accessible properties for the account