Go to file
Raimon Esteve 2d9c5ae642 Increase version number 2018-03-21 14:06:54 +01:00
correos Increase version number 2018-03-21 14:06:54 +01:00
doc Initial commit 2015-06-17 13:36:46 +02:00
CHANGELOG Initial commit 2015-06-17 13:36:46 +02:00
COPYRIGHT Initial commit 2015-06-17 13:36:46 +02:00
INSTALL Initial commit 2015-06-17 13:36:46 +02:00
LICENSE Initial commit 2015-06-17 13:36:46 +02:00
MANIFEST.in Initial commit 2015-06-17 13:36:46 +02:00
README Oficinas service 2015-06-17 18:11:54 +02:00
setup.py IBAN or CC when is Reembolso 2015-06-17 16:06:20 +02:00
test.py Add timeout configuration 2016-10-19 10:17:49 +02:00

README

Correos
=======

Python API Correos carrier.

Features
--------

- Services
- Test connection
- Create/Send shipments to Correos
- Get label shipment in PDF

Usage Examples
--------------

Example API in test.py file

Services
--------

.. code-block:: python

    from correos.utils import services
    services()

Test connection
---------------

.. code-block:: python

    with API(username, password, code, debug) as correos_api:
        print correos_api.test_connection()

Oficinas
--------

Get Correos offices by zip

.. code-block:: python

    with API(username, password, code, debug) as correos_api:
        zip = '08720'
        print correos_api.oficinas(zip)

Create/send shipment to Correos
-------------------------------

.. code-block:: python

    with Picking(username, password, code, debug) as picking_api:
        data = {...}
        reference, label, error = picking_api.create(data)

Get label shipment
------------------

.. code-block:: python

    with Picking(username, password, code, debug) as picking_api:
        data = {...}
        label = picking_api.label(data)