1
0
Fork 0
mirror of synced 2024-06-14 08:44:49 +12:00
appwrite/docs/examples/1.5.x/server-php/examples/avatars/get-browser.md

19 lines
484 B
Markdown
Raw Normal View History

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
);