Updated examples
This commit is contained in:
parent
5e1ff7396e
commit
b23d2bf6e4
10 changed files with 60 additions and 56 deletions
|
@ -56,7 +56,7 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"swoole/ide-helper": "4.5.5",
|
"swoole/ide-helper": "4.5.5",
|
||||||
"appwrite/sdk-generator": "0.3.3",
|
"appwrite/sdk-generator": "0.4.2",
|
||||||
"phpunit/phpunit": "9.4.2",
|
"phpunit/phpunit": "9.4.2",
|
||||||
"vimeo/psalm": "4.1.1"
|
"vimeo/psalm": "4.1.1"
|
||||||
},
|
},
|
||||||
|
|
98
composer.lock
generated
98
composer.lock
generated
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "2dee8b75780ba88fd7da28d08d691998",
|
"content-hash": "0df79d7789fec84aa4500edad823f1f6",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "appwrite/php-clamav",
|
"name": "appwrite/php-clamav",
|
||||||
|
@ -131,16 +131,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "chillerlan/php-settings-container",
|
"name": "chillerlan/php-settings-container",
|
||||||
"version": "2.1.0",
|
"version": "2.1.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/chillerlan/php-settings-container.git",
|
"url": "https://github.com/chillerlan/php-settings-container.git",
|
||||||
"reference": "90ab24a3dc09569bfa0f3dbc3d44bab3aaa2a6c5"
|
"reference": "98ccc1b31b31a53bcb563465c4961879b2b93096"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/90ab24a3dc09569bfa0f3dbc3d44bab3aaa2a6c5",
|
"url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/98ccc1b31b31a53bcb563465c4961879b2b93096",
|
||||||
"reference": "90ab24a3dc09569bfa0f3dbc3d44bab3aaa2a6c5",
|
"reference": "98ccc1b31b31a53bcb563465c4961879b2b93096",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -148,8 +148,8 @@
|
||||||
"php": "^7.4 || ^8.0"
|
"php": "^7.4 || ^8.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phan/phan": "^3.2.2",
|
"phan/phan": "^4.0",
|
||||||
"phpunit/phpunit": "9.4"
|
"phpunit/phpunit": "^9.5"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -181,12 +181,16 @@
|
||||||
"source": "https://github.com/chillerlan/php-settings-container"
|
"source": "https://github.com/chillerlan/php-settings-container"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
|
{
|
||||||
|
"url": "https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4",
|
||||||
|
"type": "custom"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"url": "https://ko-fi.com/codemasher",
|
"url": "https://ko-fi.com/codemasher",
|
||||||
"type": "ko_fi"
|
"type": "ko_fi"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-10-07T13:18:35+00:00"
|
"time": "2021-01-06T15:57:03+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "colinmollenhour/credis",
|
"name": "colinmollenhour/credis",
|
||||||
|
@ -1858,11 +1862,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "appwrite/sdk-generator",
|
"name": "appwrite/sdk-generator",
|
||||||
"version": "0.3.3",
|
"version": "0.4.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/appwrite/sdk-generator",
|
"url": "https://github.com/appwrite/sdk-generator",
|
||||||
"reference": "7530820a1ee824874d89749c51b0e49d15595abc"
|
"reference": "5482f4cdb65ab90ffea752ba9a625187cd7c7784"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
|
@ -1892,7 +1896,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
||||||
"time": "2021-01-05T17:58:17+00:00"
|
"time": "2021-01-07T14:03:54+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "composer/package-versions-deprecated",
|
"name": "composer/package-versions-deprecated",
|
||||||
|
@ -2323,16 +2327,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "matthiasmullie/minify",
|
"name": "matthiasmullie/minify",
|
||||||
"version": "1.3.65",
|
"version": "1.3.66",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/matthiasmullie/minify.git",
|
"url": "https://github.com/matthiasmullie/minify.git",
|
||||||
"reference": "227f19062451c55a797e0cc667ef983834e6580c"
|
"reference": "45fd3b0f1dfa2c965857c6d4a470bea52adc31a6"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/matthiasmullie/minify/zipball/227f19062451c55a797e0cc667ef983834e6580c",
|
"url": "https://api.github.com/repos/matthiasmullie/minify/zipball/45fd3b0f1dfa2c965857c6d4a470bea52adc31a6",
|
||||||
"reference": "227f19062451c55a797e0cc667ef983834e6580c",
|
"reference": "45fd3b0f1dfa2c965857c6d4a470bea52adc31a6",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -2342,8 +2346,8 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"friendsofphp/php-cs-fixer": "~2.0",
|
"friendsofphp/php-cs-fixer": "~2.0",
|
||||||
"matthiasmullie/scrapbook": "~1.0",
|
"matthiasmullie/scrapbook": "dev-master",
|
||||||
"phpunit/phpunit": "~4.8"
|
"phpunit/phpunit": ">=4.8"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"psr/cache-implementation": "Cache implementation to use with Minify::cache"
|
"psr/cache-implementation": "Cache implementation to use with Minify::cache"
|
||||||
|
@ -2381,7 +2385,7 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/matthiasmullie/minify/issues",
|
"issues": "https://github.com/matthiasmullie/minify/issues",
|
||||||
"source": "https://github.com/matthiasmullie/minify/tree/1.3.65"
|
"source": "https://github.com/matthiasmullie/minify/tree/1.3.66"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -2397,7 +2401,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-12-27T21:43:29+00:00"
|
"time": "2021-01-06T15:18:10+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "matthiasmullie/path-converter",
|
"name": "matthiasmullie/path-converter",
|
||||||
|
@ -4513,12 +4517,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/console.git",
|
"url": "https://github.com/symfony/console.git",
|
||||||
"reference": "af2bafc13cb92e182bf634285346925e09888d23"
|
"reference": "da4c3663721420520b024e5aede66b813019e744"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/console/zipball/af2bafc13cb92e182bf634285346925e09888d23",
|
"url": "https://api.github.com/repos/symfony/console/zipball/da4c3663721420520b024e5aede66b813019e744",
|
||||||
"reference": "af2bafc13cb92e182bf634285346925e09888d23",
|
"reference": "da4c3663721420520b024e5aede66b813019e744",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -4603,7 +4607,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-01-05T19:51:30+00:00"
|
"time": "2021-01-05T20:16:44+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-ctype",
|
"name": "symfony/polyfill-ctype",
|
||||||
|
@ -4611,12 +4615,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-ctype.git",
|
"url": "https://github.com/symfony/polyfill-ctype.git",
|
||||||
"reference": "7130f348df2f842044038aaae9d6653dc9d67649"
|
"reference": "7c0a3c5420fd802637c4260e595d6c674b23d578"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/7130f348df2f842044038aaae9d6653dc9d67649",
|
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/7c0a3c5420fd802637c4260e595d6c674b23d578",
|
||||||
"reference": "7130f348df2f842044038aaae9d6653dc9d67649",
|
"reference": "7c0a3c5420fd802637c4260e595d6c674b23d578",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -4683,7 +4687,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-12-27T09:28:48+00:00"
|
"time": "2021-01-06T10:19:43+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-intl-grapheme",
|
"name": "symfony/polyfill-intl-grapheme",
|
||||||
|
@ -4691,12 +4695,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
|
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
|
||||||
"reference": "e314d4992832c3a0a68ca731fadd959917320fda"
|
"reference": "32b651134d58efe1786c95352d846913a42d8331"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/e314d4992832c3a0a68ca731fadd959917320fda",
|
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32b651134d58efe1786c95352d846913a42d8331",
|
||||||
"reference": "e314d4992832c3a0a68ca731fadd959917320fda",
|
"reference": "32b651134d58efe1786c95352d846913a42d8331",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -4765,7 +4769,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-12-27T09:28:48+00:00"
|
"time": "2021-01-06T10:19:43+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-intl-normalizer",
|
"name": "symfony/polyfill-intl-normalizer",
|
||||||
|
@ -4773,12 +4777,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
||||||
"reference": "3a79a2226897adae0cab81688fbc5144e2fc53f6"
|
"reference": "8592bf62da8352927fc3857484e84baacddec301"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3a79a2226897adae0cab81688fbc5144e2fc53f6",
|
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8592bf62da8352927fc3857484e84baacddec301",
|
||||||
"reference": "3a79a2226897adae0cab81688fbc5144e2fc53f6",
|
"reference": "8592bf62da8352927fc3857484e84baacddec301",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -4850,7 +4854,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-12-27T22:11:44+00:00"
|
"time": "2021-01-06T10:19:43+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-mbstring",
|
"name": "symfony/polyfill-mbstring",
|
||||||
|
@ -4858,12 +4862,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||||
"reference": "de14691dc88bbbc5535de7f0e32080977dc1d23f"
|
"reference": "ec0101071dcbc6bdd5046da11df686f8515fa815"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/de14691dc88bbbc5535de7f0e32080977dc1d23f",
|
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/ec0101071dcbc6bdd5046da11df686f8515fa815",
|
||||||
"reference": "de14691dc88bbbc5535de7f0e32080977dc1d23f",
|
"reference": "ec0101071dcbc6bdd5046da11df686f8515fa815",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -4931,7 +4935,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-12-27T09:28:48+00:00"
|
"time": "2021-01-06T10:19:43+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-php73",
|
"name": "symfony/polyfill-php73",
|
||||||
|
@ -4939,12 +4943,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-php73.git",
|
"url": "https://github.com/symfony/polyfill-php73.git",
|
||||||
"reference": "8c0d39c1526009b97f43beea4cc685bbc353a70b"
|
"reference": "6d0e293e2b13580b866090a135900aea4adcb308"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/8c0d39c1526009b97f43beea4cc685bbc353a70b",
|
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/6d0e293e2b13580b866090a135900aea4adcb308",
|
||||||
"reference": "8c0d39c1526009b97f43beea4cc685bbc353a70b",
|
"reference": "6d0e293e2b13580b866090a135900aea4adcb308",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -5011,7 +5015,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-10-26T13:35:45+00:00"
|
"time": "2021-01-06T10:19:43+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-php80",
|
"name": "symfony/polyfill-php80",
|
||||||
|
@ -5019,12 +5023,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-php80.git",
|
"url": "https://github.com/symfony/polyfill-php80.git",
|
||||||
"reference": "54cc82c30ba7ed02bc64f5d010488c159b5f1706"
|
"reference": "69e5da91ad9c080f6ac1e010ddffefe71b14bd6e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/54cc82c30ba7ed02bc64f5d010488c159b5f1706",
|
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/69e5da91ad9c080f6ac1e010ddffefe71b14bd6e",
|
||||||
"reference": "54cc82c30ba7ed02bc64f5d010488c159b5f1706",
|
"reference": "69e5da91ad9c080f6ac1e010ddffefe71b14bd6e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -5095,7 +5099,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-12-27T09:28:48+00:00"
|
"time": "2021-01-06T10:19:43+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/service-contracts",
|
"name": "symfony/service-contracts",
|
||||||
|
|
|
@ -10,4 +10,4 @@ client
|
||||||
|
|
||||||
Database database = new Database(client);
|
Database database = new Database(client);
|
||||||
|
|
||||||
HttpResponseMessage result = await database.CreateCollection("[NAME]", {}, {}, {});
|
HttpResponseMessage result = await database.CreateCollection("[NAME]", [List<object>], [List<object>], [List<object>]);
|
||||||
|
|
|
@ -10,4 +10,4 @@ client
|
||||||
|
|
||||||
Database database = new Database(client);
|
Database database = new Database(client);
|
||||||
|
|
||||||
HttpResponseMessage result = await database.CreateDocument("[COLLECTION_ID]", {}, {}, {});
|
HttpResponseMessage result = await database.CreateDocument("[COLLECTION_ID]", [object], [List<object>], [List<object>]);
|
||||||
|
|
|
@ -10,4 +10,4 @@ client
|
||||||
|
|
||||||
Database database = new Database(client);
|
Database database = new Database(client);
|
||||||
|
|
||||||
HttpResponseMessage result = await database.UpdateCollection("[COLLECTION_ID]", "[NAME]", {}, {});
|
HttpResponseMessage result = await database.UpdateCollection("[COLLECTION_ID]", "[NAME]", [List<object>], [List<object>]);
|
||||||
|
|
|
@ -10,4 +10,4 @@ client
|
||||||
|
|
||||||
Database database = new Database(client);
|
Database database = new Database(client);
|
||||||
|
|
||||||
HttpResponseMessage result = await database.UpdateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", {}, {}, {});
|
HttpResponseMessage result = await database.UpdateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", [object], [List<object>], [List<object>]);
|
||||||
|
|
|
@ -10,4 +10,4 @@ client
|
||||||
|
|
||||||
Storage storage = new Storage(client);
|
Storage storage = new Storage(client);
|
||||||
|
|
||||||
HttpResponseMessage result = await storage.CreateFile(new File("./path-to-files/image.jpg"), {}, {});
|
HttpResponseMessage result = await storage.CreateFile(new File("./path-to-files/image.jpg"), [List<object>], [List<object>]);
|
||||||
|
|
|
@ -10,4 +10,4 @@ client
|
||||||
|
|
||||||
Storage storage = new Storage(client);
|
Storage storage = new Storage(client);
|
||||||
|
|
||||||
HttpResponseMessage result = await storage.UpdateFile("[FILE_ID]", {}, {});
|
HttpResponseMessage result = await storage.UpdateFile("[FILE_ID]", [List<object>], [List<object>]);
|
||||||
|
|
|
@ -10,4 +10,4 @@ client
|
||||||
|
|
||||||
Teams teams = new Teams(client);
|
Teams teams = new Teams(client);
|
||||||
|
|
||||||
HttpResponseMessage result = await teams.CreateMembership("[TEAM_ID]", "email@example.com", {}, "https://example.com");
|
HttpResponseMessage result = await teams.CreateMembership("[TEAM_ID]", "email@example.com", [List<object>], "https://example.com");
|
||||||
|
|
|
@ -10,4 +10,4 @@ client
|
||||||
|
|
||||||
Users users = new Users(client);
|
Users users = new Users(client);
|
||||||
|
|
||||||
HttpResponseMessage result = await users.UpdatePrefs("[USER_ID]", {});
|
HttpResponseMessage result = await users.UpdatePrefs("[USER_ID]", [object]);
|
||||||
|
|
Loading…
Reference in a new issue