aplazame-sdk 0.2.7
Python SDK for Aplazame REST API
License: Apache 2.0
Keywords: python,aplazame,api,rest,sdk

Aplazame Python Sdk
===================

|Build Status|

|Aplazame|

`Aplazame`_, a consumer credit company, offers a payment system that can be
used by online buyers to receive funding for their purchases.

Installation
------------

To install aplazame-sdk, simply:

.. code:: sh

    $ pip install aplazame-sdk

Usage
-----

.. code:: python

    >>> import aplazame_sdk
    >>> client = aplazame_sdk.Client('token', sandbox=True, version='1', ctype='json')
    >>> r = client.orders(page=2)
    >>> r.json()
    {
      "cursor": {
        "after": 3,
        "before": 1
      },
      "paging": {
        "count": 314,
        "next": "https://api.aplazame.com/orders?page=3",
        "previous": "https://api.aplazame.com/orders?page=1"
      },
      "results": [
      ]
    }
    >>> r.status_code
    200

Exceptions
----------

.. code:: python

    >>> import aplazame_sdk
    >>> client = aplazame_sdk.Client('token')
    >>> try:
    ...     r = client.get_order('buh')
    ... except aplazame_sdk.AplazameError as err:
    ...     err.code
    404

Http
----

.. code:: http

    GET /orders HTTP/1.1
    Accept: application/vnd.aplazame.sandbox.v1+json
    Authorization: Bearer ->token<-
    Host: api.aplazame.com

    HTTP/1.1 200 OK
    Content-Type: application/vnd.aplazame.sandbox.v1+json

Documentation
-------------

Documentation is available at `docs.aplazame.com`_.

.. _Aplazame: https://aplazame.com
.. _docs.aplazame.com: http://docs.aplazame.com

.. |Build Status| image:: https://img.shields.io/pypi/v/aplazame-sdk.svg
   :target: https://pypi.python.org/pypi/aplazame-sdk
.. |Aplazame| image:: https://aplazame.com/landing-assets/images/banners/banner-1517-white.png
   :target: https://aplazame.com


Change Log
==========

`0.2.6`_ (2015-12-11)
---------------------

`Full Changelog v0.2.6`_

* Replace detail by get
* Fix tests

`0.2.5`_ (2015-12-11)
---------------------

`Full Changelog v0.2.5`_

* Operations and payments summary
* Tests

`0.2.4`_ (2015-12-05)
---------------------

`Full Changelog v0.2.4`_

* Instalment payments
* Tests

`0.2.3`_ (2015-10-13)
---------------------

`Full Changelog v0.2.3`_

* Payments
* Merchant requests
* Tests

`0.2.2`_ (2015-09-15)
---------------------

`Full Changelog v0.2.2`_

* Fix lists kwargs
* Add /me and operations
* ci pull request strategy
* ci publish on pypi
* ci package versioning

`0.2.1`_ (2015-08-24)
---------------------

`Full Changelog v0.2.1`_

* ci deploy master
* Simulator request
* Fix minor errors

`0.2.0`_ (2015-07-20)
---------------------

* Makefile
* ci with drone.io
* Coverage 100%
* Test and build requirements
* Add badges
* Get method params strategy

.. _0.2.0: https://github.com/aplazame/aplazame-sdk/tree/v0.2.0
.. _0.2.1: https://github.com/aplazame/aplazame-sdk/tree/v0.2.1
.. _0.2.2: https://github.com/aplazame/aplazame-sdk/tree/v0.2.2
.. _0.2.3: https://github.com/aplazame/aplazame-sdk/tree/v0.2.3
.. _0.2.4: https://github.com/aplazame/aplazame-sdk/tree/v0.2.4
.. _0.2.5: https://github.com/aplazame/aplazame-sdk/tree/v0.2.5
.. _0.2.6: https://github.com/aplazame/aplazame-sdk/tree/v0.2.6
.. _Full Changelog v0.2.1: https://github.com/aplazame/aplazame-sdk/compare/v0.2.0...v0.2.1
.. _Full Changelog v0.2.2: https://github.com/aplazame/aplazame-sdk/compare/v0.2.1...v0.2.2
.. _Full Changelog v0.2.3: https://github.com/aplazame/aplazame-sdk/compare/v0.2.2...v0.2.3
.. _Full Changelog v0.2.4: https://github.com/aplazame/aplazame-sdk/compare/v0.2.3...v0.2.4
.. _Full Changelog v0.2.5: https://github.com/aplazame/aplazame-sdk/compare/v0.2.4...v0.2.5
.. _Full Changelog v0.2.6: https://github.com/aplazame/aplazame-sdk/compare/v0.2.5...v0.2.6