1
0
Fork 0
mirror of synced 2024-06-14 00:34:51 +12:00
appwrite/docs/examples/1.5.x/server-php/examples/avatars/get-browser.md
2024-03-08 10:58:46 +01:00

19 lines
484 B
Markdown

<?php
use Appwrite\Client;
use Appwrite\Services\Avatars;
use Appwrite\Enums\Browser;
$client = (new Client())
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setSession(''); // The user session to authenticate with
$avatars = new Avatars($client);
$result = $avatars->getBrowser(
code: Browser::AVANTBROWSER(),
width: 0, // optional
height: 0, // optional
quality: 0 // optional
);