Examples for postgrid.com
Each of these examples is ready to run! All you need to do is set your api key in the environment as described below. Be careful! If you use a live API key, letters will be sent out. Try using a test API key first. You can see all artifacts generated by these examples in the PostGrid dashboard.
- Each example has either
POSTGRID_PM_API_KEYorPOSTGRID_AV_API_KEYset as an environment variable. Replace it with your own! pip install --upgrade postgrid-python
send_letter: Creating and sending a lettersend_postcard: Creating and sending a postcardsend_cheque: Creating and sending a chequesend_template: Creating a template and sending a letter with itsend_merge_variables: Sending a template with merge variables
track_orders: Tracking ordersmanage_bank_accounts: Adding, listing, and removing bank accountswebhook: Create a webhook for a given event
(not yet supported by the Python SDK)
autocomplete_address: Full end-to-end example of address autocompletepreview_autocomplete_address: Get address autocomplete preview
verify_structured_address: Verify a structured addressverify_freeform_address: Verify a freeform addressbulk_verify_address: Bulk verification of addresses with a CSV fileparse_address: Split up an address into its components
(not yet supported by the Python SDK)
autocomplete_address: Full end-to-end example of address autocompleteautocomplete_address_advanced: Advanced address auto completionpreview_autocomplete_address: Get address autocomplete preview
verify_structured_address: Verify a structured addressverify_freeform_address: Verify a freeform addressbulk_verify_address: Bulk verification of addresses with a CSV file