public class General extends CreateSendBase
jerseyClient, urlEncodingScheme| Constructor and Description |
|---|
General(AuthenticationDetails auth)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Administrator[] |
administrators() |
static OAuthTokenDetails |
exchangeToken(int clientID,
String clientSecret,
String redirectUri,
String code)
Exchange a provided OAuth code for an OAuth access token, 'expires in'
value, and refresh token.
|
String |
getAPIKey(String siteAddress,
String username,
String password)
Gets the API Key to use with the given authentication data
|
static String |
getAuthorizeUrl(int clientID,
String redirectUri,
String scope,
String state)
Get the authorization URL for your application, given the application's
Client ID, Redirect URI, Scope, and optional State data.
|
BillingDetails |
getBillingDetails() |
ClientBasics[] |
getClients() |
String[] |
getCountries() |
String |
getExternalSessionUrl(ExternalSessionOptions sessionOptions)
Get a URL which initiates a new external session for the user with the
given email.
|
String |
getPrimaryContact() |
Date |
getSystemDate() |
String[] |
getTimezones() |
void |
setPrimaryContact(String emailAddress) |
refreshTokenpublic General(AuthenticationDetails auth)
auth - The authentication details to use when making API calls.
May be either an OAuthAuthenticationDetails or
ApiKeyAuthenticationDetails instance.public static String getAuthorizeUrl(int clientID, String redirectUri, String scope, String state)
clientID - The Client ID value for your application.redirectUri - The Redirect URI value for your application.scope - The permission scope your application is requesting.state - Optional state data to include in the authorization URL.public static OAuthTokenDetails exchangeToken(int clientID, String clientSecret, String redirectUri, String code) throws CreateSendException
clientID - The Client ID value for your application.clientSecret - The Client Secret value for your application.redirectUri - The Redirect URI value for your application.code - A unique code provided to your user which can be exchanged
for an access token.CreateSendExceptionpublic String getAPIKey(String siteAddress, String username, String password) throws CreateSendException
siteAddress - The create send site address for the accountusername - The username used to loginpassword - The password of the accountCreateSendExceptionpublic ClientBasics[] getClients() throws CreateSendException
CreateSendExceptionpublic BillingDetails getBillingDetails() throws CreateSendException
CreateSendExceptionpublic String[] getCountries() throws CreateSendException
CreateSendExceptionpublic String[] getTimezones() throws CreateSendException
CreateSendExceptionpublic Date getSystemDate() throws CreateSendException
CreateSendExceptionpublic Administrator[] administrators() throws CreateSendException
CreateSendExceptionpublic String getPrimaryContact() throws CreateSendException
CreateSendExceptionpublic void setPrimaryContact(String emailAddress) throws CreateSendException
CreateSendExceptionpublic String getExternalSessionUrl(ExternalSessionOptions sessionOptions) throws CreateSendException
sessionOptions - The session options to use.CreateSendExceptionCopyright © 2013. All Rights Reserved.