Get browser icon
Endpoint
gethttps://<REGION>.cloud.appwrite.io/v1/avatars/browsers/{code}
Description
You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user GET /account/sessions endpoint. Use width, height and quality arguments to change the output settings.
When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
Required scopes
Authentication
setProject() and authenticate with either a server API key (setKey()) or a signed-in user (setSession() or setJWT()). For direct REST calls, send X-Appwrite-Project with either X-Appwrite-Key or session/JWT headers.Path
Browser Code.
Query parameters
Image width. Pass an integer between 0 to 2000. Defaults to 100.
Image height. Pass an integer between 0 to 2000. Defaults to 100.
Image quality. Pass an integer between 0 to 100. Defaults to 100.
using Appwrite;using Appwrite.Enums;using Appwrite.Models;using Appwrite.Services;
Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with
Avatars avatars = new Avatars(client);
byte[] result = await avatars.GetBrowser( code: Browser.AvantBrowser, width: 0, // optional height: 0, // optional quality: 0 // optional);Avatars
Get browser icon
Endpoint
gethttps://<REGION>.cloud.appwrite.io/v1/avatars/browsers/{code}
Description
You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user GET /account/sessions endpoint. Use width, height and quality arguments to change the output settings.
When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
Required scopes
Authentication
setProject() and authenticate with either a server API key (setKey()) or a signed-in user (setSession() or setJWT()). For direct REST calls, send X-Appwrite-Project with either X-Appwrite-Key or session/JWT headers.Path
Browser Code.
Query parameters
Image width. Pass an integer between 0 to 2000. Defaults to 100.
Image height. Pass an integer between 0 to 2000. Defaults to 100.
Image quality. Pass an integer between 0 to 100. Defaults to 100.
using Appwrite;using Appwrite.Enums;using Appwrite.Models;using Appwrite.Services;
Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with
Avatars avatars = new Avatars(client);
byte[] result = await avatars.GetBrowser( code: Browser.AvantBrowser, width: 0, // optional height: 0, // optional quality: 0 // optional);