moneykit


Namemoneykit JSON
Version 0.1.13 PyPI version JSON
download
home_pagehttps://github.com/GIT_USER_ID/GIT_REPO_ID
SummaryMoneyKit API
upload_time2024-04-15 16:08:57
maintainerNone
docs_urlNone
authorOpenAPI Generator Community
requires_python<4.0,>=3.8
licenseNoLicense
keywords openapi openapi-generator moneykit api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # MoneyKit

MoneyKit is the next generation connection for the world's money.

This is an autogenerated python SDK for OpenFGA. It provides a wrapper around the [MoneyKit API definition](https://docs.moneykit.com).

## Installation & Usage

### Poetry

Install via [Poetry](https://python-poetry.org/).

```sh
poetry add moneykit
```

Then import the package:
```python
import moneykit
```

### pip install

```sh
pip install moneykit
```

Then import the package:
```python
import moneykit
```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python
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.generate_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->generate_access_token: %s\n" % e)
```


## Examples

See our [Examples repository](https://github.com/moneykit/examples) for more complete example projects.

### Create a Link Session

```python
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

```python
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
```

### Disconnect link

```python
import moneykit
import moneykit.models


link_id = 'LINK_ID'

links_api = moneykit.LinksApi(moneykit_client())
links_api.disconnect(link_id)
```

### Fetch accounts

```python
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
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/GIT_USER_ID/GIT_REPO_ID",
    "name": "moneykit",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": "OpenAPI, OpenAPI-Generator, MoneyKit API",
    "author": "OpenAPI Generator Community",
    "author_email": "team@openapitools.org",
    "download_url": "https://files.pythonhosted.org/packages/fa/cd/b883d25463249d92783d98b28d678e3ce265284a770a054d98f3e0e235ec/moneykit-0.1.13.tar.gz",
    "platform": null,
    "description": "# MoneyKit\n\nMoneyKit is the next generation connection for the world's money.\n\nThis is an autogenerated python SDK for OpenFGA. It provides a wrapper around the [MoneyKit API definition](https://docs.moneykit.com).\n\n## Installation & Usage\n\n### Poetry\n\nInstall via [Poetry](https://python-poetry.org/).\n\n```sh\npoetry add moneykit\n```\n\nThen import the package:\n```python\nimport moneykit\n```\n\n### pip install\n\n```sh\npip install moneykit\n```\n\nThen import the package:\n```python\nimport moneykit\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```python\nimport moneykit\nimport moneykit.models\nfrom moneykit.rest import ApiException\n\n# Defaults to MoneyKit-Version: 2023-02-18\nconfig = moneykit.Configuration(host=\"https://api.moneykit.com\")\napi_client = moneykit.ApiClient(config)\ntry:\n    access_token_api = moneykit.AccessTokenApi(api_client)\n    response = access_token_api.generate_access_token(\n        client_id=os.environ[\"MONEYKIT_CLIENT_ID\"],\n        client_secret=os.environ[\"MONEYKIT_CLIENT_SECRET\"],\n        grant_type=\"client_credentials\",\n    )\n\n    api_client.configuration.access_token = response.access_token\nexcept ApiException as e:\n    print(\"Exception when calling AccessTokenApi->generate_access_token: %s\\n\" % e)\n```\n\n\n## Examples\n\nSee our [Examples repository](https://github.com/moneykit/examples) for more complete example projects.\n\n### Create a Link Session\n\n```python\nimport moneykit\nimport moneykit.models\n\nlink_session_api = moneykit.LinkSessionApi(moneykit_client())\n\nresponse = link_session_api.create_link_session(\n    moneykit.models.CreateLinkSessionRequest(\n        customer_user=moneykit.models.LinkSessionCustomerUser(id=user.uuid),\n        redirect_uri=\"http://localhost:3000\",\n    ),\n)\n\nlink_session_token = response.link_session_token\n```\n\n### Exchange token for a Link id\n\n```python\nimport moneykit\nimport moneykit.models\n\n\nexchangeable_token = 'TOKEN'\n\nlink_session_api = moneykit.LinkSessionApi(moneykit_client())\nresponse = link_session_api.exchange_token(\n    moneykit.models.ExchangeTokenRequest(exchangeable_token=body.exchangeable_token),\n)\n\nlink_id = response.link_id\ninstitution_id = response.link.institution_id\n```\n\n### Disconnect link\n\n```python\nimport moneykit\nimport moneykit.models\n\n\nlink_id = 'LINK_ID'\n\nlinks_api = moneykit.LinksApi(moneykit_client())\nlinks_api.disconnect(link_id)\n```\n\n### Fetch accounts\n\n```python\nimport moneykit\nimport moneykit.models\n\n\nlink_id = 'LINK_ID'\n\naccounts_api = moneykit.AccountsApi(moneykit_client())\nresponse = accounts_api.get_accounts(link_id)\n\naccounts = response.accounts\n```\n\n",
    "bugtrack_url": null,
    "license": "NoLicense",
    "summary": "MoneyKit API",
    "version": "0.1.13",
    "project_urls": {
        "Homepage": "https://github.com/GIT_USER_ID/GIT_REPO_ID",
        "Repository": "https://github.com/GIT_USER_ID/GIT_REPO_ID"
    },
    "split_keywords": [
        "openapi",
        " openapi-generator",
        " moneykit api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "04a0cd3139abfb41e5ee06747fbbfed265bb17659fa007e0e583ac98e1779347",
                "md5": "9ebb670f4c09b15ef5bc02b9fa02a856",
                "sha256": "ace9b2d72a1e447580fdc6af770cc45944c64d20d77169e89b38c21b3717eb0c"
            },
            "downloads": -1,
            "filename": "moneykit-0.1.13-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9ebb670f4c09b15ef5bc02b9fa02a856",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 266151,
            "upload_time": "2024-04-15T16:08:54",
            "upload_time_iso_8601": "2024-04-15T16:08:54.100647Z",
            "url": "https://files.pythonhosted.org/packages/04/a0/cd3139abfb41e5ee06747fbbfed265bb17659fa007e0e583ac98e1779347/moneykit-0.1.13-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "facdb883d25463249d92783d98b28d678e3ce265284a770a054d98f3e0e235ec",
                "md5": "b35e437920d8a669cd964e9a15e9c5c7",
                "sha256": "bbb844920e3c1403c7411db5c66cfb4a8c3a6a06613d5c62ebf1f560dfa0391b"
            },
            "downloads": -1,
            "filename": "moneykit-0.1.13.tar.gz",
            "has_sig": false,
            "md5_digest": "b35e437920d8a669cd964e9a15e9c5c7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 76830,
            "upload_time": "2024-04-15T16:08:57",
            "upload_time_iso_8601": "2024-04-15T16:08:57.101594Z",
            "url": "https://files.pythonhosted.org/packages/fa/cd/b883d25463249d92783d98b28d678e3ce265284a770a054d98f3e0e235ec/moneykit-0.1.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-15 16:08:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "GIT_USER_ID",
    "github_project": "GIT_REPO_ID",
    "github_not_found": true,
    "lcname": "moneykit"
}
        
Elapsed time: 0.25587s