A Python module for communicating with the Bridgeapi.io API.
Project description
Bankin-bridge-python is a Python module for communicating with the Bridgeapi.io API.
Main requirements
Installation
To install Bankin Bridge, please use pip (or pipenv) as follows:
$ pip install --pre bankin-bridge
Basic usage
The first step to interact with the Bankin Bridge API interface is to initialize a bridge.Client instance. You’ll need a client ID and client secret this initialization:
>>> from bridge import Client
>>> client = Client('<CLIENT_ID>', '<CLIENT_SECRET>')
Then you can easily register a new user, authenticate them and interact with the implemented entities and the underlying API endpoints. Here are some examples:
>>> client.user.create('test@example.com', '<PWD>')
{'uuid': 'c3b140ad-aa85-49ca-a254-de77de521bbf',
'resource_uri': '/v2/users/c3b140ad-aa85-49ca-a254-de77de521bbf',
'resource_type': 'user',
'email': 'text@example.com'}
>>> client = client.user.authenticate('test@example.com', '<PWD>')
{'access_token': '<ACCESS_TOKEN>',
'expires_at': '2018-11-19T17:20:33.546Z',
'user': {'uuid': '12f34ca5-da8c-4ac2-8882-3e428033f300',
'resource_uri': '/v2/users/12f34ca5-da8c-4ac2-8882-3e428033f300',
'resource_type': 'user',
'email': 'test@example.com'}}
>>> client.set_access_token('<ACCESS_TOKEN>')
>>> client.item.add_url()
{'redirect_url': 'https://connect.bankin.com?token_uuid=fb12c345-b1ae-234a-1cc2-123456789dac'}
>>> client.account.list()
...
License
MIT. See LICENSE for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bankin-bridge-0.1.0a4.tar.gz
.
File metadata
- Download URL: bankin-bridge-0.1.0a4.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 799f6d949b882c2ffd52fe9b7085549524c4b1b5afed4162532a544f16d8259f |
|
MD5 | 1f3e47bd3722d901fd9815ee28cb2e25 |
|
BLAKE2b-256 | 31ce772cd9599258ec8ab22cb5ff078d448bcdaa0d209e98c1e479a99589adef |
File details
Details for the file bankin_bridge-0.1.0a4-py2.py3-none-any.whl
.
File metadata
- Download URL: bankin_bridge-0.1.0a4-py2.py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0223d25cf4bec22d0ed20cfa6d2e7f8e5bf3344c52484d3bd3c58f33325dbd4e |
|
MD5 | 8c5e9498a501658cc9cec86d1836b831 |
|
BLAKE2b-256 | 324d5f48e7135621d5fefa4a2e8d28b9ba003f39ce1fbad88969f2a50dd67715 |