fairway / canto-saas-api
Client library for Canto SaaS APIs.
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 5 783
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 2
Open Issues: 1
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^6.3 || ^7.3
- psr/log: ^1.1 || ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.3
- phpro/grumphp: ^1.5
- phpstan/phpstan: ^1.2
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-10-20 12:35:42 UTC
README
Example usage
use Fairway\CantoSaasApi\ClientOptions; use Fairway\CantoSaasApi\Client; use Fairway\CantoSaasApi\Http\LibraryTree\GetTreeRequest; $clientOptions = new ClientOptions([ 'cantoName' => 'my-canto-name', 'cantoDomain' => 'canto.de', 'appId' => '123456789', 'appSecret' => 'my-app-secret', ]); $client = new Client($clientOptions); $accessToken = $client->authorizeWithClientCredentials('my-user@email.com') ->getAccessToken(); $client->setAccessToken($accessToken); $allFolders = $client->libraryTree() ->getTree(new GetTreeRequest()) ->getResults();