Package com.dnsimple.endpoints
Class Oauth
- java.lang.Object
-
- com.dnsimple.endpoints.Oauth
-
public class Oauth extends java.lang.ObjectProvides access to the DNSimple OAuth API.- See Also:
- https://developer.dnsimple.com/v2/oauth
-
-
Constructor Summary
Constructors Constructor Description Oauth(HttpEndpointClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringauthorizeUrl(OauthAuthorizeOptions options)Gets the URL to authorize a user for an application via the OAuth2 flow.AccessTokenexchangeAuthorizationForToken(OauthExchangeOptions options)Exchange the short-lived authorization code for an access token that is used to authenticate API calls.
-
-
-
Constructor Detail
-
Oauth
public Oauth(HttpEndpointClient client)
-
-
Method Detail
-
authorizeUrl
public java.lang.String authorizeUrl(OauthAuthorizeOptions options)
Gets the URL to authorize a user for an application via the OAuth2 flow.- Parameters:
options- The options for the OAuth authorization URL- Returns:
- The authorize URL String
- See Also:
- https://developer.dnsimple.com/v2/oauth/
-
exchangeAuthorizationForToken
public AccessToken exchangeAuthorizationForToken(OauthExchangeOptions options)
Exchange the short-lived authorization code for an access token that is used to authenticate API calls.- Parameters:
options- The options for the OAuth exchange call- Returns:
- The AccessToken instance
- See Also:
- https://developer.dnsimple.com/v2/oauth
-
-