appwrite/docs/examples/1.6.x/server-ruby/examples/avatars/get-browser.md
2025-04-24 14:46:03 +00:00

453 B

require 'appwrite'

include Appwrite include Appwrite::Enums

client = Client.new .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with

avatars = Avatars.new(client)

result = avatars.get_browser( code: Browser::AVANT_BROWSER, width: 0, # optional height: 0, # optional quality: 0 # optional )