1
0
Fork 0
mirror of synced 2024-10-06 13:16:13 +13:00
appwrite/tests/resources/functions/dart/main.dart

26 lines
843 B
Dart
Raw Normal View History

2021-01-21 22:38:24 +13:00
import 'dart:io';
import 'package:dart_appwrite/dart_appwrite.dart';
void main() { // Init SDK
Client client = Client();
client
.setEndpoint(process.env.APPWRITE_ENDPOINT) // Your API Endpoint
.setProject(process.env.APPWRITE_PROJECT) // Your project ID
.setKey(process.env.APPWRITE_SECRET) // Your secret API key
;
Storage storage = Storage(client);
//Future result = storage.getFile(fileId: '[FILE_ID]');
print(process.env.APPWRITE_FUNCTION_ID);
print(process.env.APPWRITE_FUNCTION_NAME);
print(process.env.APPWRITE_FUNCTION_TAG);
print(process.env.APPWRITE_FUNCTION_TRIGGER);
print(process.env.APPWRITE_FUNCTION_ENV_NAME);
print(process.env.APPWRITE_FUNCTION_ENV_VERSION);
// print(result['$id']);
print(process.env.APPWRITE_FUNCTION_EVENT);
print(process.env.APPWRITE_FUNCTION_EVENT_PAYLOAD);
}