23 lines
No EOL
822 B
JavaScript
23 lines
No EOL
822 B
JavaScript
const sdk = require('node-appwrite');
|
|
|
|
let client = new sdk.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
|
|
;
|
|
|
|
let storage = new sdk.Storage(client);
|
|
|
|
// let result = storage.getFile(process.env.APPWRITE_FILEID);
|
|
|
|
console.log(process.env.APPWRITE_FUNCTION_ID);
|
|
console.log(process.env.APPWRITE_FUNCTION_NAME);
|
|
console.log(process.env.APPWRITE_FUNCTION_TAG);
|
|
console.log(process.env.APPWRITE_FUNCTION_TRIGGER);
|
|
console.log(process.env.APPWRITE_FUNCTION_ENV_NAME);
|
|
console.log(process.env.APPWRITE_FUNCTION_ENV_VERSION);
|
|
// console.log(result['$id']);
|
|
console.log(process.env.APPWRITE_FUNCTION_EVENT);
|
|
console.log(process.env.APPWRITE_FUNCTION_EVENT_DATA); |