chore: update SDKs
This commit is contained in:
parent
c0eefc3b46
commit
95feb59e0a
7 changed files with 56 additions and 10 deletions
|
@ -15,7 +15,7 @@ return [
|
|||
[
|
||||
'key' => 'web',
|
||||
'name' => 'Web',
|
||||
'version' => '16.0.0-rc.2',
|
||||
'version' => '16.0.0-rc.3',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-web',
|
||||
'package' => 'https://www.npmjs.com/package/appwrite',
|
||||
'enabled' => true,
|
||||
|
|
12
composer.lock
generated
12
composer.lock
generated
|
@ -2993,16 +2993,16 @@
|
|||
"packages-dev": [
|
||||
{
|
||||
"name": "appwrite/sdk-generator",
|
||||
"version": "0.39.6",
|
||||
"version": "0.39.8",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/appwrite/sdk-generator.git",
|
||||
"reference": "00e6f9e77ea380d8ab3138a36548b353077e4061"
|
||||
"reference": "52ab35c9bc0c68414251626b6f1cd66f75a73e37"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/00e6f9e77ea380d8ab3138a36548b353077e4061",
|
||||
"reference": "00e6f9e77ea380d8ab3138a36548b353077e4061",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/52ab35c9bc0c68414251626b6f1cd66f75a73e37",
|
||||
"reference": "52ab35c9bc0c68414251626b6f1cd66f75a73e37",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -3038,9 +3038,9 @@
|
|||
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
||||
"support": {
|
||||
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
||||
"source": "https://github.com/appwrite/sdk-generator/tree/0.39.6"
|
||||
"source": "https://github.com/appwrite/sdk-generator/tree/0.39.8"
|
||||
},
|
||||
"time": "2024-08-08T12:44:28+00:00"
|
||||
"time": "2024-08-20T09:24:00+00:00"
|
||||
},
|
||||
{
|
||||
"name": "doctrine/deprecations",
|
||||
|
|
|
@ -12,6 +12,5 @@ $client = (new Client())
|
|||
$account = new Account($client);
|
||||
|
||||
$result = $account->deleteMfaAuthenticator(
|
||||
type: AuthenticatorType::TOTP(),
|
||||
otp: '<OTP>'
|
||||
type: AuthenticatorType::TOTP()
|
||||
);
|
|
@ -32,5 +32,5 @@ $result = $functions->create(
|
|||
templateRepository: '<TEMPLATE_REPOSITORY>', // optional
|
||||
templateOwner: '<TEMPLATE_OWNER>', // optional
|
||||
templateRootDirectory: '<TEMPLATE_ROOT_DIRECTORY>', // optional
|
||||
templateBranch: '<TEMPLATE_BRANCH>' // optional
|
||||
templateVersion: '<TEMPLATE_VERSION>' // optional
|
||||
);
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
use Appwrite\Client;
|
||||
use Appwrite\Services\Functions;
|
||||
|
||||
$client = (new Client())
|
||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
->setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
->setSession(''); // The user session to authenticate with
|
||||
|
||||
$functions = new Functions($client);
|
||||
|
||||
$result = $functions->getDeploymentDownload(
|
||||
functionId: '<FUNCTION_ID>',
|
||||
deploymentId: '<DEPLOYMENT_ID>'
|
||||
);
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
use Appwrite\Client;
|
||||
use Appwrite\Services\Functions;
|
||||
|
||||
$client = (new Client())
|
||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||
|
||||
$functions = new Functions($client);
|
||||
|
||||
$result = $functions->getTemplate(
|
||||
templateId: '<TEMPLATE_ID>'
|
||||
);
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
use Appwrite\Client;
|
||||
use Appwrite\Services\Functions;
|
||||
|
||||
$client = (new Client())
|
||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
->setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
||||
|
||||
$functions = new Functions($client);
|
||||
|
||||
$result = $functions->listTemplates(
|
||||
runtimes: [], // optional
|
||||
useCases: [], // optional
|
||||
limit: 1, // optional
|
||||
offset: 0 // optional
|
||||
);
|
Loading…
Reference in a new issue