Official Python SDK for NBG APIs
Project description
NBG Python SDK
Python wrapper with unified developer experience for the APIs of the National Bank of Greece.
Requirements
- Python 3.6 or newer
Installation
poetry add nbg
API clients
The National Bank of Greece provides a set of multiple APIs. To use each one of these APIs, you should pick the corresponding client from the nbg
package.
Accounts Information PSD2 API
from nbg.account_information import AccountInformationPSD2Client
# Step 1 - Set up client and authentication
client = nbg.AccountInformationPSD2Client(
client_id="your_client_id",
client_secret="your_client_secret",
production=False,
)
client.set_access_token("access_token_of_your_user")
# Step 2 - Set up a sandbox, when in development
client.create_sandbox("sandbox_id")
client.set_sandbox("sandbox_id")
# Step 3 - Start working with the Account information API
## Account resource
client.accounts("your_user_id")
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
nbg-0.4.0.tar.gz
(13.1 kB
view hashes)
Built Distribution
nbg-0.4.0-py3-none-any.whl
(18.2 kB
view hashes)