docs update

This commit is contained in:
Damodar Lohani
2022-08-29 12:09:22 +00:00
parent 60c05fad25
commit 3f9bbd5fc7
69 changed files with 73 additions and 62 deletions
@@ -1,6 +1,7 @@
<?php
use Appwrite\Client;
use Appwrite\InputFile;
use Appwrite\Services\Functions;
$client = new Client();
@@ -13,4 +14,4 @@ $client
$functions = new Functions($client);
$result = $functions->createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', 'file.png', false);
$result = $functions->createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', InputFile::withPath('file.png'), false);
@@ -13,4 +13,4 @@ $client
$functions = new Functions($client);
$result = $functions->create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5');
$result = $functions->create('[FUNCTION_ID]', '[NAME]', ["role:all"], 'node-14.5');
@@ -13,4 +13,4 @@ $client
$functions = new Functions($client);
$result = $functions->update('[FUNCTION_ID]', '[NAME]', []);
$result = $functions->update('[FUNCTION_ID]', '[NAME]', ["role:all"]);
@@ -1,6 +1,7 @@
<?php
use Appwrite\Client;
use Appwrite\InputFile;
use Appwrite\Services\Storage;
$client = new Client();
@@ -13,4 +14,4 @@ $client
$storage = new Storage($client);
$result = $storage->createFile('[BUCKET_ID]', '[FILE_ID]', 'file.png');
$result = $storage->createFile('[BUCKET_ID]', '[FILE_ID]', InputFile::withPath('file.png'));