Retrieve profile data from provider

def get_profile_data(self, auth_response):
        """ Retrieve profile data from provider """
        res = auth_response
        token = res.get('access_token')
        me = res.get('user')

        if not me.get('id'):
            raise x.UserException('Instagram must return a user id')

        data = dict(
            provider=self.provider,
            email=None,
            id=me.get('id'),
            token=token,
        )
        return data