Aplazame Python Sdk
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:
$ pip install aplazame-sdk
Usage
>>> 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
>>> import aplazame_sdk
>>> client = aplazame_sdk.Client('token')
>>> try:
... r = client.get_order('buh')
... except aplazame_sdk.AplazameError as err:
... err.code
404
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.
Change Log
0.2.6 (2015-12-11)
Replace detail by get
Fix tests
0.2.5 (2015-12-11)
Operations and payments summary
Tests
0.2.4 (2015-12-05)
Instalment payments
Tests
0.2.3 (2015-10-13)
Payments
Merchant requests
Tests
0.2.2 (2015-09-15)
Fix lists kwargs
Add /me and operations
ci pull request strategy
ci publish on pypi
ci package versioning
0.2.1 (2015-08-24)
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
Release files for aplazame-sdk 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aplazame-sdk-0.2.7.tar.gz | 9.2 kB | Details |
Release files / aplazame-sdk-0.2.7.tar.gz
| Download URL | aplazame-sdk-0.2.7.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
179c3f48982712308ae7ef820979389a4336530b18fd200c50f7e5cb545fe94b
|
|
BLAKE2b-256 checksum How to use checksums |
384b4a97aa67f83177bdeb6611263c50f7c0a132f54416d209c556054e0b7346
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
|