MoneyKit API
Project description
MoneyKit
MoneyKit is the next generation connection for the world's money.
This is an autogenerated python SDK for MoneyKit. It provides a wrapper around the MoneyKit API.
Installation & Usage
Poetry
Install via Poetry.
poetry add moneykit
Then import the package:
import moneykit
pip install
pip install moneykit
Then import the package:
import moneykit
Getting Started
Please follow the installation procedure and then run the following:
import moneykit
import moneykit.models
from moneykit.rest import ApiException
# Defaults to MoneyKit-Version: 2023-02-18
config = moneykit.Configuration(host="https://api.moneykit.com")
api_client = moneykit.ApiClient(config)
try:
access_token_api = moneykit.AccessTokenApi(api_client)
response = access_token_api.create_access_token(
client_id=os.environ["MONEYKIT_CLIENT_ID"],
client_secret=os.environ["MONEYKIT_CLIENT_SECRET"],
grant_type="client_credentials",
)
api_client.configuration.access_token = response.access_token
except ApiException as e:
print("Exception when calling AccessTokenApi->create_access_token: %s\n" % e)
Examples
See our Examples repository for more complete example projects.
Create a Link Session
import moneykit
import moneykit.models
link_session_api = moneykit.LinkSessionApi(moneykit_client())
response = link_session_api.create_link_session(
moneykit.models.CreateLinkSessionRequest(
customer_user=moneykit.models.LinkSessionCustomerUser(id=user.uuid),
redirect_uri="http://localhost:3000",
),
)
link_session_token = response.link_session_token
Exchange token for a Link id
import moneykit
import moneykit.models
exchangeable_token = 'TOKEN'
link_session_api = moneykit.LinkSessionApi(moneykit_client())
response = link_session_api.exchange_token(
moneykit.models.ExchangeTokenRequest(exchangeable_token=body.exchangeable_token),
)
link_id = response.link_id
institution_id = response.link.institution_id
Delete link
import moneykit
import moneykit.models
link_id = 'LINK_ID'
links_api = moneykit.LinksApi(moneykit_client())
links_api.delete_link(link_id)
Fetch accounts
import moneykit
import moneykit.models
link_id = 'LINK_ID'
accounts_api = moneykit.AccountsApi(moneykit_client())
response = accounts_api.get_accounts(link_id)
accounts = response.accounts
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moneykit-0.2.3.tar.gz.
File metadata
- Download URL: moneykit-0.2.3.tar.gz
- Upload date:
- Size: 107.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a89df268217513439a7412730db93df549c577e6414c1bb1011b7f628bba7fc
|
|
| MD5 |
9f41289b025083ce304ab20f913534db
|
|
| BLAKE2b-256 |
4ff1af83891fbd1cd6b040e5c6233bee9ec1307b83150052d5afa5ad2be75d07
|
Provenance
The following attestation bundles were made for moneykit-0.2.3.tar.gz:
Publisher:
release.yaml on moneykit/moneykit-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
moneykit-0.2.3.tar.gz -
Subject digest:
6a89df268217513439a7412730db93df549c577e6414c1bb1011b7f628bba7fc - Sigstore transparency entry: 207490433
- Sigstore integration time:
-
Permalink:
moneykit/moneykit-python@9809eac649869d8dbe6521799545f0be9fc1534d -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/moneykit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@9809eac649869d8dbe6521799545f0be9fc1534d -
Trigger Event:
push
-
Statement type:
File details
Details for the file moneykit-0.2.3-py3-none-any.whl.
File metadata
- Download URL: moneykit-0.2.3-py3-none-any.whl
- Upload date:
- Size: 273.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7399a627dab90fe7e77c528cf435370f9320fb08d89f8c27d25e2ab20f369f40
|
|
| MD5 |
8f51ecc447f39b0655ff8346c295e049
|
|
| BLAKE2b-256 |
2fcba804a5ab28f9930a3a84a20d94e0ccdc197f7214995250cc1602527f5794
|
Provenance
The following attestation bundles were made for moneykit-0.2.3-py3-none-any.whl:
Publisher:
release.yaml on moneykit/moneykit-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
moneykit-0.2.3-py3-none-any.whl -
Subject digest:
7399a627dab90fe7e77c528cf435370f9320fb08d89f8c27d25e2ab20f369f40 - Sigstore transparency entry: 207490439
- Sigstore integration time:
-
Permalink:
moneykit/moneykit-python@9809eac649869d8dbe6521799545f0be9fc1534d -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/moneykit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@9809eac649869d8dbe6521799545f0be9fc1534d -
Trigger Event:
push
-
Statement type: