Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Avatars → Get Browser Icon
AI-generatedOverview
This node interacts with the Appwrite API to retrieve browser icons as avatars. It is useful for applications that need to display browser-specific icons, such as user profile customization, analytics dashboards, or UI elements that reflect the user's browser. For example, it can fetch the Google Chrome icon or the Mozilla Firefox icon in a specified size and quality.
Use Case Examples
- Fetching a Google Chrome browser icon at 100x100 pixels with high quality for display in a web app.
- Retrieving the Safari browser icon at original size for use in a mobile app's user interface.
Properties
| Name | Meaning |
|---|---|
| Browser Code | Identifier for the browser whose icon is to be retrieved. Options include various browsers like Google Chrome, Mozilla Firefox, Safari, etc. |
| Width | Width of the browser icon image in pixels. Accepts values from 0 to 2000, where 0 means original width. |
| Height | Height of the browser icon image in pixels. Accepts values from 0 to 2000, where 0 means original height. |
| Quality | Quality of the browser icon image from 0 to 100, where higher values produce better quality images. |
Output
JSON
url- URL of the retrieved browser icon imagecode- Browser code identifier used to fetch the iconwidth- Width of the returned image in pixelsheight- Height of the returned image in pixelsquality- Quality setting of the returned image
Dependencies
- Appwrite API key credential for authentication
Troubleshooting
- Common issues include invalid or missing API credentials, which will cause authentication errors.
- Providing an unsupported browser code will result in an error indicating an unknown resource or invalid parameter.
- Setting width or height outside the allowed range (0-2000) may cause the API to reject the request.
Links
- Appwrite Avatars API Documentation - Official documentation for the Appwrite Avatars API, including browser icon retrieval.