Skip to content

SDKs for Truto API ​

To make interacting with our API more convenient, Truto provides an SDK for Typescript and Python. All our SDKs are hand-crafted.

Truto Typescript SDK ​

The Truto Typescript SDK is available on npm, and you can find it at the following URL:

@truto/truto-ts-sdk

Installation ​

You can install the SDK using npm:

bash
npm install @truto/truto-ts-sdk

Usage ​

After installing the SDK, you can import it in your project as follows:

javascript
import Truto from '@truto/truto-ts-sdk';

For more detailed information on using the Truto Typescript SDK, including the list of available resources and methods, please refer to the README on the npm page.

Truto Python SDK ​

The Truto Python SDK is available on PyPI, and you can find it at the following URL:

truto-python-sdk

Installation ​

You can install the SDK using pip:

bash
pip install truto-python-sdk

Usage ​

After installing the SDK, you can import it in your project as follows:

python
import asyncio
from truto_python_sdk import TrutoApi

# Initialize the SDK with your token
truto_api = TrutoApi(token="<your_api_token>")

async def main():
    async for ticket in truto_api.unified_api.list("ticketing", "tickets", {
        "integrated_account_id": "c54bc595-486e-4bbb-8c17-20810fa4a86c"
    }):
        print(await truto_api.proxy_api.get("ticketing-tickets", ticket["id"], {
            "integrated_account_id": "c54bc595-486e-4bbb-8c17-20810fa4a86c"
        }))

# Run the async function
asyncio.run(main())

For more detailed information on using the Truto Python SDK, including the list of available resources and methods, please refer to the README on the PyPI page.

Other languages ​

Reach out to us at support@truto.one if you need SDKs for other languages.