2024-02-06 01:40:51 +13:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Appwrite\Client;
|
|
|
|
use Appwrite\Services\Avatars;
|
|
|
|
use Appwrite\Enums\Browser;
|
|
|
|
|
2024-02-22 00:31:50 +13:00
|
|
|
$client = (new Client())
|
2024-02-06 01:40:51 +13:00
|
|
|
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
|
|
->setProject('5df5acd0d48c2') // Your project ID
|
2024-02-22 00:31:50 +13:00
|
|
|
->setSession(''); // The user session to authenticate with
|
2024-02-06 01:40:51 +13:00
|
|
|
|
|
|
|
$avatars = new Avatars($client);
|
|
|
|
|
2024-02-22 00:31:50 +13:00
|
|
|
$result = $avatars->getBrowser(
|
2024-03-08 22:58:46 +13:00
|
|
|
code: Browser::AVANTBROWSER(),
|
2024-02-22 00:31:50 +13:00
|
|
|
width: 0, // optional
|
|
|
|
height: 0, // optional
|
|
|
|
quality: 0 // optional
|
|
|
|
);
|