11``` javascript
2- import { Client , Avatars , Theme , Timezone , BrowserPermission , ImageFormat } from " @appwrite.io/console" ;
2+ import { Client , Avatars , BrowserTheme , Timezone , BrowserPermission , ImageFormat } from " @appwrite.io/console" ;
33
44const client = new Client ()
55 .setEndpoint (' https://<REGION>.cloud.appwrite.io/v1' ) // Your API Endpoint
@@ -16,11 +16,11 @@ const result = avatars.getScreenshot({
1616 viewportWidth: 1920 , // optional
1717 viewportHeight: 1080 , // optional
1818 scale: 2 , // optional
19- theme: Theme .Dark , // optional
19+ theme: BrowserTheme .Dark , // optional
2020 userAgent: ' Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15' , // optional
2121 fullpage: true , // optional
2222 locale: ' en-US' , // optional
23- timezone: Timezone .AmericaNewYork , // optional
23+ timezone: Timezone .AfricaAbidjan , // optional
2424 latitude: 37.7749 , // optional
2525 longitude: - 122.4194 , // optional
2626 accuracy: 100 , // optional
0 commit comments