This repository is an example of a cloud function for appwrite.
Deploy it and use the appwrite console to trigger it.
to run main_test.dart create an .env file in the root of the project containing:
API_ENDPOINT=https://cloud.appwrite.io/v1
API_PROJECT_ID=your project
API_KEY=your key
main_test.dart must be run on your local machine, outside of appwrite