SDK Reference
This is the main API for accessing all the SDK components. The initialize()
method takes HostInfo and an optional ConfigParams, and returns a CCEverywhere object.
initialize()
The default method initialize()
is the API used to initialize the SDK. Make sure to call it only once a page.
Copied to your clipboard1// after loading the SDK into the window2window.CCEverywhere.initialize(3 /* HostInfo */4 {5 clientId: YOUR_CLIENT_ID,6 appName: YOUR_PROJECT_NAME,7 appVersion: { major: 1, minor: 0 },8 platformCategory: 'web',9 redirectUri: YOUR_REDIRECT_URI10 },11 /* ConfigParams (optional) */12 {13 locale: 'en_US',14 }15);
HostInfo
Property | Type | Description |
---|---|---|
clientId | string | Your API Key |
appName | string | Name of project folder created in user's CC Express |
appVersion | { major: number, minor: number, patch?: number} | Your app version |
platformCategory | 'web' | Specify host app platform |
redirectUri | string | Searches for redirect URL you define in console |
If you specify redirectUri
as a parameter in the HostInfo object, that is the redirect URI that will be checked first. If you leave this field blank, IMS will search through the "Redirect URI patterns" registered in console for your client, and if no match is found, it will fall back on the "Default Redirect URI".
ConfigParams
The locale field defaults to 'en_US' if nothing is specified. Visit the customization page for a full locale list.
Property | Type | Description |
---|---|---|
locale | string | Language settings for SDK components |
CCEverywhere
The CCEverywhere object is the object returned when the SDK is initialized.
As of today, it exposes 4 methods:
openQuickAction()
: Quick Actions ComponentcreateDesign()
: Adobe Express Editor ComponenteditDesign()
: Adobe Express Editor ComponentexchangeAuthCodeForToken()
: Authorization