1
0
Fork 0
mirror of synced 2024-09-13 08:03:33 +12:00
appwrite/app/sdks/server-php/docs/examples/avatars/get-image.md

16 lines
378 B
Markdown
Raw Normal View History

2019-07-30 20:05:44 +12:00
<?php
use Appwrite\Client;
use Appwrite\Services\Avatars;
$client = new Client();
$client
2020-05-28 16:41:25 +12:00
->setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
2020-02-16 07:22:34 +13:00
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
2019-07-30 20:05:44 +12:00
;
$avatars = new Avatars($client);
$result = $avatars->getImage('https://example.com');