Python wrapper for api of http://www.postbode.nu for sending postal mail.
Project description
postbode-python
A Postbode API wrapper for Python. www.postbode.nu is a Dutch web application for digitally sending and receiving postal mail and automation of postal services. This package is a set of python wrappers build around the API of this services.
Getting started
For starters you will need a account and a api token.
Account creation
Go to http://app.postbode.nu and follow registration proces.
API token
After registration go to personal settings -> API and request a token.
Sandbox mode
For testing the api it is usefull to set the mailbox in sandbox mode. A dev mode sort of speak that will prefent any request to be send to production.
further reading
http://api.postbode.nu for more information about the letter and mailbox options
Now you are set to go.
Examples
Instantiate and authenticate with the client
from postbode.client import Client
client = Client('YOUR_API_TOKEN')
Get available mailboxes
from postbode.client import Client
client.get_mailboxes()
Get letters of mailbox
client.get_letters('MAILBOX_ID')
Send letter
from postbode.client import Client
client.send_letter('MAILBOX_ID', 'Filename', './file.pdf','NL', False, 'FC', 'simplex', 'inkjet', True )
Send letters
letters = ('./letter1.pdf','./letter2.pdf','./letter3.pdf')
client.send_letters(2522, 2, 'NL', False, 'FC', 'simplex', 'inkjet', True, *letters)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for postbode_python-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f7e9702fb3e8272f4eb98f215de4796d80c869c6258f304360f937ed26facf3 |
|
MD5 | 19b17d1c26fa4d5632f39dceb2b071cd |
|
BLAKE2b-256 | 31cef760682dfe7e67b4e49fd31cfc8ce11238dd380cc6a03d2eb202660d7aaa |