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('[email protected]')
->getAccessToken();
$client->setAccessToken($accessToken);
$allFolders = $client->libraryTree()
->getTree(new GetTreeRequest())
->getResults();
-
Notifications
You must be signed in to change notification settings - Fork 2
PHP library to interact with Canto SaaS API
License
ecentral/fairway-canto-saas-api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
PHP library to interact with Canto SaaS API
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published