@classmethod
def fromoauth2(cls, response):
    """Instantiate a new :class:`LinkedInAccountPrincipal` from the OAuth2
        response received by LinkedIn.

        Args:
            response (:obj:`dict`): a dictionary holding the response data.

        Returns:
            :class:`LinkedInAccountPrincipal`
        """
    return cls(response['id'])
