Follow the below steps to get an API Key.
- Navigate to the Developer Console.
- Select APIs and services.
- Search for Adobe Express Embed SDK.
- Click Create project.
On the Configure API section,
- Add your Allowed domains in the fields. To prevent unauthorized use of your client ID on another website, restrict usage to the domains you authorize.
- Click Save configured API. The API key is displayed on the screen.
Once you're done, a client ID for your project will be generated. Steps 2-3 will help you get set up with a simple https server.
Clone the sample.
Replace the clientID
fields each time the SDK is initialized (4 files):
index.html
quickactions.html
video-quickactions.html
modules.html
mkcert
is a simple tool for making locally-trusted development certificates. It automatically installs a local CA in the system root store, and generates locally-trusted certificates.
- Install it using either
brew install mkcert
. Make sure to use Homebrew because the package is different on npm. - Run
mkcert -install
to create a local CA. - Navigate back to the project folder and run:
mkcert localhost
This will generate two files: localhost-key.pem
(key) and localhost.pem
(certificate). Our https server is instantiated with these two files so that the browser trusts the domain localhost
.
http-server
lets you serve files or directories locally.
Install it using npm i http-server
or brew install http-server
.
Run npm install
to install the dependencies in package.json
. The required dependencies belong to Spectrum CSS and are used to style the buttons.
To start the server at port 8000, run this line in your project root:
http-server -S -C ./localhost.pem -K ./localhost-key.pem -p 8000 -a localhost
By passing in our newly generated SSL key and certificate, we have enabled secure request serving with TLS/SSL (HTTPS), which we need to communicate with CC Express. Now your server is up and available at https://localhost:8000
.
This sample will not run on incognito windows.