Go to file
Raimon Esteve 67f2904469 Migrate to py3 2018-09-14 20:28:00 +02:00
asm Migrate to py3 2018-09-14 20:28:00 +02:00
doc DOC 2015-09-04 13:02:01 +02:00
CHANGELOG Initial commit 2015-07-21 17:16:39 +02:00
COPYRIGHT Initial commit 2015-07-21 17:16:39 +02:00
INSTALL Initial commit 2015-07-21 17:16:39 +02:00
LICENSE Initial commit 2015-07-21 17:16:39 +02:00
MANIFEST.in Initial commit 2015-07-21 17:16:39 +02:00
README Initial commit 2015-07-21 17:16:39 +02:00
setup.py Migrate to py3 2018-09-14 20:28:00 +02:00
test.py Add timeout configuration 2016-11-18 15:34:02 +01:00

README

ASM
===

Python API ASM carrier.

Features
--------

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

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

Example API in test.py file

Services
--------

.. code-block:: python

    from asm.utils import services
    services()

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

.. code-block:: python

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

Create/send shipment to ASM
---------------------------

.. code-block:: python

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

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

.. code-block:: python

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