'Get new token for usage during this session.'

def get_token(self):

    args = {'grant_type': 'password', 'username': self._username, 'password': self._password}
    url = '{}/oauth/token'.format(self.particle_url)
    ret = requests.post(url, auth=('particle', 'particle'), data=args, timeout=10)
    try:
        return ret.json()['access_token']
    except KeyError:
        _LOGGER.error('Unable    to    retrieve    access    token')
