Merge pull request #3726 from appwrite/doc-flutter-webauth-dependency-change
Flutter/Dart Release changes
This commit is contained in:
commit
007ae1fcfc
76 changed files with 157 additions and 127 deletions
|
@ -63,7 +63,7 @@ return [
|
|||
[
|
||||
'key' => 'flutter',
|
||||
'name' => 'Flutter',
|
||||
'version' => '6.0.0',
|
||||
'version' => '7.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-flutter',
|
||||
'package' => 'https://pub.dev/packages/appwrite',
|
||||
'enabled' => true,
|
||||
|
@ -352,7 +352,7 @@ return [
|
|||
[
|
||||
'key' => 'dart',
|
||||
'name' => 'Dart',
|
||||
'version' => '6.0.0',
|
||||
'version' => '6.0.1',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-dart',
|
||||
'package' => 'https://pub.dev/packages/dart_appwrite',
|
||||
'enabled' => true,
|
||||
|
|
120
composer.lock
generated
120
composer.lock
generated
|
@ -481,16 +481,16 @@
|
|||
},
|
||||
{
|
||||
"name": "guzzlehttp/guzzle",
|
||||
"version": "7.4.5",
|
||||
"version": "7.5.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/guzzle/guzzle.git",
|
||||
"reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82"
|
||||
"reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
|
||||
"reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
|
||||
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/b50a2a1251152e43f6a37f0fa053e730a67d25ba",
|
||||
"reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -505,10 +505,10 @@
|
|||
"psr/http-client-implementation": "1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"bamarni/composer-bin-plugin": "^1.4.1",
|
||||
"bamarni/composer-bin-plugin": "^1.8.1",
|
||||
"ext-curl": "*",
|
||||
"php-http/client-integration-tests": "^3.0",
|
||||
"phpunit/phpunit": "^8.5.5 || ^9.3.5",
|
||||
"phpunit/phpunit": "^8.5.29 || ^9.5.23",
|
||||
"psr/log": "^1.1 || ^2.0 || ^3.0"
|
||||
},
|
||||
"suggest": {
|
||||
|
@ -518,8 +518,12 @@
|
|||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"bamarni-bin": {
|
||||
"bin-links": true,
|
||||
"forward-command": false
|
||||
},
|
||||
"branch-alias": {
|
||||
"dev-master": "7.4-dev"
|
||||
"dev-master": "7.5-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
|
@ -585,7 +589,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/guzzle/guzzle/issues",
|
||||
"source": "https://github.com/guzzle/guzzle/tree/7.4.5"
|
||||
"source": "https://github.com/guzzle/guzzle/tree/7.5.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -601,20 +605,20 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2022-06-20T22:16:13+00:00"
|
||||
"time": "2022-08-28T15:39:27+00:00"
|
||||
},
|
||||
{
|
||||
"name": "guzzlehttp/promises",
|
||||
"version": "1.5.1",
|
||||
"version": "1.5.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/guzzle/promises.git",
|
||||
"reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da"
|
||||
"reference": "b94b2807d85443f9719887892882d0329d1e2598"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da",
|
||||
"reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da",
|
||||
"url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598",
|
||||
"reference": "b94b2807d85443f9719887892882d0329d1e2598",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -669,7 +673,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/guzzle/promises/issues",
|
||||
"source": "https://github.com/guzzle/promises/tree/1.5.1"
|
||||
"source": "https://github.com/guzzle/promises/tree/1.5.2"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -685,20 +689,20 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-10-22T20:56:57+00:00"
|
||||
"time": "2022-08-28T14:55:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "guzzlehttp/psr7",
|
||||
"version": "2.4.0",
|
||||
"version": "2.4.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/guzzle/psr7.git",
|
||||
"reference": "13388f00956b1503577598873fffb5ae994b5737"
|
||||
"reference": "69568e4293f4fa993f3b0e51c9723e1e17c41379"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/13388f00956b1503577598873fffb5ae994b5737",
|
||||
"reference": "13388f00956b1503577598873fffb5ae994b5737",
|
||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/69568e4293f4fa993f3b0e51c9723e1e17c41379",
|
||||
"reference": "69568e4293f4fa993f3b0e51c9723e1e17c41379",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -712,15 +716,19 @@
|
|||
"psr/http-message-implementation": "1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"bamarni/composer-bin-plugin": "^1.4.1",
|
||||
"bamarni/composer-bin-plugin": "^1.8.1",
|
||||
"http-interop/http-factory-tests": "^0.9",
|
||||
"phpunit/phpunit": "^8.5.8 || ^9.3.10"
|
||||
"phpunit/phpunit": "^8.5.29 || ^9.5.23"
|
||||
},
|
||||
"suggest": {
|
||||
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"bamarni-bin": {
|
||||
"bin-links": true,
|
||||
"forward-command": false
|
||||
},
|
||||
"branch-alias": {
|
||||
"dev-master": "2.4-dev"
|
||||
}
|
||||
|
@ -784,7 +792,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/guzzle/psr7/issues",
|
||||
"source": "https://github.com/guzzle/psr7/tree/2.4.0"
|
||||
"source": "https://github.com/guzzle/psr7/tree/2.4.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -800,7 +808,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2022-06-20T21:43:11+00:00"
|
||||
"time": "2022-08-28T14:45:39+00:00"
|
||||
},
|
||||
{
|
||||
"name": "influxdb/influxdb-php",
|
||||
|
@ -1894,16 +1902,16 @@
|
|||
},
|
||||
{
|
||||
"name": "utopia-php/cache",
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/utopia-php/cache.git",
|
||||
"reference": "8ea1353a4bbab617e23c865a7c97b60d8074aee3"
|
||||
"reference": "9889235a6d3da6cbb1f435201529da4d27c30e79"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/utopia-php/cache/zipball/8ea1353a4bbab617e23c865a7c97b60d8074aee3",
|
||||
"reference": "8ea1353a4bbab617e23c865a7c97b60d8074aee3",
|
||||
"url": "https://api.github.com/repos/utopia-php/cache/zipball/9889235a6d3da6cbb1f435201529da4d27c30e79",
|
||||
"reference": "9889235a6d3da6cbb1f435201529da4d27c30e79",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1941,9 +1949,9 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/utopia-php/cache/issues",
|
||||
"source": "https://github.com/utopia-php/cache/tree/0.6.0"
|
||||
"source": "https://github.com/utopia-php/cache/tree/0.6.1"
|
||||
},
|
||||
"time": "2022-04-04T12:30:05+00:00"
|
||||
"time": "2022-08-10T08:12:46+00:00"
|
||||
},
|
||||
{
|
||||
"name": "utopia-php/cli",
|
||||
|
@ -2948,16 +2956,16 @@
|
|||
},
|
||||
{
|
||||
"name": "matthiasmullie/minify",
|
||||
"version": "1.3.68",
|
||||
"version": "1.3.69",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/matthiasmullie/minify.git",
|
||||
"reference": "c00fb02f71b2ef0a5f53fe18c5a8b9aa30f48297"
|
||||
"reference": "a61c949cccd086808063611ef9698eabe42ef22f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/matthiasmullie/minify/zipball/c00fb02f71b2ef0a5f53fe18c5a8b9aa30f48297",
|
||||
"reference": "c00fb02f71b2ef0a5f53fe18c5a8b9aa30f48297",
|
||||
"url": "https://api.github.com/repos/matthiasmullie/minify/zipball/a61c949cccd086808063611ef9698eabe42ef22f",
|
||||
"reference": "a61c949cccd086808063611ef9698eabe42ef22f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -3006,7 +3014,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/matthiasmullie/minify/issues",
|
||||
"source": "https://github.com/matthiasmullie/minify/tree/1.3.68"
|
||||
"source": "https://github.com/matthiasmullie/minify/tree/1.3.69"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -3014,7 +3022,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2022-04-19T08:28:56+00:00"
|
||||
"time": "2022-08-01T09:00:18+00:00"
|
||||
},
|
||||
{
|
||||
"name": "matthiasmullie/path-converter",
|
||||
|
@ -3524,23 +3532,23 @@
|
|||
},
|
||||
{
|
||||
"name": "phpunit/php-code-coverage",
|
||||
"version": "9.2.15",
|
||||
"version": "9.2.16",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
||||
"reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f"
|
||||
"reference": "2593003befdcc10db5e213f9f28814f5aa8ac073"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2e9da11878c4202f97915c1cb4bb1ca318a63f5f",
|
||||
"reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2593003befdcc10db5e213f9f28814f5aa8ac073",
|
||||
"reference": "2593003befdcc10db5e213f9f28814f5aa8ac073",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-dom": "*",
|
||||
"ext-libxml": "*",
|
||||
"ext-xmlwriter": "*",
|
||||
"nikic/php-parser": "^4.13.0",
|
||||
"nikic/php-parser": "^4.14",
|
||||
"php": ">=7.3",
|
||||
"phpunit/php-file-iterator": "^3.0.3",
|
||||
"phpunit/php-text-template": "^2.0.2",
|
||||
|
@ -3589,7 +3597,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
|
||||
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.15"
|
||||
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.16"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -3597,7 +3605,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2022-03-07T09:28:20+00:00"
|
||||
"time": "2022-08-20T05:26:47+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpunit/php-file-iterator",
|
||||
|
@ -4800,16 +4808,16 @@
|
|||
},
|
||||
{
|
||||
"name": "sebastian/type",
|
||||
"version": "3.0.0",
|
||||
"version": "3.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/type.git",
|
||||
"reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad"
|
||||
"reference": "fb44e1cc6e557418387ad815780360057e40753e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b233b84bc4465aff7b57cf1c4bc75c86d00d6dad",
|
||||
"reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb44e1cc6e557418387ad815780360057e40753e",
|
||||
"reference": "fb44e1cc6e557418387ad815780360057e40753e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -4821,7 +4829,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.0-dev"
|
||||
"dev-master": "3.1-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
|
@ -4844,7 +4852,7 @@
|
|||
"homepage": "https://github.com/sebastianbergmann/type",
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/type/issues",
|
||||
"source": "https://github.com/sebastianbergmann/type/tree/3.0.0"
|
||||
"source": "https://github.com/sebastianbergmann/type/tree/3.1.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -4852,7 +4860,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2022-03-15T09:54:48+00:00"
|
||||
"time": "2022-08-29T06:55:37+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/version",
|
||||
|
@ -5271,16 +5279,16 @@
|
|||
},
|
||||
{
|
||||
"name": "twig/twig",
|
||||
"version": "v3.4.1",
|
||||
"version": "v3.4.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/twigphp/Twig.git",
|
||||
"reference": "e939eae92386b69b49cfa4599dd9bead6bf4a342"
|
||||
"reference": "e07cdd3d430cd7e453c31b36eb5ad6c0c5e43077"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/twigphp/Twig/zipball/e939eae92386b69b49cfa4599dd9bead6bf4a342",
|
||||
"reference": "e939eae92386b69b49cfa4599dd9bead6bf4a342",
|
||||
"url": "https://api.github.com/repos/twigphp/Twig/zipball/e07cdd3d430cd7e453c31b36eb5ad6c0c5e43077",
|
||||
"reference": "e07cdd3d430cd7e453c31b36eb5ad6c0c5e43077",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -5331,7 +5339,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/twigphp/Twig/issues",
|
||||
"source": "https://github.com/twigphp/Twig/tree/v3.4.1"
|
||||
"source": "https://github.com/twigphp/Twig/tree/v3.4.2"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -5343,7 +5351,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2022-05-17T05:48:52+00:00"
|
||||
"time": "2022-08-12T06:47:24+00:00"
|
||||
}
|
||||
],
|
||||
"aliases": [],
|
||||
|
@ -5370,5 +5378,5 @@
|
|||
"platform-overrides": {
|
||||
"php": "8.0"
|
||||
},
|
||||
"plugin-api-version": "2.3.0"
|
||||
"plugin-api-version": "2.2.0"
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ import android.os.Bundle
|
|||
import kotlinx.coroutines.GlobalScope
|
||||
import kotlinx.coroutines.launch
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.models.InputFile
|
||||
import io.appwrite.services.Storage
|
||||
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
|
|
|
@ -3,6 +3,7 @@ import android.os.Bundle
|
|||
import kotlinx.coroutines.GlobalScope
|
||||
import kotlinx.coroutines.launch
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.models.InputFile
|
||||
import io.appwrite.services.Storage
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
appwrite functions create \
|
||||
--functionId [FUNCTION_ID] \
|
||||
--name [NAME] \
|
||||
--execute one two three \
|
||||
--execute "role:all" \
|
||||
--runtime node-14.5 \
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
appwrite functions update \
|
||||
--functionId [FUNCTION_ID] \
|
||||
--name [NAME] \
|
||||
--execute one two three \
|
||||
--execute "role:all" \
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ client
|
|||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
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); // Success
|
||||
|
|
|
@ -9,7 +9,7 @@ client
|
|||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = functions.update('[FUNCTION_ID]', '[NAME]', []);
|
||||
const promise = functions.update('[FUNCTION_ID]', '[NAME]', ["role:all"]);
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
|
|
|
@ -13,7 +13,7 @@ void main() { // Init SDK
|
|||
Future result = functions.create(
|
||||
functionId: '[FUNCTION_ID]',
|
||||
name: '[NAME]',
|
||||
execute: [],
|
||||
execute: ["role:all"],
|
||||
runtime: 'node-14.5',
|
||||
);
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ void main() { // Init SDK
|
|||
Future result = functions.update(
|
||||
functionId: '[FUNCTION_ID]',
|
||||
name: '[NAME]',
|
||||
execute: [],
|
||||
execute: ["role:all"],
|
||||
);
|
||||
|
||||
result
|
||||
|
|
|
@ -12,7 +12,7 @@ client
|
|||
;
|
||||
|
||||
|
||||
let promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', 'file.png', false);
|
||||
let promise = functions.createDeployment('[FUNCTION_ID]', '[ENTRYPOINT]', InputFile.fromPath('/path/to/file.png', 'file.png'), false);
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response);
|
||||
|
|
|
@ -12,7 +12,7 @@ client
|
|||
;
|
||||
|
||||
|
||||
let promise = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5');
|
||||
let promise = functions.create('[FUNCTION_ID]', '[NAME]', ["role:all"], 'node-14.5');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response);
|
||||
|
|
|
@ -12,7 +12,7 @@ client
|
|||
;
|
||||
|
||||
|
||||
let promise = functions.update('[FUNCTION_ID]', '[NAME]', []);
|
||||
let promise = functions.update('[FUNCTION_ID]', '[NAME]', ["role:all"]);
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response);
|
||||
|
|
|
@ -12,7 +12,7 @@ client
|
|||
;
|
||||
|
||||
|
||||
let promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', 'file.png');
|
||||
let promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', InputFile.fromPath('/path/to/file.png', 'file.png'));
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response);
|
||||
|
|
|
@ -12,8 +12,8 @@ public void main() {
|
|||
collectionId = "[COLLECTION_ID]",
|
||||
name = "[NAME]",
|
||||
permission = "document",
|
||||
read = ["role:all"],
|
||||
write = ["role:all"]
|
||||
read = listOf("role:all"),
|
||||
write = listOf("role:all")
|
||||
new Continuation<Response>() {
|
||||
@NotNull
|
||||
@Override
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import io.appwrite.Client
|
||||
import io.appwrite.models.InputFile
|
||||
import io.appwrite.services.Functions
|
||||
|
||||
public void main() {
|
||||
|
|
|
@ -11,7 +11,7 @@ public void main() {
|
|||
functions.create(
|
||||
functionId = "[FUNCTION_ID]",
|
||||
name = "[NAME]",
|
||||
execute = listOf(),
|
||||
execute = listOf("role:all"),
|
||||
runtime = "node-14.5",
|
||||
new Continuation<Response>() {
|
||||
@NotNull
|
||||
|
|
|
@ -11,7 +11,7 @@ public void main() {
|
|||
functions.update(
|
||||
functionId = "[FUNCTION_ID]",
|
||||
name = "[NAME]",
|
||||
execute = listOf(),
|
||||
execute = listOf("role:all"),
|
||||
new Continuation<Response>() {
|
||||
@NotNull
|
||||
@Override
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import io.appwrite.Client
|
||||
import io.appwrite.models.InputFile
|
||||
import io.appwrite.services.Storage
|
||||
|
||||
public void main() {
|
||||
|
|
|
@ -12,8 +12,8 @@ suspend fun main() {
|
|||
collectionId = "[COLLECTION_ID]",
|
||||
name = "[NAME]",
|
||||
permission = "document",
|
||||
read = ["role:all"],
|
||||
write = ["role:all"]
|
||||
read = listOf("role:all"),
|
||||
write = listOf("role:all")
|
||||
)
|
||||
val json = response.body?.string()
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
import io.appwrite.Client
|
||||
import io.appwrite.models.InputFile
|
||||
import io.appwrite.services.Functions
|
||||
|
||||
suspend fun main() {
|
||||
|
|
|
@ -11,7 +11,7 @@ suspend fun main() {
|
|||
val response = functions.create(
|
||||
functionId = "[FUNCTION_ID]",
|
||||
name = "[NAME]",
|
||||
execute = listOf(),
|
||||
execute = listOf("role:all"),
|
||||
runtime = "node-14.5",
|
||||
)
|
||||
val json = response.body?.string()
|
||||
|
|
|
@ -11,7 +11,7 @@ suspend fun main() {
|
|||
val response = functions.update(
|
||||
functionId = "[FUNCTION_ID]",
|
||||
name = "[NAME]",
|
||||
execute = listOf(),
|
||||
execute = listOf("role:all"),
|
||||
)
|
||||
val json = response.body?.string()
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
import io.appwrite.Client
|
||||
import io.appwrite.models.InputFile
|
||||
import io.appwrite.services.Storage
|
||||
|
||||
suspend fun main() {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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'));
|
|
@ -1,4 +1,5 @@
|
|||
from appwrite.client import Client
|
||||
from appwrite.input_file import InputFile
|
||||
from appwrite.services.functions import Functions
|
||||
|
||||
client = Client()
|
||||
|
|
|
@ -11,4 +11,4 @@ client = Client()
|
|||
|
||||
functions = Functions(client)
|
||||
|
||||
result = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5')
|
||||
result = functions.create('[FUNCTION_ID]', '[NAME]', ["role:all"], 'node-14.5')
|
||||
|
|
|
@ -11,4 +11,4 @@ client = Client()
|
|||
|
||||
functions = Functions(client)
|
||||
|
||||
result = functions.update('[FUNCTION_ID]', '[NAME]', [])
|
||||
result = functions.update('[FUNCTION_ID]', '[NAME]', ["role:all"])
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
from appwrite.client import Client
|
||||
from appwrite.input_file import InputFile
|
||||
from appwrite.services.storage import Storage
|
||||
|
||||
client = Client()
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create_boolean_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]', permission: 'document', read: ["role:all"], write: ["role:all"])
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {})
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create_email_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create_enum_attribute(collection_id: '[COLLECTION_ID]', key: '', elements: [], required: false)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create_float_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create_index(collection_id: '[COLLECTION_ID]', key: '', type: 'key', attributes: [])
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create_integer_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create_ip_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create_string_attribute(collection_id: '[COLLECTION_ID]', key: '', size: 1, required: false)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create_url_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.create(name: '[NAME]')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.delete_attribute(collection_id: '[COLLECTION_ID]', key: '')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.delete_collection(collection_id: '[COLLECTION_ID]')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.delete_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.delete_index(collection_id: '[COLLECTION_ID]', key: '')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.delete()
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.get_attribute(collection_id: '[COLLECTION_ID]', key: '')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.get_collection(collection_id: '[COLLECTION_ID]')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.get_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.get_index(collection_id: '[COLLECTION_ID]', key: '')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.get()
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.list_attributes(collection_id: '[COLLECTION_ID]')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.list_collections()
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.list_documents(collection_id: '[COLLECTION_ID]')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.list_indexes(collection_id: '[COLLECTION_ID]')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.list()
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.update_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]', permission: 'document')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.update_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ client
|
|||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
|
||||
databases = Appwrite::Databases.new(client, '[DATABASE_ID]')
|
||||
databases = Appwrite::Databases.new(client, database_id:'[DATABASE_ID]')
|
||||
|
||||
response = databases.update(name: '[NAME]')
|
||||
|
||||
|
|
|
@ -9,6 +9,6 @@ client
|
|||
|
||||
functions = Appwrite::Functions.new(client)
|
||||
|
||||
response = functions.create_deployment(function_id: '[FUNCTION_ID]', entrypoint: '[ENTRYPOINT]', code: InputFile.fromPath('dir/file.png'), activate: false)
|
||||
response = functions.create_deployment(function_id: '[FUNCTION_ID]', entrypoint: '[ENTRYPOINT]', code: Appwrite::InputFile.from_path('dir/file.png'), activate: false)
|
||||
|
||||
puts response.inspect
|
|
@ -9,6 +9,6 @@ client
|
|||
|
||||
functions = Appwrite::Functions.new(client)
|
||||
|
||||
response = functions.create(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: [], runtime: 'node-14.5')
|
||||
response = functions.create(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: ["role:all"], runtime: 'node-14.5')
|
||||
|
||||
puts response.inspect
|
|
@ -9,6 +9,6 @@ client
|
|||
|
||||
functions = Appwrite::Functions.new(client)
|
||||
|
||||
response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: [])
|
||||
response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: ["role:all"])
|
||||
|
||||
puts response.inspect
|
|
@ -1,6 +1,7 @@
|
|||
require 'appwrite'
|
||||
|
||||
client = Appwrite::Client.new
|
||||
InputFile = Appwrite::InputFile
|
||||
|
||||
client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
|
@ -9,6 +10,6 @@ client
|
|||
|
||||
storage = Appwrite::Storage.new(client)
|
||||
|
||||
response = storage.create_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]', file: InputFile.fromPath('dir/file.png'))
|
||||
response = storage.create_file(bucket_id: '[BUCKET_ID]', file_id: '[FILE_ID]', file: Appwrite::InputFile.from_path('dir/file.png'))
|
||||
|
||||
puts response.inspect
|
|
@ -9,7 +9,7 @@ func main() async throws {
|
|||
let function = try await functions.create(
|
||||
functionId: "[FUNCTION_ID]",
|
||||
name: "[NAME]",
|
||||
execute: [],
|
||||
execute: ["role:all"],
|
||||
runtime: "node-14.5"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@ func main() async throws {
|
|||
.setProject("5df5acd0d48c2") // Your project ID
|
||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
let functions = Functions(client)
|
||||
let deploymentList = try await functions.getDeployment(
|
||||
let deployment = try await functions.getDeployment(
|
||||
functionId: "[FUNCTION_ID]",
|
||||
deploymentId: "[DEPLOYMENT_ID]"
|
||||
)
|
||||
|
||||
print(String(describing: deploymentList)
|
||||
print(String(describing: deployment)
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ func main() async throws {
|
|||
let function = try await functions.update(
|
||||
functionId: "[FUNCTION_ID]",
|
||||
name: "[NAME]",
|
||||
execute: []
|
||||
execute: ["role:all"]
|
||||
)
|
||||
|
||||
print(String(describing: function)
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
## 6.0.1
|
||||
* Dependency upgrades
|
||||
* Doc comments updates
|
||||
* Cleanup code
|
||||
|
||||
## 6.0.0
|
||||
* Support for Appwrite 0.15
|
||||
* **BREAKING** `Database` -> `Databases`
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
## 7.0.0
|
||||
* **BREAKING** Switched to using [flutter_web_auth_2](https://pub.dev/packages/flutter_web_auth_2), check Getting Started section in Readme for changes (Android and Web will require adjustments for OAuth to work properly)
|
||||
* Fixes Concurrent modification issue
|
||||
* Upgrade dependencies
|
||||
* **Windows** support for OAuth sessions
|
||||
|
||||
## 6.0.0
|
||||
* Support for Appwrite 0.15
|
||||
* **NEW** Phone authentication `account.createPhoneSession()`
|
||||
|
|
|
@ -18,8 +18,8 @@ In order to capture the Appwrite OAuth callback url, the following activity need
|
|||
<application ...>
|
||||
....
|
||||
<!-- Add this inside the <application> tag, along side the existing <activity> tags -->
|
||||
<activity android:name="com.linusu.flutter_web_auth.CallbackActivity" >
|
||||
<intent-filter android:label="flutter_web_auth">
|
||||
<activity android:name="com.linusu.flutter_web_auth_2.CallbackActivity" >
|
||||
<intent-filter android:label="flutter_web_auth_2">
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
|
@ -58,7 +58,7 @@ For web in order to capture the OAuth2 callback URL and send it to the applicati
|
|||
close the window.
|
||||
<script>
|
||||
window.opener.postMessage({
|
||||
flutter-web-auth: window.location.href
|
||||
flutter-web-auth2: window.location.href
|
||||
}, window.location.origin);
|
||||
window.close();
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue