Files
Chirag Aggarwal 5746166ced docs: fix the domain price and zone examples
The registration type member is xnew, and getZone returns a String. Also corrects the domains changelog line.
2026-10-14 12:56:34 +01:00

386 B

import 'package:dart_appwrite/dart_appwrite.dart';

Client client = Client()
    .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
    .setProject('<YOUR_PROJECT_ID>') // Your project ID
    .setKey('<YOUR_API_KEY>'); // Your secret API key

Domains domains = Domains(client);

String result = await domains.getZone(
    domainId: '<DOMAIN_ID>',
);