public class ApiApp extends AbstractResource
Modifier and Type | Field and Description |
---|---|
static String |
APIAPP_CALLBACK_URL |
static String |
APIAPP_CLIENT_ID |
static String |
APIAPP_CREATED_AT |
static String |
APIAPP_CUSTOM_LOGO |
static String |
APIAPP_DOMAIN |
static String |
APIAPP_IS_APPROVED |
static String |
APIAPP_KEY |
static String |
APIAPP_NAME |
static String |
APIAPP_OWNER_ACCOUNT |
dataObj, warnings
Constructor and Description |
---|
ApiApp()
Default constructor.
|
ApiApp(org.json.JSONObject json)
Constructor that instantiates an ApiApp object based on the JSON response
from the HelloSign API.
|
Modifier and Type | Method and Description |
---|---|
void |
addScope(ApiAppOauthScopeType scope)
Add a scope to this API App's OAuth scope list.
|
void |
clearScopes()
Clear all OAuth scopes for this API App.
|
String |
getCallbackUrl()
The app's callback URL (for events).
|
String |
getClientId()
The app's client ID.
|
Date |
getCreatedAt()
The time that the app was created.
|
String |
getDomain()
The domain name associated with the app.
|
String |
getHeaderBackgroundColor()
Get the signer page header background color.
|
String |
getLinkColor()
Get the signer page link color.
|
String |
getName()
The name of the app.
|
ApiAppOauth |
getOauthInfo()
An object describing the app's OAuth properties.
|
Account |
getOwnerAccount()
An object describing the app's owner.
|
String |
getPageBackgroundColor()
Get the signer page background color.
|
Map<String,Serializable> |
getPostFields()
Internal method used to retrieve the necessary POST fields to submit the
API app to HelloSign.
|
String |
getPrimaryButtonColor()
Get the signer page primary button color.
|
String |
getPrimaryButtonHoverColor()
Get the signer page primary button hover color.
|
String |
getPrimaryButtonTextColor()
Get the signer page primary button text color.
|
String |
getPrimaryButtonTextHoverColor()
Get the signer page primary button text hover color.
|
String |
getSecondaryButtonColor()
Get the signer page secondary button color.
|
String |
getSecondaryButtonHoverColor()
Get the signer page secondary button hover color.
|
String |
getSecondaryButtonTextColor()
Get the signer page secondary button text color.
|
String |
getSecondaryButtonTextHoverColor()
Get the signer page secondary button text hover color.
|
String |
getTextColor1()
Get the signer page text 1 color.
|
String |
getTextColor2()
Get the signer page text 2 color.
|
WhiteLabelingOptions |
getWhiteLabelingOptions()
Returns the current white labeling options for this API app.
|
Boolean |
hasCallbackUrl()
True if the callback URL is non-null.
|
boolean |
hasClientId()
Returns true if this app has a client ID.
|
Boolean |
hasDomain()
True if the domain has been set.
|
Boolean |
hasName()
True if the name is set for this API App.
|
Boolean |
isApproved()
Boolean to indicate if the app has been approved.
|
void |
removeScope(ApiAppOauthScopeType scope)
Remove the specified OAuth scope from this API App.
|
void |
setCallbackUrl(String url)
Set the callback URL for this API app's events.
|
void |
setCustomLogo(File f)
Add a custom logo image to this API app.
|
void |
setDomain(String domain)
Set this API app's domain.
|
void |
setHeaderBackgroundColor(String color)
Set the signer page header background color.
|
void |
setLinkColor(String color)
Set the signer page link color.
|
void |
setName(String name)
Set this API app's name.
|
void |
setOAuthCallbackUrl(String url) |
void |
setPageBackgroundColor(String color)
Set the signer page background color.
|
void |
setPrimaryButtonColor(String color)
Set the signer page primary button color.
|
void |
setPrimaryButtonHoverColor(String color)
Set the signer page primary button hover color.
|
void |
setPrimaryButtonTextColor(String color)
Set the signer page primary button text color.
|
void |
setPrimaryButtonTextHoverColor(String color)
Set the signer page primary button text hover color.
|
void |
setScopes(Set<ApiAppOauthScopeType> scopes)
Set this API app's OAuth scopes.
|
void |
setSecondaryButtonColor(String color)
Set the signer page secondary button color.
|
void |
setSecondaryButtonHoverColor(String color)
Set the signer page secondary button hover color.
|
void |
setSecondaryButtonTextColor(String color)
Set the signer page secondary button text color.
|
void |
setSecondaryButtonTextHoverColor(String color)
Set the signer page secondary button text hover color.
|
void |
setTextColor1(String color)
Set the signer page text 1 color.
|
void |
setTextColor2(String color)
Set the signer page text 2 color.
|
void |
setWhiteLabelingOptions(WhiteLabelingOptions options)
Overrides all white labeling options for this API app.
|
add, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getString, getWarnings, has, hasString, set, toString, toString
public static final String APIAPP_KEY
public static final String APIAPP_CALLBACK_URL
public static final String APIAPP_CLIENT_ID
public static final String APIAPP_CREATED_AT
public static final String APIAPP_DOMAIN
public static final String APIAPP_IS_APPROVED
public static final String APIAPP_NAME
public static final String APIAPP_OWNER_ACCOUNT
public static final String APIAPP_CUSTOM_LOGO
public ApiApp()
public ApiApp(org.json.JSONObject json) throws HelloSignException
json
- JSONObjectHelloSignException
- thrown if there is a problem parsing the
JSONObjectpublic String getCallbackUrl()
public Boolean hasCallbackUrl()
public void setCallbackUrl(String url)
url
- Stringpublic String getClientId()
public boolean hasClientId()
public Date getCreatedAt()
public String getDomain()
public Boolean hasDomain()
public void setDomain(String domain)
domain
- Stringpublic Boolean isApproved()
public String getName()
public Boolean hasName()
public void setName(String name)
name
- Stringpublic ApiAppOauth getOauthInfo()
public void setOAuthCallbackUrl(String url)
public void setScopes(Set<ApiAppOauthScopeType> scopes)
scopes
- List of ApiAppOauthScopeTypepublic void addScope(ApiAppOauthScopeType scope)
scope
- ApiAppOauthScopeTypepublic void clearScopes()
public void removeScope(ApiAppOauthScopeType scope)
scope
- ApiAppOauthScopeTypepublic Account getOwnerAccount()
public void setCustomLogo(File f)
f
- Filepublic Map<String,Serializable> getPostFields() throws HelloSignException
HelloSignException
- thrown if there is a problem serializing the
POST fields.public void setWhiteLabelingOptions(WhiteLabelingOptions options)
options
- WhiteLabelingOptionspublic WhiteLabelingOptions getWhiteLabelingOptions()
public String getPageBackgroundColor()
public void setPageBackgroundColor(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getHeaderBackgroundColor()
public void setHeaderBackgroundColor(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getTextColor1()
public void setTextColor1(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getTextColor2()
public void setTextColor2(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getLinkColor()
public void setLinkColor(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getPrimaryButtonColor()
public void setPrimaryButtonColor(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getPrimaryButtonTextColor()
public void setPrimaryButtonTextColor(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getPrimaryButtonHoverColor()
public void setPrimaryButtonHoverColor(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getPrimaryButtonTextHoverColor()
public void setPrimaryButtonTextHoverColor(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getSecondaryButtonColor()
public void setSecondaryButtonColor(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getSecondaryButtonTextColor()
public void setSecondaryButtonTextColor(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getSecondaryButtonHoverColor()
public void setSecondaryButtonHoverColor(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringpublic String getSecondaryButtonTextHoverColor()
public void setSecondaryButtonTextHoverColor(String color) throws HelloSignException
color
- String hex color codeHelloSignException
- thrown if the color string is an invalid hex
stringCopyright © 2017 HelloSign. All rights reserved.