Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

postbode-python-0.1.3.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

postbode_python-0.1.3-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page