Here we have put together a hand full of python examples to help get you started. As always feel free to contact us directly if you have any questions on implementation.
Before running these examples make sure you are in the examples/ directory.
cd examples/
An example showing how to dynamically create sample billing letters with variable data using Lob's Letter API.
In order to run the program, enter:
cd create_letters_from_csv/
python letters.py input.csv
An example showing how to dynamically create postcards from a CSV using HTML, a custom font, variable data, and Lob's Postcard API.
In order to run the program enter:
cd create_postcards_from_csv/
python create_postcards_from_csv.py input.csv
An example showing how to dynamically create checks from a CSV with variable data using Lob's Check API.
In order to run the program enter:
cd create_check_from_csv/
python check.py input.csv
An example showing how to validate and cleanse a CSV spreadsheet full of shipping addresses using Lob's Address Verification API.
cd verify_addresses_from_csv/
python verify.py input.csv
python check.py
python job.py
python letter.py
python postcard.py