Skip to content

Some basic code examples of Customer's Canvas API usage, suitable for quick experiments.

Notifications You must be signed in to change notification settings

aurigma/CCHSample-Basic-Python

Repository files navigation

CCHSample-Basic-Python

Some basic code examples of Customer's Canvas API usage, suitable for quick experiments.

  • blank-editor-save-file-sample.py - open Design Editor with a blank design of a specified size and save the results to a local folder.
  • open-template-in-editor-save-file-sample.py - open Design Editor with a specified design template and save the results to a local folder.

Prerequisites

These samples require Python 3, no external requirements needed.

Run

Just pass the script name to python3 command, like this:

python3 blank-editor-save-file-sample.py

It will open on http://localhost:8000. If you prefer using another port, find this line (in the end of a script) and modify it appropriately:

httpd = HTTPServer(('localhost', 8000), SimpleHTTPRequestHandler)

Further steps

Each sample is heavily commented, so it is recommended to read the script code from the beginning. Also, refer Customer's Canvas docs for more details:

About

Some basic code examples of Customer's Canvas API usage, suitable for quick experiments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages