Contents of the Python SDK
The Python SDK consists of a single file (api/c2mAPI.py) containing four classes:
| Class | Description |
|---|---|
c2mAPIRest | Code necessary for executing REST API calls |
c2mAPIBatch | Code necessary for executing Batch API calls |
returnAddress | Object for maintaining return address information for batch API calls |
printOptions | Object for maintaining print option information |
The root folder of the repository contains several files to demonstrate how to use the SDK in different ways.
| File | Purpose |
|---|---|
rest_simpleMail_test.py | Demonstrates how to prepare and submit a simple mail job |
batch_simpleMail_test.py | Demonstrates how to set up and execute a batch job to multiple addresses |
batch_checkBatchStatus_test.py | Demonstrates how to check the status of a submitted batch job |
rest_checkJob_Test.py | Demonstrates how to check the status of a regular job |
rest_customAddressList_test.py | Demonstrates how to submit a regular job using a custom address list mapping |
rest_doublesided_test.py | Demonstrates how to submit a double-sided mailing job |
aligator.pngtest.pdftiger.png | Test document and images used in the demonstration files |
