Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/narmitech/banking-client-python.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/narmitech/banking-client-python.git
)
Then import the package:
import banking_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import banking_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import banking_client
from banking_client.api_client import ApiClient
from banking_client.configuration import Configuration
from banking_client.rest import ApiException
from pprint import pprint
config = Configuration()
config.host = 'https://api.demo.narmitech.com/v1'
config.access_token = 'YOUR_ACCESS_TOKEN'
config.secret = 'YOUR_SECRET'
api_instance = banking_client.AccountApi(api_client=ApiClient(configuration=config))
api_instance.list()
try:
# Get account
api_response = api_instance.list()
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->get: %s\n" % e)
All URIs are relative to https://api.example.com/v1
Class | Method | HTTP request | Description |
---|---|---|---|
AccountApi | get | GET /accounts/{accountId} | Get account |
AccountApi | get_account_balances | GET /account_balances/{accountBalancesId} | Get account balances for an account |
AccountApi | list | GET /accounts | List accounts |
AccountApi | list_account_balances | GET /account_balances | List account balances |
AccountApi | update | PUT /accounts/{accountId} | Update account |
GeneralApi | list_ping | GET /ping | Server heartbeat operation |
SubscriptionApi | create | POST /subscriptions | Create subscription |
SubscriptionApi | destroy | DELETE /subscriptions/{subscriptionId} | Delete subscription |
SubscriptionApi | get | GET /subscriptions/{subscriptionId} | Get subscription |
SubscriptionApi | list | GET /subscriptions | List subscriptions |
SubscriptionApi | update | PUT /subscriptions/{subscriptionId} | Update subscription |
TransactionApi | get | GET /transactions/{transactionId} | Get transaction |
TransactionApi | list | GET /transactions | List transactions |
TransactionApi | list_transactions | GET /accounts/{accountId}/transactions | List transactions for an account |
TransactionApi | update | PUT /transactions/{transactionId} | Update transaction |
TransferApi | create | POST /transfers | Create a transfer |
UserApi | get | GET /users/{userId} | Get user |
UserApi | list | GET /users | List users |
contact@narmitech.com