|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.createsend.CreateSendBase
com.createsend.General
public class General
Provides methods for accessing all Account methods in the Campaign Monitor API
Field Summary |
---|
Fields inherited from class com.createsend.CreateSendBase |
---|
jerseyClient, urlEncodingScheme |
Constructor Summary | |
---|---|
General(AuthenticationDetails auth)
Constructor. |
Method Summary | |
---|---|
Administrator[] |
administrators()
|
static OAuthTokenDetails |
exchangeToken(int clientID,
java.lang.String clientSecret,
java.lang.String redirectUri,
java.lang.String code)
Exchange a provided OAuth code for an OAuth access token, 'expires in' value, and refresh token. |
java.lang.String |
getAPIKey(java.lang.String siteAddress,
java.lang.String username,
java.lang.String password)
Gets the API Key to use with the given authentication data |
static java.lang.String |
getAuthorizeUrl(int clientID,
java.lang.String redirectUri,
java.lang.String scope,
java.lang.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()
|
java.lang.String[] |
getCountries()
|
java.lang.String |
getExternalSessionUrl(ExternalSessionOptions sessionOptions)
Get a URL which initiates a new external session for the user with the given email. |
java.lang.String |
getPrimaryContact()
|
java.util.Date |
getSystemDate()
|
java.lang.String[] |
getTimezones()
|
void |
setPrimaryContact(java.lang.String emailAddress)
|
Methods inherited from class com.createsend.CreateSendBase |
---|
refreshToken |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public General(AuthenticationDetails auth)
auth
- The authentication details to use when making API calls.
May be either an OAuthAuthenticationDetails or
ApiKeyAuthenticationDetails instance.Method Detail |
---|
public static java.lang.String getAuthorizeUrl(int clientID, java.lang.String redirectUri, java.lang.String scope, java.lang.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, java.lang.String clientSecret, java.lang.String redirectUri, java.lang.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.
CreateSendException
public java.lang.String getAPIKey(java.lang.String siteAddress, java.lang.String username, java.lang.String password) throws CreateSendException
siteAddress
- The create send site address for the accountusername
- The username used to loginpassword
- The password of the account
CreateSendException
public ClientBasics[] getClients() throws CreateSendException
CreateSendException
public BillingDetails getBillingDetails() throws CreateSendException
CreateSendException
public java.lang.String[] getCountries() throws CreateSendException
CreateSendException
public java.lang.String[] getTimezones() throws CreateSendException
CreateSendException
public java.util.Date getSystemDate() throws CreateSendException
CreateSendException
public Administrator[] administrators() throws CreateSendException
CreateSendException
public java.lang.String getPrimaryContact() throws CreateSendException
CreateSendException
public void setPrimaryContact(java.lang.String emailAddress) throws CreateSendException
CreateSendException
public java.lang.String getExternalSessionUrl(ExternalSessionOptions sessionOptions) throws CreateSendException
sessionOptions
- The session options to use.
CreateSendException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |