dart_appwrite 18.0.0 copy "dart_appwrite: ^18.0.0" to clipboard
dart_appwrite: ^18.0.0 copied to clipboard

Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API

example/README.md

@@ -1,62 +0,0 @@

Examples #

Init your Appwrite client:

Client client = Client();

client
  .setProject('<YOUR_PROJECT_ID>')
  .setKey('<YOUR_API_KEY>');
copied to clipboard

Create a new user:

Users users = Users(client);

User result = await users.create(
  userId: ID.unique(),
  email: "email@example.com",
  phone: "+123456789",
  password: "password",
  name: "Walter O'Brien"
);
copied to clipboard

Get user:

Users users = Users(client);

User user = await users.get(
  userId: '[USER_ID]',
);
copied to clipboard

Upload File:

Storage storage = Storage(client);

InputFile input = InputFile(
  path: './path-to-file/image.jpg',
  filename: 'image.jpg',
);

File file = await storage.createFile(
  bucketId: '<YOUR_BUCKET_ID>',
  fileId: ID.unique(),
  file: input,
  permissions: [
    Permission.read(Role.any()),
  ],
);
copied to clipboard

All examples and API features are available at the official Appwrite docs

104
likes
150
points
9.73k
downloads

Publisher

verified publisherappwrite.io

Weekly Downloads

2024.10.27 - 2025.09.21

Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

http

More

Packages that depend on dart_appwrite