|
||||||||||
| 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,
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)
|
| 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 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.
CreateSendException
public 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 account
CreateSendException
public ClientBasics[] getClients()
throws CreateSendException
CreateSendException
public BillingDetails getBillingDetails()
throws CreateSendException
CreateSendException
public String[] getCountries()
throws CreateSendException
CreateSendException
public String[] getTimezones()
throws CreateSendException
CreateSendException
public Date getSystemDate()
throws CreateSendException
CreateSendException
public Administrator[] administrators()
throws CreateSendException
CreateSendException
public String getPrimaryContact()
throws CreateSendException
CreateSendException
public void setPrimaryContact(String emailAddress)
throws CreateSendException
CreateSendException
public 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 | |||||||||