Merge branch 'feat-database-indexing' of https://github.com/appwrite/appwrite into feat-database-indexing
This commit is contained in:
commit
d229564383
|
@ -15,7 +15,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'web',
|
'key' => 'web',
|
||||||
'name' => 'Web',
|
'name' => 'Web',
|
||||||
'version' => '5.0.0',
|
'version' => '6.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-web',
|
'url' => 'https://github.com/appwrite/sdk-for-web',
|
||||||
'package' => 'https://www.npmjs.com/package/appwrite',
|
'package' => 'https://www.npmjs.com/package/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -63,7 +63,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'flutter',
|
'key' => 'flutter',
|
||||||
'name' => 'Flutter',
|
'name' => 'Flutter',
|
||||||
'version' => '2.1.0',
|
'version' => '3.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-flutter',
|
'url' => 'https://github.com/appwrite/sdk-for-flutter',
|
||||||
'package' => 'https://pub.dev/packages/appwrite',
|
'package' => 'https://pub.dev/packages/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -81,7 +81,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'apple',
|
'key' => 'apple',
|
||||||
'name' => 'Apple',
|
'name' => 'Apple',
|
||||||
'version' => '0.1.1',
|
'version' => '0.2.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-apple',
|
'url' => 'https://github.com/appwrite/sdk-for-apple',
|
||||||
'package' => 'https://github.com/appwrite/sdk-for-apple',
|
'package' => 'https://github.com/appwrite/sdk-for-apple',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -116,7 +116,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'android',
|
'key' => 'android',
|
||||||
'name' => 'Android',
|
'name' => 'Android',
|
||||||
'version' => '0.2.1',
|
'version' => '0.3.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-android',
|
'url' => 'https://github.com/appwrite/sdk-for-android',
|
||||||
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
|
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -190,7 +190,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'nodejs',
|
'key' => 'nodejs',
|
||||||
'name' => 'Node.js',
|
'name' => 'Node.js',
|
||||||
'version' => '3.0.0',
|
'version' => '4.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-node',
|
'url' => 'https://github.com/appwrite/sdk-for-node',
|
||||||
'package' => 'https://www.npmjs.com/package/node-appwrite',
|
'package' => 'https://www.npmjs.com/package/node-appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -208,7 +208,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'deno',
|
'key' => 'deno',
|
||||||
'name' => 'Deno',
|
'name' => 'Deno',
|
||||||
'version' => '1.0.0',
|
'version' => '2.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-deno',
|
'url' => 'https://github.com/appwrite/sdk-for-deno',
|
||||||
'package' => 'https://deno.land/x/appwrite',
|
'package' => 'https://deno.land/x/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -226,7 +226,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'php',
|
'key' => 'php',
|
||||||
'name' => 'PHP',
|
'name' => 'PHP',
|
||||||
'version' => '2.3.2',
|
'version' => '3.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-php',
|
'url' => 'https://github.com/appwrite/sdk-for-php',
|
||||||
'package' => 'https://packagist.org/packages/appwrite/appwrite',
|
'package' => 'https://packagist.org/packages/appwrite/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -244,7 +244,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'python',
|
'key' => 'python',
|
||||||
'name' => 'Python',
|
'name' => 'Python',
|
||||||
'version' => '0.5.1',
|
'version' => '0.6.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-python',
|
'url' => 'https://github.com/appwrite/sdk-for-python',
|
||||||
'package' => 'https://pypi.org/project/appwrite/',
|
'package' => 'https://pypi.org/project/appwrite/',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -262,7 +262,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'ruby',
|
'key' => 'ruby',
|
||||||
'name' => 'Ruby',
|
'name' => 'Ruby',
|
||||||
'version' => '2.4.1',
|
'version' => '3.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-ruby',
|
'url' => 'https://github.com/appwrite/sdk-for-ruby',
|
||||||
'package' => 'https://rubygems.org/gems/appwrite',
|
'package' => 'https://rubygems.org/gems/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -316,7 +316,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'dotnet',
|
'key' => 'dotnet',
|
||||||
'name' => '.NET',
|
'name' => '.NET',
|
||||||
'version' => '0.3.0',
|
'version' => '0.4.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
|
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
|
||||||
'package' => 'https://www.nuget.org/packages/Appwrite',
|
'package' => 'https://www.nuget.org/packages/Appwrite',
|
||||||
'enabled' => false,
|
'enabled' => false,
|
||||||
|
@ -334,7 +334,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'dart',
|
'key' => 'dart',
|
||||||
'name' => 'Dart',
|
'name' => 'Dart',
|
||||||
'version' => '2.0.0',
|
'version' => '3.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-dart',
|
'url' => 'https://github.com/appwrite/sdk-for-dart',
|
||||||
'package' => 'https://pub.dev/packages/dart_appwrite',
|
'package' => 'https://pub.dev/packages/dart_appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -352,7 +352,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'cli',
|
'key' => 'cli',
|
||||||
'name' => 'Command Line',
|
'name' => 'Command Line',
|
||||||
'version' => '0.12.1',
|
'version' => '0.13.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-cli',
|
'url' => 'https://github.com/appwrite/sdk-for-cli',
|
||||||
'package' => 'https://github.com/appwrite/sdk-for-cli',
|
'package' => 'https://github.com/appwrite/sdk-for-cli',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -370,7 +370,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'kotlin',
|
'key' => 'kotlin',
|
||||||
'name' => 'Kotlin',
|
'name' => 'Kotlin',
|
||||||
'version' => '0.1.1',
|
'version' => '0.2.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
|
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
|
||||||
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
|
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -392,7 +392,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'swift',
|
'key' => 'swift',
|
||||||
'name' => 'Swift',
|
'name' => 'Swift',
|
||||||
'version' => '0.1.0',
|
'version' => '0.2.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-swift',
|
'url' => 'https://github.com/appwrite/sdk-for-swift',
|
||||||
'package' => 'https://github.com/appwrite/sdk-for-swift',
|
'package' => 'https://github.com/appwrite/sdk-for-swift',
|
||||||
'enabled' => true,
|
'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
|
@ -353,6 +353,7 @@ $logs = $this->getParam('logs', null);
|
||||||
<span data-ls-if="{{index.status}} == 'processing'" class="text-size-small text-info">processing </span>
|
<span data-ls-if="{{index.status}} == 'processing'" class="text-size-small text-info">processing </span>
|
||||||
<span data-ls-if="{{index.status}} == 'failed'" class="text-size-small text-danger">failed </span>
|
<span data-ls-if="{{index.status}} == 'failed'" class="text-size-small text-danger">failed </span>
|
||||||
<span data-ls-if="{{index.status}} == 'deleting'" class="text-size-small text-danger">deleting </span>
|
<span data-ls-if="{{index.status}} == 'deleting'" class="text-size-small text-danger">deleting </span>
|
||||||
|
<span data-ls-if="{{index.status}} == 'stuck'" class="text-size-small text-danger">stuck </span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td data-title="Index Key: ">
|
<td data-title="Index Key: ">
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
Account account = new Account(client);
|
Account account = new Account(client);
|
||||||
|
|
||||||
account.createMagicURLSession(
|
account.createMagicURLSession(
|
||||||
"",
|
"[USER_ID]",
|
||||||
"email@example.com",
|
"email@example.com",
|
||||||
new Continuation<Object>() {
|
new Continuation<Object>() {
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
Account account = new Account(client);
|
Account account = new Account(client);
|
||||||
|
|
||||||
account.create(
|
account.create(
|
||||||
"",
|
"[USER_ID]",
|
||||||
"email@example.com",
|
"email@example.com",
|
||||||
"password",
|
"password",
|
||||||
new Continuation<Object>() {
|
new Continuation<Object>() {
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
Account account = new Account(client);
|
Account account = new Account(client);
|
||||||
|
|
||||||
account.updateMagicURLSession(
|
account.updateMagicURLSession(
|
||||||
"",
|
"[USER_ID]",
|
||||||
"[SECRET]"
|
"[SECRET]"
|
||||||
new Continuation<Object>() {
|
new Continuation<Object>() {
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
|
|
||||||
database.createDocument(
|
database.createDocument(
|
||||||
"[COLLECTION_ID]",
|
"[COLLECTION_ID]",
|
||||||
"",
|
"[DOCUMENT_ID]",
|
||||||
mapOf( "a" to "b" ),
|
mapOf( "a" to "b" ),
|
||||||
new Continuation<Object>() {
|
new Continuation<Object>() {
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
Storage storage = new Storage(client);
|
Storage storage = new Storage(client);
|
||||||
|
|
||||||
storage.createFile(
|
storage.createFile(
|
||||||
"",
|
"[FILE_ID]",
|
||||||
File("./path-to-files/image.jpg"),
|
File("./path-to-files/image.jpg"),
|
||||||
new Continuation<Object>() {
|
new Continuation<Object>() {
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
Teams teams = new Teams(client);
|
Teams teams = new Teams(client);
|
||||||
|
|
||||||
teams.create(
|
teams.create(
|
||||||
"",
|
"[TEAM_ID]",
|
||||||
"[NAME]",
|
"[NAME]",
|
||||||
new Continuation<Object>() {
|
new Continuation<Object>() {
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
|
@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
|
|
||||||
GlobalScope.launch {
|
GlobalScope.launch {
|
||||||
val response = account.createMagicURLSession(
|
val response = account.createMagicURLSession(
|
||||||
userId = "",
|
userId = "[USER_ID]",
|
||||||
email = "email@example.com",
|
email = "email@example.com",
|
||||||
)
|
)
|
||||||
val json = response.body?.string()
|
val json = response.body?.string()
|
||||||
|
|
|
@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
|
|
||||||
GlobalScope.launch {
|
GlobalScope.launch {
|
||||||
val response = account.create(
|
val response = account.create(
|
||||||
userId = "",
|
userId = "[USER_ID]",
|
||||||
email = "email@example.com",
|
email = "email@example.com",
|
||||||
password = "password",
|
password = "password",
|
||||||
)
|
)
|
||||||
|
|
|
@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
|
|
||||||
GlobalScope.launch {
|
GlobalScope.launch {
|
||||||
val response = account.updateMagicURLSession(
|
val response = account.updateMagicURLSession(
|
||||||
userId = "",
|
userId = "[USER_ID]",
|
||||||
secret = "[SECRET]"
|
secret = "[SECRET]"
|
||||||
)
|
)
|
||||||
val json = response.body?.string()
|
val json = response.body?.string()
|
||||||
|
|
|
@ -19,7 +19,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
GlobalScope.launch {
|
GlobalScope.launch {
|
||||||
val response = database.createDocument(
|
val response = database.createDocument(
|
||||||
collectionId = "[COLLECTION_ID]",
|
collectionId = "[COLLECTION_ID]",
|
||||||
documentId = "",
|
documentId = "[DOCUMENT_ID]",
|
||||||
data = mapOf( "a" to "b" ),
|
data = mapOf( "a" to "b" ),
|
||||||
)
|
)
|
||||||
val json = response.body?.string()
|
val json = response.body?.string()
|
||||||
|
|
|
@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
|
|
||||||
GlobalScope.launch {
|
GlobalScope.launch {
|
||||||
val response = storage.createFile(
|
val response = storage.createFile(
|
||||||
fileId = "",
|
fileId = "[FILE_ID]",
|
||||||
file = File("./path-to-files/image.jpg"),
|
file = File("./path-to-files/image.jpg"),
|
||||||
)
|
)
|
||||||
val json = response.body?.string()
|
val json = response.body?.string()
|
||||||
|
|
|
@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
|
|
||||||
GlobalScope.launch {
|
GlobalScope.launch {
|
||||||
val response = teams.create(
|
val response = teams.create(
|
||||||
teamId = "",
|
teamId = "[TEAM_ID]",
|
||||||
name = "[NAME]",
|
name = "[NAME]",
|
||||||
)
|
)
|
||||||
val json = response.body?.string()
|
val json = response.body?.string()
|
||||||
|
|
|
@ -7,7 +7,7 @@ func main() {
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
account.createMagicURLSession(
|
account.createMagicURLSession(
|
||||||
userId: "",
|
userId: "[USER_ID]",
|
||||||
email: "email@example.com"
|
email: "email@example.com"
|
||||||
) { result in
|
) { result in
|
||||||
switch result {
|
switch result {
|
||||||
|
|
|
@ -7,7 +7,7 @@ func main() {
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
account.create(
|
account.create(
|
||||||
userId: "",
|
userId: "[USER_ID]",
|
||||||
email: "email@example.com",
|
email: "email@example.com",
|
||||||
password: "password"
|
password: "password"
|
||||||
) { result in
|
) { result in
|
||||||
|
|
|
@ -7,7 +7,7 @@ func main() {
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
account.updateMagicURLSession(
|
account.updateMagicURLSession(
|
||||||
userId: "",
|
userId: "[USER_ID]",
|
||||||
secret: "[SECRET]"
|
secret: "[SECRET]"
|
||||||
) { result in
|
) { result in
|
||||||
switch result {
|
switch result {
|
||||||
|
|
|
@ -8,7 +8,7 @@ func main() {
|
||||||
let database = Database(client)
|
let database = Database(client)
|
||||||
database.createDocument(
|
database.createDocument(
|
||||||
collectionId: "[COLLECTION_ID]",
|
collectionId: "[COLLECTION_ID]",
|
||||||
documentId: "",
|
documentId: "[DOCUMENT_ID]",
|
||||||
data:
|
data:
|
||||||
) { result in
|
) { result in
|
||||||
switch result {
|
switch result {
|
||||||
|
|
|
@ -7,7 +7,7 @@ func main() {
|
||||||
|
|
||||||
let storage = Storage(client)
|
let storage = Storage(client)
|
||||||
storage.createFile(
|
storage.createFile(
|
||||||
fileId: "",
|
fileId: "[FILE_ID]",
|
||||||
file: File(name: "image.jpg", buffer: yourByteBuffer)
|
file: File(name: "image.jpg", buffer: yourByteBuffer)
|
||||||
) { result in
|
) { result in
|
||||||
switch result {
|
switch result {
|
||||||
|
|
|
@ -7,7 +7,7 @@ func main() {
|
||||||
|
|
||||||
let teams = Teams(client)
|
let teams = Teams(client)
|
||||||
teams.create(
|
teams.create(
|
||||||
teamId: "",
|
teamId: "[TEAM_ID]",
|
||||||
name: "[NAME]"
|
name: "[NAME]"
|
||||||
) { result in
|
) { result in
|
||||||
switch result {
|
switch result {
|
||||||
|
|
|
@ -9,7 +9,7 @@ void main() { // Init SDK
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
Future result = account.createMagicURLSession(
|
Future result = account.createMagicURLSession(
|
||||||
userId: '',
|
userId: '[USER_ID]',
|
||||||
email: 'email@example.com',
|
email: 'email@example.com',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ void main() { // Init SDK
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
Future result = account.create(
|
Future result = account.create(
|
||||||
userId: '',
|
userId: '[USER_ID]',
|
||||||
email: 'email@example.com',
|
email: 'email@example.com',
|
||||||
password: 'password',
|
password: 'password',
|
||||||
);
|
);
|
||||||
|
|
|
@ -9,7 +9,7 @@ void main() { // Init SDK
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
Future result = account.updateMagicURLSession(
|
Future result = account.updateMagicURLSession(
|
||||||
userId: '',
|
userId: '[USER_ID]',
|
||||||
secret: '[SECRET]',
|
secret: '[SECRET]',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ void main() { // Init SDK
|
||||||
;
|
;
|
||||||
Future result = database.createDocument(
|
Future result = database.createDocument(
|
||||||
collectionId: '[COLLECTION_ID]',
|
collectionId: '[COLLECTION_ID]',
|
||||||
documentId: '',
|
documentId: '[DOCUMENT_ID]',
|
||||||
data: {},
|
data: {},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ void main() { // Init SDK
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
Future result = storage.createFile(
|
Future result = storage.createFile(
|
||||||
fileId: '',
|
fileId: '[FILE_ID]',
|
||||||
file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'),
|
file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ void main() { // Init SDK
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
Future result = teams.create(
|
Future result = teams.create(
|
||||||
teamId: '',
|
teamId: '[TEAM_ID]',
|
||||||
name: '[NAME]',
|
name: '[NAME]',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
let promise = sdk.account.updateMagicURLSession('', '[SECRET]');
|
let promise = sdk.account.updateMagicURLSession('[USER_ID]', '[SECRET]');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
let promise = sdk.teams.create('', '[NAME]');
|
let promise = sdk.teams.create('[TEAM_ID]', '[NAME]');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
let promise = sdk.account.updateMagicURLSession('', '[SECRET]');
|
let promise = sdk.account.updateMagicURLSession('[USER_ID]', '[SECRET]');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
let promise = sdk.teams.create('', '[NAME]');
|
let promise = sdk.teams.create('[TEAM_ID]', '[NAME]');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
appwrite database createCollection \
|
appwrite database createCollection \
|
||||||
--collectionId="" \
|
--collectionId="[COLLECTION_ID]" \
|
||||||
--name="[NAME]" \
|
--name="[NAME]" \
|
||||||
--permission="document" \
|
--permission="document" \
|
||||||
--read="["role:all"]" \
|
--read="["role:all"]" \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
appwrite database createDocument \
|
appwrite database createDocument \
|
||||||
--collectionId="[COLLECTION_ID]" \
|
--collectionId="[COLLECTION_ID]" \
|
||||||
--documentId="" \
|
--documentId="[DOCUMENT_ID]" \
|
||||||
--data="{}" \
|
--data="{}" \
|
||||||
--read="["role:all"]" \
|
--read="["role:all"]" \
|
||||||
--write="["role:all"]"
|
--write="["role:all"]"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
appwrite functions create \
|
appwrite functions create \
|
||||||
--functionId="" \
|
--functionId="[FUNCTION_ID]" \
|
||||||
--name="[NAME]" \
|
--name="[NAME]" \
|
||||||
--execute="" \
|
--execute="" \
|
||||||
--runtime="node-14.5" \
|
--runtime="node-14.5" \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
appwrite storage createFile \
|
appwrite storage createFile \
|
||||||
--fileId="" \
|
--fileId="[FILE_ID]" \
|
||||||
--file="" \
|
--file="" \
|
||||||
--read="" \
|
--read="" \
|
||||||
--write=""
|
--write=""
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
appwrite teams create \
|
appwrite teams create \
|
||||||
--teamId="" \
|
--teamId="[TEAM_ID]" \
|
||||||
--name="[NAME]" \
|
--name="[NAME]" \
|
||||||
--roles=""
|
--roles=""
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
appwrite users create \
|
appwrite users create \
|
||||||
--userId="" \
|
--userId="[USER_ID]" \
|
||||||
--email="email@example.com" \
|
--email="email@example.com" \
|
||||||
--password="password" \
|
--password="password" \
|
||||||
--name="[NAME]"
|
--name="[NAME]"
|
||||||
|
|
|
@ -11,7 +11,7 @@ void main() { // Init SDK
|
||||||
;
|
;
|
||||||
|
|
||||||
Future result = database.createCollection(
|
Future result = database.createCollection(
|
||||||
collectionId: '',
|
collectionId: '[COLLECTION_ID]',
|
||||||
name: '[NAME]',
|
name: '[NAME]',
|
||||||
permission: 'document',
|
permission: 'document',
|
||||||
read: ["role:all"],
|
read: ["role:all"],
|
||||||
|
|
|
@ -12,7 +12,7 @@ void main() { // Init SDK
|
||||||
|
|
||||||
Future result = database.createDocument(
|
Future result = database.createDocument(
|
||||||
collectionId: '[COLLECTION_ID]',
|
collectionId: '[COLLECTION_ID]',
|
||||||
documentId: '',
|
documentId: '[DOCUMENT_ID]',
|
||||||
data: {},
|
data: {},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ void main() { // Init SDK
|
||||||
;
|
;
|
||||||
|
|
||||||
Future result = functions.create(
|
Future result = functions.create(
|
||||||
functionId: '',
|
functionId: '[FUNCTION_ID]',
|
||||||
name: '[NAME]',
|
name: '[NAME]',
|
||||||
execute: [],
|
execute: [],
|
||||||
runtime: 'node-14.5',
|
runtime: 'node-14.5',
|
||||||
|
|
|
@ -12,7 +12,7 @@ void main() { // Init SDK
|
||||||
;
|
;
|
||||||
|
|
||||||
Future result = storage.createFile(
|
Future result = storage.createFile(
|
||||||
fileId: '',
|
fileId: '[FILE_ID]',
|
||||||
file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'),
|
file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ void main() { // Init SDK
|
||||||
;
|
;
|
||||||
|
|
||||||
Future result = teams.create(
|
Future result = teams.create(
|
||||||
teamId: '',
|
teamId: '[TEAM_ID]',
|
||||||
name: '[NAME]',
|
name: '[NAME]',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ void main() { // Init SDK
|
||||||
;
|
;
|
||||||
|
|
||||||
Future result = users.create(
|
Future result = users.create(
|
||||||
userId: '',
|
userId: '[USER_ID]',
|
||||||
email: 'email@example.com',
|
email: 'email@example.com',
|
||||||
password: 'password',
|
password: 'password',
|
||||||
);
|
);
|
||||||
|
|
|
@ -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) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -12,7 +12,7 @@ client
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
let promise = database.createDocument('[COLLECTION_ID]', '', {});
|
let promise = database.createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {});
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -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) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -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) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -12,7 +12,7 @@ client
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
let promise = teams.create('', '[NAME]');
|
let promise = teams.create('[TEAM_ID]', '[NAME]');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -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) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -9,7 +9,7 @@ public void main() {
|
||||||
|
|
||||||
Database database = new Database(client);
|
Database database = new Database(client);
|
||||||
database.createCollection(
|
database.createCollection(
|
||||||
collectionId = "",
|
collectionId = "[COLLECTION_ID]",
|
||||||
name = "[NAME]",
|
name = "[NAME]",
|
||||||
permission = "document",
|
permission = "document",
|
||||||
read = ["role:all"],
|
read = ["role:all"],
|
||||||
|
|
|
@ -10,7 +10,7 @@ public void main() {
|
||||||
Database database = new Database(client);
|
Database database = new Database(client);
|
||||||
database.createDocument(
|
database.createDocument(
|
||||||
collectionId = "[COLLECTION_ID]",
|
collectionId = "[COLLECTION_ID]",
|
||||||
documentId = "",
|
documentId = "[DOCUMENT_ID]",
|
||||||
data = mapOf( "a" to "b" ),
|
data = mapOf( "a" to "b" ),
|
||||||
new Continuation<Response>() {
|
new Continuation<Response>() {
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
|
@ -9,7 +9,7 @@ public void main() {
|
||||||
|
|
||||||
Functions functions = new Functions(client);
|
Functions functions = new Functions(client);
|
||||||
functions.create(
|
functions.create(
|
||||||
functionId = "",
|
functionId = "[FUNCTION_ID]",
|
||||||
name = "[NAME]",
|
name = "[NAME]",
|
||||||
execute = listOf(),
|
execute = listOf(),
|
||||||
runtime = "node-14.5",
|
runtime = "node-14.5",
|
||||||
|
|
|
@ -9,7 +9,7 @@ public void main() {
|
||||||
|
|
||||||
Storage storage = new Storage(client);
|
Storage storage = new Storage(client);
|
||||||
storage.createFile(
|
storage.createFile(
|
||||||
fileId = "",
|
fileId = "[FILE_ID]",
|
||||||
file = File("./path-to-files/image.jpg"),
|
file = File("./path-to-files/image.jpg"),
|
||||||
new Continuation<Response>() {
|
new Continuation<Response>() {
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
|
@ -9,7 +9,7 @@ public void main() {
|
||||||
|
|
||||||
Teams teams = new Teams(client);
|
Teams teams = new Teams(client);
|
||||||
teams.create(
|
teams.create(
|
||||||
teamId = "",
|
teamId = "[TEAM_ID]",
|
||||||
name = "[NAME]",
|
name = "[NAME]",
|
||||||
new Continuation<Response>() {
|
new Continuation<Response>() {
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
|
@ -9,7 +9,7 @@ public void main() {
|
||||||
|
|
||||||
Users users = new Users(client);
|
Users users = new Users(client);
|
||||||
users.create(
|
users.create(
|
||||||
userId = "",
|
userId = "[USER_ID]",
|
||||||
email = "email@example.com",
|
email = "email@example.com",
|
||||||
password = "password",
|
password = "password",
|
||||||
new Continuation<Response>() {
|
new Continuation<Response>() {
|
||||||
|
|
|
@ -9,7 +9,7 @@ suspend fun main() {
|
||||||
|
|
||||||
val database = Database(client)
|
val database = Database(client)
|
||||||
val response = database.createCollection(
|
val response = database.createCollection(
|
||||||
collectionId = "",
|
collectionId = "[COLLECTION_ID]",
|
||||||
name = "[NAME]",
|
name = "[NAME]",
|
||||||
permission = "document",
|
permission = "document",
|
||||||
read = ["role:all"],
|
read = ["role:all"],
|
||||||
|
|
|
@ -10,7 +10,7 @@ suspend fun main() {
|
||||||
val database = Database(client)
|
val database = Database(client)
|
||||||
val response = database.createDocument(
|
val response = database.createDocument(
|
||||||
collectionId = "[COLLECTION_ID]",
|
collectionId = "[COLLECTION_ID]",
|
||||||
documentId = "",
|
documentId = "[DOCUMENT_ID]",
|
||||||
data = mapOf( "a" to "b" ),
|
data = mapOf( "a" to "b" ),
|
||||||
)
|
)
|
||||||
val json = response.body?.string()
|
val json = response.body?.string()
|
||||||
|
|
|
@ -9,7 +9,7 @@ suspend fun main() {
|
||||||
|
|
||||||
val functions = Functions(client)
|
val functions = Functions(client)
|
||||||
val response = functions.create(
|
val response = functions.create(
|
||||||
functionId = "",
|
functionId = "[FUNCTION_ID]",
|
||||||
name = "[NAME]",
|
name = "[NAME]",
|
||||||
execute = listOf(),
|
execute = listOf(),
|
||||||
runtime = "node-14.5",
|
runtime = "node-14.5",
|
||||||
|
|
|
@ -9,7 +9,7 @@ suspend fun main() {
|
||||||
|
|
||||||
val storage = Storage(client)
|
val storage = Storage(client)
|
||||||
val response = storage.createFile(
|
val response = storage.createFile(
|
||||||
fileId = "",
|
fileId = "[FILE_ID]",
|
||||||
file = File("./path-to-files/image.jpg"),
|
file = File("./path-to-files/image.jpg"),
|
||||||
)
|
)
|
||||||
val json = response.body?.string()
|
val json = response.body?.string()
|
||||||
|
|
|
@ -9,7 +9,7 @@ suspend fun main() {
|
||||||
|
|
||||||
val teams = Teams(client)
|
val teams = Teams(client)
|
||||||
val response = teams.create(
|
val response = teams.create(
|
||||||
teamId = "",
|
teamId = "[TEAM_ID]",
|
||||||
name = "[NAME]",
|
name = "[NAME]",
|
||||||
)
|
)
|
||||||
val json = response.body?.string()
|
val json = response.body?.string()
|
||||||
|
|
|
@ -9,7 +9,7 @@ suspend fun main() {
|
||||||
|
|
||||||
val users = Users(client)
|
val users = Users(client)
|
||||||
val response = users.create(
|
val response = users.create(
|
||||||
userId = "",
|
userId = "[USER_ID]",
|
||||||
email = "email@example.com",
|
email = "email@example.com",
|
||||||
password = "password",
|
password = "password",
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,7 +11,7 @@ client
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -11,7 +11,7 @@ client
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -11,7 +11,7 @@ client
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -12,7 +12,7 @@ client
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -11,7 +11,7 @@ client
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
|
|
||||||
let promise = teams.create('', '[NAME]');
|
let promise = teams.create('[TEAM_ID]', '[NAME]');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -11,7 +11,7 @@ client
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.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) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -13,4 +13,4 @@ $client
|
||||||
|
|
||||||
$database = new Database($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"]);
|
|
@ -13,4 +13,4 @@ $client
|
||||||
|
|
||||||
$database = new Database($client);
|
$database = new Database($client);
|
||||||
|
|
||||||
$result = $database->createDocument('[COLLECTION_ID]', '', []);
|
$result = $database->createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', []);
|
|
@ -13,4 +13,4 @@ $client
|
||||||
|
|
||||||
$functions = new Functions($client);
|
$functions = new Functions($client);
|
||||||
|
|
||||||
$result = $functions->create('', '[NAME]', [], 'node-14.5');
|
$result = $functions->create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5');
|
|
@ -13,4 +13,4 @@ $client
|
||||||
|
|
||||||
$storage = new Storage($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'));
|
|
@ -13,4 +13,4 @@ $client
|
||||||
|
|
||||||
$teams = new Teams($client);
|
$teams = new Teams($client);
|
||||||
|
|
||||||
$result = $teams->create('', '[NAME]');
|
$result = $teams->create('[TEAM_ID]', '[NAME]');
|
|
@ -13,4 +13,4 @@ $client
|
||||||
|
|
||||||
$users = new Users($client);
|
$users = new Users($client);
|
||||||
|
|
||||||
$result = $users->create('', 'email@example.com', 'password');
|
$result = $users->create('[USER_ID]', 'email@example.com', 'password');
|
|
@ -11,4 +11,4 @@ client = Client()
|
||||||
|
|
||||||
database = Database(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"])
|
||||||
|
|
|
@ -11,4 +11,4 @@ client = Client()
|
||||||
|
|
||||||
database = Database(client)
|
database = Database(client)
|
||||||
|
|
||||||
result = database.create_document('[COLLECTION_ID]', '', {})
|
result = database.create_document('[COLLECTION_ID]', '[DOCUMENT_ID]', {})
|
||||||
|
|
|
@ -11,4 +11,4 @@ client = Client()
|
||||||
|
|
||||||
functions = Functions(client)
|
functions = Functions(client)
|
||||||
|
|
||||||
result = functions.create('', '[NAME]', [], 'node-14.5')
|
result = functions.create('[FUNCTION_ID]', '[NAME]', [], 'node-14.5')
|
||||||
|
|
|
@ -11,4 +11,4 @@ client = Client()
|
||||||
|
|
||||||
storage = Storage(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
Loading…
Reference in a new issue