mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
docs update
This commit is contained in:
@@ -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'));
|
||||
Reference in New Issue
Block a user