1
0
Fork 0
mirror of synced 2024-04-30 02:42:40 +12:00

Merge branch 'feat-database-indexing' of https://github.com/appwrite/appwrite into feat-database-indexing

This commit is contained in:
Torsten Dittmann 2022-01-04 15:29:23 +01:00
commit d229564383
134 changed files with 194 additions and 175 deletions

View file

@ -15,7 +15,7 @@ return [
[
'key' => 'web',
'name' => 'Web',
'version' => '5.0.0',
'version' => '6.0.0',
'url' => 'https://github.com/appwrite/sdk-for-web',
'package' => 'https://www.npmjs.com/package/appwrite',
'enabled' => true,
@ -63,7 +63,7 @@ return [
[
'key' => 'flutter',
'name' => 'Flutter',
'version' => '2.1.0',
'version' => '3.0.0',
'url' => 'https://github.com/appwrite/sdk-for-flutter',
'package' => 'https://pub.dev/packages/appwrite',
'enabled' => true,
@ -81,7 +81,7 @@ return [
[
'key' => 'apple',
'name' => 'Apple',
'version' => '0.1.1',
'version' => '0.2.0',
'url' => 'https://github.com/appwrite/sdk-for-apple',
'package' => 'https://github.com/appwrite/sdk-for-apple',
'enabled' => true,
@ -116,7 +116,7 @@ return [
[
'key' => 'android',
'name' => 'Android',
'version' => '0.2.1',
'version' => '0.3.0',
'url' => 'https://github.com/appwrite/sdk-for-android',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
'enabled' => true,
@ -190,7 +190,7 @@ return [
[
'key' => 'nodejs',
'name' => 'Node.js',
'version' => '3.0.0',
'version' => '4.0.0',
'url' => 'https://github.com/appwrite/sdk-for-node',
'package' => 'https://www.npmjs.com/package/node-appwrite',
'enabled' => true,
@ -208,7 +208,7 @@ return [
[
'key' => 'deno',
'name' => 'Deno',
'version' => '1.0.0',
'version' => '2.0.0',
'url' => 'https://github.com/appwrite/sdk-for-deno',
'package' => 'https://deno.land/x/appwrite',
'enabled' => true,
@ -226,7 +226,7 @@ return [
[
'key' => 'php',
'name' => 'PHP',
'version' => '2.3.2',
'version' => '3.0.0',
'url' => 'https://github.com/appwrite/sdk-for-php',
'package' => 'https://packagist.org/packages/appwrite/appwrite',
'enabled' => true,
@ -244,7 +244,7 @@ return [
[
'key' => 'python',
'name' => 'Python',
'version' => '0.5.1',
'version' => '0.6.0',
'url' => 'https://github.com/appwrite/sdk-for-python',
'package' => 'https://pypi.org/project/appwrite/',
'enabled' => true,
@ -262,7 +262,7 @@ return [
[
'key' => 'ruby',
'name' => 'Ruby',
'version' => '2.4.1',
'version' => '3.0.0',
'url' => 'https://github.com/appwrite/sdk-for-ruby',
'package' => 'https://rubygems.org/gems/appwrite',
'enabled' => true,
@ -316,7 +316,7 @@ return [
[
'key' => 'dotnet',
'name' => '.NET',
'version' => '0.3.0',
'version' => '0.4.0',
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
'package' => 'https://www.nuget.org/packages/Appwrite',
'enabled' => false,
@ -334,7 +334,7 @@ return [
[
'key' => 'dart',
'name' => 'Dart',
'version' => '2.0.0',
'version' => '3.0.0',
'url' => 'https://github.com/appwrite/sdk-for-dart',
'package' => 'https://pub.dev/packages/dart_appwrite',
'enabled' => true,
@ -352,7 +352,7 @@ return [
[
'key' => 'cli',
'name' => 'Command Line',
'version' => '0.12.1',
'version' => '0.13.0',
'url' => 'https://github.com/appwrite/sdk-for-cli',
'package' => 'https://github.com/appwrite/sdk-for-cli',
'enabled' => true,
@ -370,7 +370,7 @@ return [
[
'key' => 'kotlin',
'name' => 'Kotlin',
'version' => '0.1.1',
'version' => '0.2.0',
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
'enabled' => true,
@ -392,7 +392,7 @@ return [
[
'key' => 'swift',
'name' => 'Swift',
'version' => '0.1.0',
'version' => '0.2.0',
'url' => 'https://github.com/appwrite/sdk-for-swift',
'package' => 'https://github.com/appwrite/sdk-for-swift',
'enabled' => true,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -353,6 +353,7 @@ $logs = $this->getParam('logs', null);
<span data-ls-if="{{index.status}} == 'processing'" class="text-size-small text-info">processing&nbsp;</span>
<span data-ls-if="{{index.status}} == 'failed'" class="text-size-small text-danger">failed&nbsp;</span>
<span data-ls-if="{{index.status}} == 'deleting'" class="text-size-small text-danger">deleting&nbsp;</span>
<span data-ls-if="{{index.status}} == 'stuck'" class="text-size-small text-danger">stuck&nbsp;</span>
</td>
<td data-title="Index Key: ">

View file

@ -19,7 +19,7 @@ public class MainActivity extends AppCompatActivity {
Account account = new Account(client);
account.createMagicURLSession(
"",
"[USER_ID]",
"email@example.com",
new Continuation<Object>() {
@NotNull

View file

@ -19,7 +19,7 @@ public class MainActivity extends AppCompatActivity {
Account account = new Account(client);
account.create(
"",
"[USER_ID]",
"email@example.com",
"password",
new Continuation<Object>() {

View file

@ -19,7 +19,7 @@ public class MainActivity extends AppCompatActivity {
Account account = new Account(client);
account.updateMagicURLSession(
"",
"[USER_ID]",
"[SECRET]"
new Continuation<Object>() {
@NotNull

View file

@ -20,7 +20,7 @@ public class MainActivity extends AppCompatActivity {
database.createDocument(
"[COLLECTION_ID]",
"",
"[DOCUMENT_ID]",
mapOf( "a" to "b" ),
new Continuation<Object>() {
@NotNull

View file

@ -19,7 +19,7 @@ public class MainActivity extends AppCompatActivity {
Storage storage = new Storage(client);
storage.createFile(
"",
"[FILE_ID]",
File("./path-to-files/image.jpg"),
new Continuation<Object>() {
@NotNull

View file

@ -19,7 +19,7 @@ public class MainActivity extends AppCompatActivity {
Teams teams = new Teams(client);
teams.create(
"",
"[TEAM_ID]",
"[NAME]",
new Continuation<Object>() {
@NotNull

View file

@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
GlobalScope.launch {
val response = account.createMagicURLSession(
userId = "",
userId = "[USER_ID]",
email = "email@example.com",
)
val json = response.body?.string()

View file

@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
GlobalScope.launch {
val response = account.create(
userId = "",
userId = "[USER_ID]",
email = "email@example.com",
password = "password",
)

View file

@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
GlobalScope.launch {
val response = account.updateMagicURLSession(
userId = "",
userId = "[USER_ID]",
secret = "[SECRET]"
)
val json = response.body?.string()

View file

@ -19,7 +19,7 @@ class MainActivity : AppCompatActivity() {
GlobalScope.launch {
val response = database.createDocument(
collectionId = "[COLLECTION_ID]",
documentId = "",
documentId = "[DOCUMENT_ID]",
data = mapOf( "a" to "b" ),
)
val json = response.body?.string()

View file

@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
GlobalScope.launch {
val response = storage.createFile(
fileId = "",
fileId = "[FILE_ID]",
file = File("./path-to-files/image.jpg"),
)
val json = response.body?.string()

View file

@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
GlobalScope.launch {
val response = teams.create(
teamId = "",
teamId = "[TEAM_ID]",
name = "[NAME]",
)
val json = response.body?.string()

View file

@ -7,7 +7,7 @@ func main() {
let account = Account(client)
account.createMagicURLSession(
userId: "",
userId: "[USER_ID]",
email: "email@example.com"
) { result in
switch result {

View file

@ -7,7 +7,7 @@ func main() {
let account = Account(client)
account.create(
userId: "",
userId: "[USER_ID]",
email: "email@example.com",
password: "password"
) { result in

View file

@ -7,7 +7,7 @@ func main() {
let account = Account(client)
account.updateMagicURLSession(
userId: "",
userId: "[USER_ID]",
secret: "[SECRET]"
) { result in
switch result {

View file

@ -8,7 +8,7 @@ func main() {
let database = Database(client)
database.createDocument(
collectionId: "[COLLECTION_ID]",
documentId: "",
documentId: "[DOCUMENT_ID]",
data:
) { result in
switch result {

View file

@ -7,7 +7,7 @@ func main() {
let storage = Storage(client)
storage.createFile(
fileId: "",
fileId: "[FILE_ID]",
file: File(name: "image.jpg", buffer: yourByteBuffer)
) { result in
switch result {

View file

@ -7,7 +7,7 @@ func main() {
let teams = Teams(client)
teams.create(
teamId: "",
teamId: "[TEAM_ID]",
name: "[NAME]"
) { result in
switch result {

View file

@ -9,7 +9,7 @@ void main() { // Init SDK
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = account.createMagicURLSession(
userId: '',
userId: '[USER_ID]',
email: 'email@example.com',
);

View file

@ -9,7 +9,7 @@ void main() { // Init SDK
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = account.create(
userId: '',
userId: '[USER_ID]',
email: 'email@example.com',
password: 'password',
);

View file

@ -9,7 +9,7 @@ void main() { // Init SDK
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = account.updateMagicURLSession(
userId: '',
userId: '[USER_ID]',
secret: '[SECRET]',
);

View file

@ -10,7 +10,7 @@ void main() { // Init SDK
;
Future result = database.createDocument(
collectionId: '[COLLECTION_ID]',
documentId: '',
documentId: '[DOCUMENT_ID]',
data: {},
);

View file

@ -10,7 +10,7 @@ void main() { // Init SDK
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = storage.createFile(
fileId: '',
fileId: '[FILE_ID]',
file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'),
);

View file

@ -9,7 +9,7 @@ void main() { // Init SDK
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = teams.create(
teamId: '',
teamId: '[TEAM_ID]',
name: '[NAME]',
);

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.createMagicURLSession('', 'email@example.com');
let promise = sdk.account.createMagicURLSession('[USER_ID]', 'email@example.com');
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.create('', 'email@example.com', 'password');
let promise = sdk.account.create('[USER_ID]', 'email@example.com', 'password');
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updateMagicURLSession('', '[SECRET]');
let promise = sdk.account.updateMagicURLSession('[USER_ID]', '[SECRET]');
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.database.createDocument('[COLLECTION_ID]', '', {});
let promise = sdk.database.createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {});
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.storage.createFile('', document.getElementById('uploader').files[0]);
let promise = sdk.storage.createFile('[FILE_ID]', document.getElementById('uploader').files[0]);
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.create('', '[NAME]');
let promise = sdk.teams.create('[TEAM_ID]', '[NAME]');
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.createMagicURLSession('', 'email@example.com');
let promise = sdk.account.createMagicURLSession('[USER_ID]', 'email@example.com');
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.create('', 'email@example.com', 'password');
let promise = sdk.account.create('[USER_ID]', 'email@example.com', 'password');
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updateMagicURLSession('', '[SECRET]');
let promise = sdk.account.updateMagicURLSession('[USER_ID]', '[SECRET]');
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.database.createCollection('', '[NAME]', 'document', ["role:all"], ["role:all"]);
let promise = sdk.database.createCollection('[COLLECTION_ID]', '[NAME]', 'document', ["role:all"], ["role:all"]);
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.database.createDocument('[COLLECTION_ID]', '', {});
let promise = sdk.database.createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {});
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.functions.create('', '[NAME]', [], 'node-14.5');
let promise = sdk.functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5');
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.projects.create('', '[NAME]', '[TEAM_ID]');
let promise = sdk.projects.create('[PROJECT_ID]', '[NAME]', '[TEAM_ID]');
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.storage.createFile('', document.getElementById('uploader').files[0]);
let promise = sdk.storage.createFile('[FILE_ID]', document.getElementById('uploader').files[0]);
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.create('', '[NAME]');
let promise = sdk.teams.create('[TEAM_ID]', '[NAME]');
promise.then(function (response) {
console.log(response); // Success

View file

@ -5,7 +5,7 @@ sdk
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.users.create('', 'email@example.com', 'password');
let promise = sdk.users.create('[USER_ID]', 'email@example.com', 'password');
promise.then(function (response) {
console.log(response); // Success

View file

@ -1,5 +1,5 @@
appwrite database createCollection \
--collectionId="" \
--collectionId="[COLLECTION_ID]" \
--name="[NAME]" \
--permission="document" \
--read="[&quot;role:all&quot;]" \

View file

@ -1,6 +1,6 @@
appwrite database createDocument \
--collectionId="[COLLECTION_ID]" \
--documentId="" \
--documentId="[DOCUMENT_ID]" \
--data="{}" \
--read="[&quot;role:all&quot;]" \
--write="[&quot;role:all&quot;]"

View file

@ -1,5 +1,5 @@
appwrite functions create \
--functionId="" \
--functionId="[FUNCTION_ID]" \
--name="[NAME]" \
--execute="" \
--runtime="node-14.5" \

View file

@ -1,5 +1,5 @@
appwrite storage createFile \
--fileId="" \
--fileId="[FILE_ID]" \
--file="" \
--read="" \
--write=""

View file

@ -1,4 +1,4 @@
appwrite teams create \
--teamId="" \
--teamId="[TEAM_ID]" \
--name="[NAME]" \
--roles=""

View file

@ -1,5 +1,5 @@
appwrite users create \
--userId="" \
--userId="[USER_ID]" \
--email="email@example.com" \
--password="password" \
--name="[NAME]"

View file

@ -11,7 +11,7 @@ void main() { // Init SDK
;
Future result = database.createCollection(
collectionId: '',
collectionId: '[COLLECTION_ID]',
name: '[NAME]',
permission: 'document',
read: ["role:all"],

View file

@ -12,7 +12,7 @@ void main() { // Init SDK
Future result = database.createDocument(
collectionId: '[COLLECTION_ID]',
documentId: '',
documentId: '[DOCUMENT_ID]',
data: {},
);

View file

@ -11,7 +11,7 @@ void main() { // Init SDK
;
Future result = functions.create(
functionId: '',
functionId: '[FUNCTION_ID]',
name: '[NAME]',
execute: [],
runtime: 'node-14.5',

View file

@ -12,7 +12,7 @@ void main() { // Init SDK
;
Future result = storage.createFile(
fileId: '',
fileId: '[FILE_ID]',
file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'),
);

View file

@ -11,7 +11,7 @@ void main() { // Init SDK
;
Future result = teams.create(
teamId: '',
teamId: '[TEAM_ID]',
name: '[NAME]',
);

View file

@ -11,7 +11,7 @@ void main() { // Init SDK
;
Future result = users.create(
userId: '',
userId: '[USER_ID]',
email: 'email@example.com',
password: 'password',
);

View file

@ -12,7 +12,7 @@ client
;
let promise = database.createCollection('', '[NAME]', 'document', ["role:all"], ["role:all"]);
let promise = database.createCollection('[COLLECTION_ID]', '[NAME]', 'document', ["role:all"], ["role:all"]);
promise.then(function (response) {
console.log(response);

View file

@ -12,7 +12,7 @@ client
;
let promise = database.createDocument('[COLLECTION_ID]', '', {});
let promise = database.createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {});
promise.then(function (response) {
console.log(response);

View file

@ -12,7 +12,7 @@ client
;
let promise = functions.create('', '[NAME]', [], 'node-14.5');
let promise = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5');
promise.then(function (response) {
console.log(response);

View file

@ -12,7 +12,7 @@ client
;
let promise = storage.createFile('', new File([fileBlob], 'file.png'));
let promise = storage.createFile('[FILE_ID]', new File([fileBlob], 'file.png'));
promise.then(function (response) {
console.log(response);

View file

@ -12,7 +12,7 @@ client
;
let promise = teams.create('', '[NAME]');
let promise = teams.create('[TEAM_ID]', '[NAME]');
promise.then(function (response) {
console.log(response);

View file

@ -12,7 +12,7 @@ client
;
let promise = users.create('', 'email@example.com', 'password');
let promise = users.create('[USER_ID]', 'email@example.com', 'password');
promise.then(function (response) {
console.log(response);

View file

@ -9,7 +9,7 @@ public void main() {
Database database = new Database(client);
database.createCollection(
collectionId = "",
collectionId = "[COLLECTION_ID]",
name = "[NAME]",
permission = "document",
read = ["role:all"],

View file

@ -10,7 +10,7 @@ public void main() {
Database database = new Database(client);
database.createDocument(
collectionId = "[COLLECTION_ID]",
documentId = "",
documentId = "[DOCUMENT_ID]",
data = mapOf( "a" to "b" ),
new Continuation<Response>() {
@NotNull

View file

@ -9,7 +9,7 @@ public void main() {
Functions functions = new Functions(client);
functions.create(
functionId = "",
functionId = "[FUNCTION_ID]",
name = "[NAME]",
execute = listOf(),
runtime = "node-14.5",

View file

@ -9,7 +9,7 @@ public void main() {
Storage storage = new Storage(client);
storage.createFile(
fileId = "",
fileId = "[FILE_ID]",
file = File("./path-to-files/image.jpg"),
new Continuation<Response>() {
@NotNull

View file

@ -9,7 +9,7 @@ public void main() {
Teams teams = new Teams(client);
teams.create(
teamId = "",
teamId = "[TEAM_ID]",
name = "[NAME]",
new Continuation<Response>() {
@NotNull

View file

@ -9,7 +9,7 @@ public void main() {
Users users = new Users(client);
users.create(
userId = "",
userId = "[USER_ID]",
email = "email@example.com",
password = "password",
new Continuation<Response>() {

View file

@ -9,7 +9,7 @@ suspend fun main() {
val database = Database(client)
val response = database.createCollection(
collectionId = "",
collectionId = "[COLLECTION_ID]",
name = "[NAME]",
permission = "document",
read = ["role:all"],

View file

@ -10,7 +10,7 @@ suspend fun main() {
val database = Database(client)
val response = database.createDocument(
collectionId = "[COLLECTION_ID]",
documentId = "",
documentId = "[DOCUMENT_ID]",
data = mapOf( "a" to "b" ),
)
val json = response.body?.string()

View file

@ -9,7 +9,7 @@ suspend fun main() {
val functions = Functions(client)
val response = functions.create(
functionId = "",
functionId = "[FUNCTION_ID]",
name = "[NAME]",
execute = listOf(),
runtime = "node-14.5",

View file

@ -9,7 +9,7 @@ suspend fun main() {
val storage = Storage(client)
val response = storage.createFile(
fileId = "",
fileId = "[FILE_ID]",
file = File("./path-to-files/image.jpg"),
)
val json = response.body?.string()

View file

@ -9,7 +9,7 @@ suspend fun main() {
val teams = Teams(client)
val response = teams.create(
teamId = "",
teamId = "[TEAM_ID]",
name = "[NAME]",
)
val json = response.body?.string()

View file

@ -9,7 +9,7 @@ suspend fun main() {
val users = Users(client)
val response = users.create(
userId = "",
userId = "[USER_ID]",
email = "email@example.com",
password = "password",
)

View file

@ -11,7 +11,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.createCollection('', '[NAME]', 'document', ["role:all"], ["role:all"]);
let promise = database.createCollection('[COLLECTION_ID]', '[NAME]', 'document', ["role:all"], ["role:all"]);
promise.then(function (response) {
console.log(response);

View file

@ -11,7 +11,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = database.createDocument('[COLLECTION_ID]', '', {});
let promise = database.createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {});
promise.then(function (response) {
console.log(response);

View file

@ -11,7 +11,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = functions.create('', '[NAME]', [], 'node-14.5');
let promise = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5');
promise.then(function (response) {
console.log(response);

View file

@ -12,7 +12,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = storage.createFile('', fs.createReadStream(__dirname + '/file.png'));
let promise = storage.createFile('[FILE_ID]', fs.createReadStream(__dirname + '/file.png'));
promise.then(function (response) {
console.log(response);

View file

@ -11,7 +11,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = teams.create('', '[NAME]');
let promise = teams.create('[TEAM_ID]', '[NAME]');
promise.then(function (response) {
console.log(response);

View file

@ -11,7 +11,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;
let promise = users.create('', 'email@example.com', 'password');
let promise = users.create('[USER_ID]', 'email@example.com', 'password');
promise.then(function (response) {
console.log(response);

View file

@ -13,4 +13,4 @@ $client
$database = new Database($client);
$result = $database->createCollection('', '[NAME]', 'document', ["role:all"], ["role:all"]);
$result = $database->createCollection('[COLLECTION_ID]', '[NAME]', 'document', ["role:all"], ["role:all"]);

View file

@ -13,4 +13,4 @@ $client
$database = new Database($client);
$result = $database->createDocument('[COLLECTION_ID]', '', []);
$result = $database->createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', []);

View file

@ -13,4 +13,4 @@ $client
$functions = new Functions($client);
$result = $functions->create('', '[NAME]', [], 'node-14.5');
$result = $functions->create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5');

View file

@ -13,4 +13,4 @@ $client
$storage = new Storage($client);
$result = $storage->createFile('', new \CURLFile('/path/to/file.png', 'image/png', 'file.png'));
$result = $storage->createFile('[FILE_ID]', new \CURLFile('/path/to/file.png', 'image/png', 'file.png'));

View file

@ -13,4 +13,4 @@ $client
$teams = new Teams($client);
$result = $teams->create('', '[NAME]');
$result = $teams->create('[TEAM_ID]', '[NAME]');

View file

@ -13,4 +13,4 @@ $client
$users = new Users($client);
$result = $users->create('', 'email@example.com', 'password');
$result = $users->create('[USER_ID]', 'email@example.com', 'password');

View file

@ -11,4 +11,4 @@ client = Client()
database = Database(client)
result = database.create_collection('', '[NAME]', 'document', ["role:all"], ["role:all"])
result = database.create_collection('[COLLECTION_ID]', '[NAME]', 'document', ["role:all"], ["role:all"])

View file

@ -11,4 +11,4 @@ client = Client()
database = Database(client)
result = database.create_document('[COLLECTION_ID]', '', {})
result = database.create_document('[COLLECTION_ID]', '[DOCUMENT_ID]', {})

View file

@ -11,4 +11,4 @@ client = Client()
functions = Functions(client)
result = functions.create('', '[NAME]', [], 'node-14.5')
result = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5')

View file

@ -11,4 +11,4 @@ client = Client()
storage = Storage(client)
result = storage.create_file('', open('/path/to/file.png', 'rb'))
result = storage.create_file('[FILE_ID]', open('/path/to/file.png', 'rb'))

Some files were not shown because too many files have changed in this diff Show more