appwritex

Last updated:

0 purchases

appwritex Image
appwritex Images
Add to Cart

Description:

appwritex

[Beta] AppwriteX provides additional features to the Appwrite Dart SDK non-invasively.



Features #

AppwriteX extends the Appwrite Dart SDK with additional features.

Getting started #

Add this package to your pubspec.yaml file:

dependencies:
dart_appwrite: ^<latest_version>
appwritex: ^1.0.0
copied to clipboard

Install the package by running dart pub get.
Import the package in your Dart code:

import 'package:dart_appwrite/dart_appwrite.dart';
import 'package:appwritex/appwritex.dart';
copied to clipboard

Use the package in your code:

void main() async {
final client = Client()
.setEndpoint('http://localhost/v1')
.setProject('fedcba9876543210')
.setKey('0123456789abcdef');
final users = Users(client);
final usersUsage = await users.getUsage(); // users.getUsage() is provided by AppwriteX
print(usersUsage.toMap());
}
copied to clipboard
Classes and methods #
// Avatars
Avatars.getCardsCloud(); // Get card of a specific user ID
Avatars.getCardsCloudBack(); // Get card back of a specific user ID
Avatars.getCardsCloudOG(); // Get card OG of a specific user ID

// Console
Console.getVariables(); // Get all console variables

// Databases
Databases.getCollectionUsage(); // Get usage of a specific collection
Databases.getDatabaseUsage(); // Get usage of a specific database
Databases.getUsage(); // Get usage of all databases

// Functions
Functions.getFunctionUsage(); // Get usage of a specific function
Functions.getUsage(); // Get usage of all functions

// Health
Health.getStats(); // Get health stats

// Messaging
Messaging.getUsage(); // Get usage of all messaging

// Project
Project.getVariables(); // Get all variables of a specific project
Project.getUsage(); // Get usage of a specific project

// Projects
Projects.list(); // List all projects

// Proxy
Proxy.listRules(); // List all proxy rules

// Public
Public.getVersions(); // Get all version information
Public.getHealthVersion(); // Get health version information

// Storage
Storage.getBucketUsage(); // Get usage of a specific bucket
Storage.getUsage(); // Get usage of all storage

// Teams
Teams.getUsage(); // Get usage of all teams
Teams.listLogs(); // List all team logs

// Users
Users.getUsage(); // Get usage of all users

// Vcs
Vcs.listInstallations(); // List all VCS installations
copied to clipboard
You can also use the Usage class to get usage of all services.
The Usage class is a wrapper class that provides a single method to get usage of all services.
// Usage
Usage.getCollectionUsage(); // Get usage of a specific collection
Usage.getDatabaseUsage(); // Get usage of a specific database
Usage.getDatabasesUsage(); // Get usage of all databases

Usage.getFunctionUsage(); // Get usage of a specific function
Usage.getFunctionsUsage(); // Get usage of all functions

Usage.getMessagingUsage(); // Get usage of all messaging

Usage.getProjectUsage(); // Get usage of a specific project

Usage.getBucketUsage(); // Get usage of a specific bucket
Usage.getStorageUsage(); // Get usage of all storage

Usage.getTeamsUsage(); // Get usage of all teams

Usage.getUsersUsage(); // Get usage of all users
copied to clipboard
Contributors #

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.