'Loads user data from service'

def user_data(self, access_token, *args, **kwargs):

    try:
        resp = requests.get(SLACK_USER_DETAILS_URL, params={'token': access_token})
        resp.raise_for_status()
        content = resp.json()
        return {'id': content['user_id'], 'name': content['user']}
    except ValueError:
        return None
