mirror of
https://github.com/appwrite/appwrite
synced 2026-05-17 05:58:31 +00:00
349 B
349 B
import { Client, Avatars } from "@appwrite.io/console";
const client = new Client();
const avatars = new Avatars(client);
client .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ;
const result = avatars.getImage('https://example.com');
console.log(result); // Resource URL