'Fetches the list of channels a given access key has permissions to push to'

def get_channels(self, pushbullet_api):

    logger.log(u'Testing    Pushbullet    authentication    and    retrieving    the    device    list.', logger.DEBUG)
    headers = {u'Access-Token': pushbullet_api}
    return (helpers.getURL(urljoin(self.url, u'channels'), session=self.session, headers=headers, returns=u'text') or {})
