Skip to content

airlst/troi-sdk-php

Repository files navigation

Troi API V2 PHP SDK

This package provides a PHP SDK for the Troi API V2, allowing developers to easily integrate Troi's services into their applications. It is built using Troi's official OpenAPI specifications and is built with the help of crescat-io/saloon-sdk-generator tool.

Installation

composer require airlst/troi-sdk-php

Usage

use Troi\V2\TroiSDK;

$connector = new TroiSDK(
    config('services.troi.customer'),
    config('services.troi.username'),
    config('services.troi.password'),
);

$response = $connector->clients()->fetchAllTenantsFormerlyClients();

Password is “API v2 / Troi App” token that can be found in the Troi security center

Contributing

/app folder contains the Laravel Zero console application that is used to generate the SDK. You can use build command to download a fresh version of the OpenAPI specification and generate the SDK files in the /build folder:

php application build

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages