Go to file
Raimon Esteve 0d95571161 Increase version number 2020-10-04 16:31:50 +02:00
doc DOC - README 2014-04-09 08:52:18 +02:00
seurvalencia Increase version number 2020-10-04 16:31:50 +02:00
CHANGELOG Initial commit 2014-03-12 17:46:38 +01:00
COPYRIGHT Initial commit 2014-03-12 17:46:38 +01:00
INSTALL Initial commit 2014-03-12 17:46:38 +01:00
LICENSE Initial commit 2014-03-12 17:46:38 +01:00
MANIFEST.in Add seur/template dir in MANIFEST 2014-09-15 09:46:22 +02:00
README README - Get Cities 2014-03-12 18:10:08 +01:00
setup.py Migrate to py3 2018-09-14 22:55:28 +02:00
test.py Convert bytes to request and pass tests 2020-10-04 16:31:32 +02:00

README

Seur Valencia
=============

Python API Seur Valencia carrier, Spain.

Seur Valencia use API methods not equal than Seur (general).

Features
--------

- Services
- Test connection
- Get cities by zio
- Create/Send shipments to Seur Valencia
- Get today deliveries (shipments) in PDF

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

Example API in test.py file

Services
--------

.. code-block:: python

    from seur.utils import services
    services()

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

.. code-block:: python

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

Get Cities
----------

.. code-block:: python

    with API(username, password, debug) as seurvalencia_api:
        print seurvalencia_api.get_city('08720')

Create/send shipment to Seur Valencia
-------------------------------------

.. code-block:: python

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

Get today deliveries (shipments) in PDF
---------------------------------------

.. code-block:: python

    with Picking(username, password, debug) as picking_api:
        pdf = picking_api.info()