mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
docs update
This commit is contained in:
@@ -12,7 +12,7 @@ client
|
||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
const promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', 'file.png', false);
|
||||
const promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', InputFile.fromPath('/path/to/file.png', 'file.png'), false);
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response);
|
||||
|
||||
@@ -11,7 +11,7 @@ client
|
||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
const promise = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5');
|
||||
const promise = functions.create('[FUNCTION_ID]', '[NAME]', ["role:all"], 'node-14.5');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response);
|
||||
|
||||
@@ -11,7 +11,7 @@ client
|
||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
const promise = functions.update('[FUNCTION_ID]', '[NAME]', []);
|
||||
const promise = functions.update('[FUNCTION_ID]', '[NAME]', ["role:all"]);
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response);
|
||||
|
||||
@@ -12,7 +12,7 @@ client
|
||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
const promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', 'file.png');
|
||||
const promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', InputFile.fromPath('/path/to/file.png', 'file.png'));
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response);
|
||||
|
||||
Reference in New Issue
Block a user