Files
2025-04-22 17:02:33 +04:00

478 B

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