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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file postbode-python-0.1.3.tar.gz.
File metadata
- Download URL: postbode-python-0.1.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bd54e56ad64b6e23f0e320b37ea3e85350cfdb880212bfdd7e5a2d5fc0f24a3
|
|
| MD5 |
a247458ba6326235c8edf5e15f59a561
|
|
| BLAKE2b-256 |
f49a779aa8a650231e23e5590cf134002efb9f48d2e3f095631cdb3114982b51
|
File details
Details for the file postbode_python-0.1.3-py3-none-any.whl.
File metadata
- Download URL: postbode_python-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f7e9702fb3e8272f4eb98f215de4796d80c869c6258f304360f937ed26facf3
|
|
| MD5 |
19b17d1c26fa4d5632f39dceb2b071cd
|
|
| BLAKE2b-256 |
31cef760682dfe7e67b4e49fd31cfc8ce11238dd380cc6a03d2eb202660d7aaa
|