@classmethod
def create_oauth(cls, name, token, refresh_token, description=None):
    """
        Creates the OAUTH credentials.

        Parameters
        ----------
        name : str
            the name to use for this set of credentials.
        token: str
            the OAUTH token
        refresh_token: str
            The OAUTH token

        description : str
            the description to use for this set of credentials.

        Returns
        -------
        credential : Credential
            the created credential.

        Examples
        --------
        .. code-block:: python

            >>> import datarobot as dr
            >>> cred = dr.Credential.create_oauth(
            ...     name='my_oauth_cred',
            ...     token='XXX',
            ...     refresh_token='YYY',
            ... )
            >>> cred
            Credential('5e429d6ecf8a5f36c5693e03', 'my_oauth_cred', 'oauth'),
        """
    payload = {'name': name, 'credentialType': 'oauth', 'token': token,
        'refreshToken': refresh_token, 'description': description}
    return cls.from_server_data(cls._client.post(cls._path, data=payload).
        json())
