diff --git a/docs/api_ref.md b/docs/api_ref.md index ca346048..a106eca6 100644 --- a/docs/api_ref.md +++ b/docs/api_ref.md @@ -38,7 +38,8 @@ CCEverywhere.default.initialize( clientId: YOUR_CLIENT_ID, appName: YOUR_PROJECT_NAME, appVersion: { major: 1, minor: 0 }, - platformCategory: 'web' + platformCategory: 'web', + redirectUri: YOUR_REDIRECT_URI }, /* ConfigParams (optional) */ { @@ -55,6 +56,7 @@ All properties are required. **appName** defines the name of a folder created fo |appName | string | Name of CCX project folder created for user |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](https://developer.adobe.com/console) ## ConfigParams diff --git a/docs/create_project.md b/docs/create_project.md index 3f2951fa..42aa41a1 100644 --- a/docs/create_project.md +++ b/docs/create_project.md @@ -83,7 +83,8 @@ When the "createDesign" button is clicked, the Create Project API is called and clientId: YOUR_CLIENT_ID, appName: PROJECT_NAME, appVersion: { major: 1, minor: 0 }, - platformCategory: 'web' + platformCategory: 'web', + redirectUri: YOUR_REDIRECT_URI } ); diff --git a/docs/edit_project.md b/docs/edit_project.md index dd9420f0..ef6dd36f 100644 --- a/docs/edit_project.md +++ b/docs/edit_project.md @@ -79,7 +79,8 @@ When the "editButton" button is clicked, the Open Project API is passed the curr clientId: YOUR_CLIENT_ID appName: PROJECT_NAME, appVersion: { major: 1, minor: 0 }, - platformCategory: 'web' + platformCategory: 'web', + redirectUri: YOUR_REDIRECT_URI } ); diff --git a/docs/quick_actions.md b/docs/quick_actions.md index d634e19e..4c2dce28 100644 --- a/docs/quick_actions.md +++ b/docs/quick_actions.md @@ -154,7 +154,8 @@ They can then click the "Image Crop" button, which call the Quick Actions API. A clientId: YOUR_CLIENT_ID, appName: PROJECT_NAME, appVersion: { major: 1, minor: 0 }, - platformCategory: 'web' + platformCategory: 'web', + redirectUri: YOUR_REDIRECT_URI } ); @@ -232,7 +233,8 @@ They can then click the "Change Speed" button, which call the Quick Actions API. clientId: YOUR_CLIENT_ID, appName: PROJECT_NAME, appVersion: { major: 1, minor: 0 }, - platformCategory: 'web' + platformCategory: 'web', + redirectUri: YOUR_REDIRECT_URI } ); diff --git a/docs/quickstart.md b/docs/quickstart.md index 19c10a66..b79ecff2 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -70,14 +70,13 @@ embedSDK(document, "./CCEverywhere.js"); To initialize the SDK, call the default method `initialize()`: ```js -const ccEverywhere = CCEverywhere.default.initialize( - { - clientId: , - appName: , - appVersion: { major: 1, minor: 0 }, - platformCategory: 'web' - } - ); +const ccEverywhere = CCEverywhere.default.initialize({ + clientId: , + appName: , + appVersion: { major: 1, minor: 0 }, + platformCategory: 'web', + redirectUri: YOUR_REDIRECT_URI +}); ``` This method returns a `CCEverywhere` object, with two methods: diff --git a/sample/index.html b/sample/index.html index 2b2d88cf..3e960224 100644 --- a/sample/index.html +++ b/sample/index.html @@ -47,15 +47,16 @@ var image_data = document.getElementById("savedDesign"); ccEverywhere = CCEverywhere.default.initialize({ - clientId: '695a1c27f4e147b28d4df7a7a8c46d23', + // stage clientId: '8a485e7470094408a3510b262f404f3d', + clientId: 'c352fd34caa94405ab1a2cfa736bb9f5', appName: PROJECT_NAME, appVersion: { major: 1, minor: 0 }, platformCategory: 'web', - redirectUri: 'https://localhost:8000/redirect.html' + redirectUri: 'https://localhost:3000/redirect.html' }); document.getElementById("QA").addEventListener('click', () => { - window.location.href = "https://localhost:8000/quickactions.html"; + window.location.href = "https://localhost:3000/quickactions.html"; }); diff --git a/sample/quickactions.html b/sample/quickactions.html index 6fa5a960..17d7c1ea 100644 --- a/sample/quickactions.html +++ b/sample/quickactions.html @@ -110,11 +110,11 @@

Video Quick Actions

// var appVideo = document.getElementById('video-container'); const ccEverywhere = CCEverywhere.default.initialize({ - clientId: '695a1c27f4e147b28d4df7a7a8c46d23', + clientId: 'c352fd34caa94405ab1a2cfa736bb9f5', appName: PROJECT_NAME, appVersion: { major: 1, minor: 0 }, platformCategory: 'web', - redirectUri: 'https://localhost:8000/redirect.html' + redirectUri: 'https://localhost:3000/redirect.html' }); /* This event listener checks to see if the user uploads a new file diff --git a/sample/redirect.html b/sample/redirect.html index 07cf11e7..1ba2f028 100644 --- a/sample/redirect.html +++ b/sample/redirect.html @@ -17,11 +17,11 @@ const PROJECT_NAME = 'cc everywhere'; ccEverywhere = CCEverywhere.default.initialize({ - clientId: '695a1c27f4e147b28d4df7a7a8c46d23', + clientId: 'c352fd34caa94405ab1a2cfa736bb9f5', appName: PROJECT_NAME, appVersion: { major: 1, minor: 0 }, platformCategory: 'web', - redirectUri: 'https://localhost:8000/redirect.html' + redirectUri: 'https://localhost:3000/redirect.html' }); ccEverywhere.exchangeAuthCodeForToken();