Merge branch 'master' into feat-password-hash-algos

This commit is contained in:
Matej Bačo
2022-07-25 12:37:07 +00:00
908 changed files with 12166 additions and 5800 deletions
@@ -3,7 +3,7 @@ import android.os.Bundle
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.appwrite.Client
import io.appwrite.services.Database
import io.appwrite.services.Databases
public class MainActivity extends AppCompatActivity {
@@ -16,9 +16,9 @@ public class MainActivity extends AppCompatActivity {
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2"); // Your project ID
Database database = new Database(client);
Databases databases = new Databases(client, "[DATABASE_ID]");
database.createDocument(
databases.createDocument(
"[COLLECTION_ID]",
"[DOCUMENT_ID]",
mapOf( "a" to "b" ),
@@ -3,7 +3,7 @@ import android.os.Bundle
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.appwrite.Client
import io.appwrite.services.Database
import io.appwrite.services.Databases
public class MainActivity extends AppCompatActivity {
@@ -16,9 +16,9 @@ public class MainActivity extends AppCompatActivity {
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2"); // Your project ID
Database database = new Database(client);
Databases databases = new Databases(client, "[DATABASE_ID]");
database.deleteDocument(
databases.deleteDocument(
"[COLLECTION_ID]",
"[DOCUMENT_ID]"
new Continuation<Object>() {
@@ -3,7 +3,7 @@ import android.os.Bundle
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.appwrite.Client
import io.appwrite.services.Database
import io.appwrite.services.Databases
public class MainActivity extends AppCompatActivity {
@@ -16,9 +16,9 @@ public class MainActivity extends AppCompatActivity {
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2"); // Your project ID
Database database = new Database(client);
Databases databases = new Databases(client, "[DATABASE_ID]");
database.getDocument(
databases.getDocument(
"[COLLECTION_ID]",
"[DOCUMENT_ID]"
new Continuation<Object>() {
@@ -3,7 +3,7 @@ import android.os.Bundle
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.appwrite.Client
import io.appwrite.services.Database
import io.appwrite.services.Databases
public class MainActivity extends AppCompatActivity {
@@ -16,9 +16,9 @@ public class MainActivity extends AppCompatActivity {
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2"); // Your project ID
Database database = new Database(client);
Databases databases = new Databases(client, "[DATABASE_ID]");
database.listDocuments(
databases.listDocuments(
"[COLLECTION_ID]",
new Continuation<Object>() {
@NotNull
@@ -3,7 +3,7 @@ import android.os.Bundle
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.appwrite.Client
import io.appwrite.services.Database
import io.appwrite.services.Databases
public class MainActivity extends AppCompatActivity {
@@ -16,12 +16,11 @@ public class MainActivity extends AppCompatActivity {
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2"); // Your project ID
Database database = new Database(client);
Databases databases = new Databases(client, "[DATABASE_ID]");
database.updateDocument(
databases.updateDocument(
"[COLLECTION_ID]",
"[DOCUMENT_ID]",
mapOf( "a" to "b" ),
new Continuation<Object>() {
@NotNull
@Override
@@ -21,7 +21,7 @@ public class MainActivity extends AppCompatActivity {
storage.createFile(
"[BUCKET_ID]",
"[FILE_ID]",
File("file.png"),
InputFile.fromPath("file.png"),
new Continuation<Object>() {
@NotNull
@Override
@@ -3,7 +3,7 @@ import android.os.Bundle
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.appwrite.Client
import io.appwrite.services.Database
import io.appwrite.services.Databases
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
@@ -14,10 +14,10 @@ class MainActivity : AppCompatActivity() {
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
val database = Database(client)
val databases = Databases(client, "[DATABASE_ID]")
GlobalScope.launch {
val response = database.createDocument(
val response = databases.createDocument(
collectionId = "[COLLECTION_ID]",
documentId = "[DOCUMENT_ID]",
data = mapOf( "a" to "b" ),
@@ -3,7 +3,7 @@ import android.os.Bundle
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.appwrite.Client
import io.appwrite.services.Database
import io.appwrite.services.Databases
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
@@ -14,10 +14,10 @@ class MainActivity : AppCompatActivity() {
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
val database = Database(client)
val databases = Databases(client, "[DATABASE_ID]")
GlobalScope.launch {
val response = database.deleteDocument(
val response = databases.deleteDocument(
collectionId = "[COLLECTION_ID]",
documentId = "[DOCUMENT_ID]"
)
@@ -3,7 +3,7 @@ import android.os.Bundle
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.appwrite.Client
import io.appwrite.services.Database
import io.appwrite.services.Databases
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
@@ -14,10 +14,10 @@ class MainActivity : AppCompatActivity() {
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
val database = Database(client)
val databases = Databases(client, "[DATABASE_ID]")
GlobalScope.launch {
val response = database.getDocument(
val response = databases.getDocument(
collectionId = "[COLLECTION_ID]",
documentId = "[DOCUMENT_ID]"
)
@@ -3,7 +3,7 @@ import android.os.Bundle
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.appwrite.Client
import io.appwrite.services.Database
import io.appwrite.services.Databases
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
@@ -14,10 +14,10 @@ class MainActivity : AppCompatActivity() {
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
val database = Database(client)
val databases = Databases(client, "[DATABASE_ID]")
GlobalScope.launch {
val response = database.listDocuments(
val response = databases.listDocuments(
collectionId = "[COLLECTION_ID]",
)
val json = response.body?.string()
@@ -3,7 +3,7 @@ import android.os.Bundle
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.appwrite.Client
import io.appwrite.services.Database
import io.appwrite.services.Databases
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
@@ -14,13 +14,12 @@ class MainActivity : AppCompatActivity() {
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
val database = Database(client)
val databases = Databases(client, "[DATABASE_ID]")
GlobalScope.launch {
val response = database.updateDocument(
val response = databases.updateDocument(
collectionId = "[COLLECTION_ID]",
documentId = "[DOCUMENT_ID]",
data = mapOf( "a" to "b" ),
)
val json = response.body?.string()
}
@@ -20,7 +20,7 @@ class MainActivity : AppCompatActivity() {
val response = storage.createFile(
bucketId = "[BUCKET_ID]",
fileId = "[FILE_ID]",
file = File("file.png"),
file = InputFile.fromPath("file.png"),
)
val json = response.body?.string()
}
@@ -6,7 +6,7 @@ func main() async throws {
.setProject("5df5acd0d48c2") // Your project ID
let account = Account(client)
let user = try await account.updatePrefs(
prefs:
prefs: [:]
)
print(String(describing: user)
@@ -4,11 +4,11 @@ func main() async throws {
let client = Client()
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
let database = Database(client)
let document = try await database.createDocument(
let databases = Databases(client, "[DATABASE_ID]")
let document = try await databases.createDocument(
collectionId: "[COLLECTION_ID]",
documentId: "[DOCUMENT_ID]",
data:
data: [:]
)
print(String(describing: document)
@@ -4,8 +4,8 @@ func main() async throws {
let client = Client()
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
let database = Database(client)
let result = try await database.deleteDocument(
let databases = Databases(client, "[DATABASE_ID]")
let result = try await databases.deleteDocument(
collectionId: "[COLLECTION_ID]",
documentId: "[DOCUMENT_ID]"
)
@@ -4,8 +4,8 @@ func main() async throws {
let client = Client()
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
let database = Database(client)
let document = try await database.getDocument(
let databases = Databases(client, "[DATABASE_ID]")
let document = try await databases.getDocument(
collectionId: "[COLLECTION_ID]",
documentId: "[DOCUMENT_ID]"
)
@@ -4,8 +4,8 @@ func main() async throws {
let client = Client()
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
let database = Database(client)
let documentList = try await database.listDocuments(
let databases = Databases(client, "[DATABASE_ID]")
let documentList = try await databases.listDocuments(
collectionId: "[COLLECTION_ID]"
)
@@ -4,11 +4,10 @@ func main() async throws {
let client = Client()
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
let database = Database(client)
let document = try await database.updateDocument(
let databases = Databases(client, "[DATABASE_ID]")
let document = try await databases.updateDocument(
collectionId: "[COLLECTION_ID]",
documentId: "[DOCUMENT_ID]",
data:
documentId: "[DOCUMENT_ID]"
)
print(String(describing: document)
@@ -8,7 +8,7 @@ func main() async throws {
let file = try await storage.createFile(
bucketId: "[BUCKET_ID]",
fileId: "[FILE_ID]",
file: File(name: "image.jpg", buffer: yourByteBuffer)
file: InputFile.fromPath("file.png")
)
print(String(describing: file)
@@ -2,13 +2,13 @@ import 'package:appwrite/appwrite.dart';
void main() { // Init SDK
Client client = Client();
Database database = Database(client);
Databases databases = Databases(client, databaseId: '[DATABASE_ID]');
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = database.createDocument(
Future result = databases.createDocument(
collectionId: '[COLLECTION_ID]',
documentId: '[DOCUMENT_ID]',
data: {},
@@ -2,13 +2,13 @@ import 'package:appwrite/appwrite.dart';
void main() { // Init SDK
Client client = Client();
Database database = Database(client);
Databases databases = Databases(client, databaseId: '[DATABASE_ID]');
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = database.deleteDocument(
Future result = databases.deleteDocument(
collectionId: '[COLLECTION_ID]',
documentId: '[DOCUMENT_ID]',
);
@@ -2,13 +2,13 @@ import 'package:appwrite/appwrite.dart';
void main() { // Init SDK
Client client = Client();
Database database = Database(client);
Databases databases = Databases(client, databaseId: '[DATABASE_ID]');
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = database.getDocument(
Future result = databases.getDocument(
collectionId: '[COLLECTION_ID]',
documentId: '[DOCUMENT_ID]',
);
@@ -2,13 +2,13 @@ import 'package:appwrite/appwrite.dart';
void main() { // Init SDK
Client client = Client();
Database database = Database(client);
Databases databases = Databases(client, databaseId: '[DATABASE_ID]');
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = database.listDocuments(
Future result = databases.listDocuments(
collectionId: '[COLLECTION_ID]',
);
@@ -2,16 +2,15 @@ import 'package:appwrite/appwrite.dart';
void main() { // Init SDK
Client client = Client();
Database database = Database(client);
Databases databases = Databases(client, databaseId: '[DATABASE_ID]');
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = database.updateDocument(
Future result = databases.updateDocument(
collectionId: '[COLLECTION_ID]',
documentId: '[DOCUMENT_ID]',
data: {},
);
result
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.createAnonymousSession();
const promise = account.createAnonymousSession();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.createEmailSession('email@example.com', 'password');
const promise = account.createEmailSession('email@example.com', 'password');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.createJWT();
const promise = account.createJWT();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.createMagicURLSession('[USER_ID]', 'email@example.com');
const promise = account.createMagicURLSession('[USER_ID]', 'email@example.com');
promise.then(function (response) {
console.log(response); // Success
@@ -1,10 +1,14 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
// Go to OAuth provider login page
sdk.account.createOAuth2Session('amazon');
account.createOAuth2Session('amazon');
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.createPhoneSession('[USER_ID]', '');
const promise = account.createPhoneSession('[USER_ID]', '');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.createPhoneVerification();
const promise = account.createPhoneVerification();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.createRecovery('email@example.com', 'https://example.com');
const promise = account.createRecovery('email@example.com', 'https://example.com');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.createVerification('https://example.com');
const promise = account.createVerification('https://example.com');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.create('[USER_ID]', 'email@example.com', 'password');
const promise = account.create('[USER_ID]', 'email@example.com', 'password');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.deleteSession('[SESSION_ID]');
const promise = account.deleteSession('[SESSION_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.deleteSessions();
const promise = account.deleteSessions();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.getLogs();
const promise = account.getLogs();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.getPrefs();
const promise = account.getPrefs();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.getSession('[SESSION_ID]');
const promise = account.getSession('[SESSION_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.getSessions();
const promise = account.getSessions();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.get();
const promise = account.get();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updateEmail('email@example.com', 'password');
const promise = account.updateEmail('email@example.com', 'password');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updateMagicURLSession('[USER_ID]', '[SECRET]');
const promise = account.updateMagicURLSession('[USER_ID]', '[SECRET]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updateName('[NAME]');
const promise = account.updateName('[NAME]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updatePassword('password');
const promise = account.updatePassword('password');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updatePhoneSession('[USER_ID]', '[SECRET]');
const promise = account.updatePhoneSession('[USER_ID]', '[SECRET]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updatePhoneVerification('[USER_ID]', '[SECRET]');
const promise = account.updatePhoneVerification('[USER_ID]', '[SECRET]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updatePhone('', 'password');
const promise = account.updatePhone('', 'password');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updatePrefs({});
const promise = account.updatePrefs({});
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password');
const promise = account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updateSession('[SESSION_ID]');
const promise = account.updateSession('[SESSION_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updateStatus();
const promise = account.updateStatus();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Account } from "appwrite";
sdk
const client = new Client();
const account = new Account(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.account.updateVerification('[USER_ID]', '[SECRET]');
const promise = account.updateVerification('[USER_ID]', '[SECRET]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,10 +1,14 @@
const sdk = new Appwrite();
import { Client, Avatars } from "appwrite";
sdk
const client = new Client();
const avatars = new Avatars(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let result = sdk.avatars.getBrowser('aa');
const result = avatars.getBrowser('aa');
console.log(result); // Resource URL
@@ -1,10 +1,14 @@
const sdk = new Appwrite();
import { Client, Avatars } from "appwrite";
sdk
const client = new Client();
const avatars = new Avatars(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let result = sdk.avatars.getCreditCard('amex');
const result = avatars.getCreditCard('amex');
console.log(result); // Resource URL
@@ -1,10 +1,14 @@
const sdk = new Appwrite();
import { Client, Avatars } from "appwrite";
sdk
const client = new Client();
const avatars = new Avatars(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let result = sdk.avatars.getFavicon('https://example.com');
const result = avatars.getFavicon('https://example.com');
console.log(result); // Resource URL
@@ -1,10 +1,14 @@
const sdk = new Appwrite();
import { Client, Avatars } from "appwrite";
sdk
const client = new Client();
const avatars = new Avatars(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let result = sdk.avatars.getFlag('af');
const result = avatars.getFlag('af');
console.log(result); // Resource URL
@@ -1,10 +1,14 @@
const sdk = new Appwrite();
import { Client, Avatars } from "appwrite";
sdk
const client = new Client();
const avatars = new Avatars(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let result = sdk.avatars.getImage('https://example.com');
const result = avatars.getImage('https://example.com');
console.log(result); // Resource URL
@@ -1,10 +1,14 @@
const sdk = new Appwrite();
import { Client, Avatars } from "appwrite";
sdk
const client = new Client();
const avatars = new Avatars(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let result = sdk.avatars.getInitials();
const result = avatars.getInitials();
console.log(result); // Resource URL
@@ -1,10 +1,14 @@
const sdk = new Appwrite();
import { Client, Avatars } from "appwrite";
sdk
const client = new Client();
const avatars = new Avatars(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let result = sdk.avatars.getQR('[TEXT]');
const result = avatars.getQR('[TEXT]');
console.log(result); // Resource URL
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Databases } from "appwrite";
sdk
const client = new Client();
const databases = new Databases(client, '[DATABASE_ID]');
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.database.createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {});
const promise = databases.createDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {});
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Databases } from "appwrite";
sdk
const client = new Client();
const databases = new Databases(client, '[DATABASE_ID]');
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');
const promise = databases.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Databases } from "appwrite";
sdk
const client = new Client();
const databases = new Databases(client, '[DATABASE_ID]');
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');
const promise = databases.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Databases } from "appwrite";
sdk
const client = new Client();
const databases = new Databases(client, '[DATABASE_ID]');
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.database.listDocuments('[COLLECTION_ID]');
const promise = databases.listDocuments('[COLLECTION_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Databases } from "appwrite";
sdk
const client = new Client();
const databases = new Databases(client, '[DATABASE_ID]');
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {});
const promise = databases.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Functions } from "appwrite";
sdk
const client = new Client();
const functions = new Functions(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.functions.createExecution('[FUNCTION_ID]');
const promise = functions.createExecution('[FUNCTION_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Functions } from "appwrite";
sdk
const client = new Client();
const functions = new Functions(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]');
const promise = functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Functions } from "appwrite";
sdk
const client = new Client();
const functions = new Functions(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.functions.listExecutions('[FUNCTION_ID]');
const promise = functions.listExecutions('[FUNCTION_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Functions } from "appwrite";
sdk
const client = new Client();
const functions = new Functions(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.functions.retryBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]');
const promise = functions.retryBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Locale } from "appwrite";
sdk
const client = new Client();
const locale = new Locale(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.locale.getContinents();
const promise = locale.getContinents();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Locale } from "appwrite";
sdk
const client = new Client();
const locale = new Locale(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.locale.getCountriesEU();
const promise = locale.getCountriesEU();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Locale } from "appwrite";
sdk
const client = new Client();
const locale = new Locale(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.locale.getCountriesPhones();
const promise = locale.getCountriesPhones();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Locale } from "appwrite";
sdk
const client = new Client();
const locale = new Locale(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.locale.getCountries();
const promise = locale.getCountries();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Locale } from "appwrite";
sdk
const client = new Client();
const locale = new Locale(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.locale.getCurrencies();
const promise = locale.getCurrencies();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Locale } from "appwrite";
sdk
const client = new Client();
const locale = new Locale(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.locale.getLanguages();
const promise = locale.getLanguages();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Locale } from "appwrite";
sdk
const client = new Client();
const locale = new Locale(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.locale.get();
const promise = locale.get();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Storage } from "appwrite";
sdk
const client = new Client();
const storage = new Storage(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.storage.createFile('[BUCKET_ID]', '[FILE_ID]', document.getElementById('uploader').files[0]);
const promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', document.getElementById('uploader').files[0]);
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Storage } from "appwrite";
sdk
const client = new Client();
const storage = new Storage(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.storage.deleteFile('[BUCKET_ID]', '[FILE_ID]');
const promise = storage.deleteFile('[BUCKET_ID]', '[FILE_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,10 +1,14 @@
const sdk = new Appwrite();
import { Client, Storage } from "appwrite";
sdk
const client = new Client();
const storage = new Storage(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let result = sdk.storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]');
const result = storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]');
console.log(result); // Resource URL
@@ -1,10 +1,14 @@
const sdk = new Appwrite();
import { Client, Storage } from "appwrite";
sdk
const client = new Client();
const storage = new Storage(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let result = sdk.storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]');
const result = storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]');
console.log(result); // Resource URL
@@ -1,10 +1,14 @@
const sdk = new Appwrite();
import { Client, Storage } from "appwrite";
sdk
const client = new Client();
const storage = new Storage(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let result = sdk.storage.getFileView('[BUCKET_ID]', '[FILE_ID]');
const result = storage.getFileView('[BUCKET_ID]', '[FILE_ID]');
console.log(result); // Resource URL
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Storage } from "appwrite";
sdk
const client = new Client();
const storage = new Storage(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.storage.getFile('[BUCKET_ID]', '[FILE_ID]');
const promise = storage.getFile('[BUCKET_ID]', '[FILE_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Storage } from "appwrite";
sdk
const client = new Client();
const storage = new Storage(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.storage.listFiles('[BUCKET_ID]');
const promise = storage.listFiles('[BUCKET_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Storage } from "appwrite";
sdk
const client = new Client();
const storage = new Storage(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.storage.updateFile('[BUCKET_ID]', '[FILE_ID]');
const promise = storage.updateFile('[BUCKET_ID]', '[FILE_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Teams } from "appwrite";
sdk
const client = new Client();
const teams = new Teams(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com');
const promise = teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Teams } from "appwrite";
sdk
const client = new Client();
const teams = new Teams(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.create('[TEAM_ID]', '[NAME]');
const promise = teams.create('[TEAM_ID]', '[NAME]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Teams } from "appwrite";
sdk
const client = new Client();
const teams = new Teams(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]');
const promise = teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Teams } from "appwrite";
sdk
const client = new Client();
const teams = new Teams(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.delete('[TEAM_ID]');
const promise = teams.delete('[TEAM_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Teams } from "appwrite";
sdk
const client = new Client();
const teams = new Teams(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]');
const promise = teams.getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Teams } from "appwrite";
sdk
const client = new Client();
const teams = new Teams(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.getMemberships('[TEAM_ID]');
const promise = teams.getMemberships('[TEAM_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Teams } from "appwrite";
sdk
const client = new Client();
const teams = new Teams(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.get('[TEAM_ID]');
const promise = teams.get('[TEAM_ID]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Teams } from "appwrite";
sdk
const client = new Client();
const teams = new Teams(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.list();
const promise = teams.list();
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Teams } from "appwrite";
sdk
const client = new Client();
const teams = new Teams(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []);
const promise = teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []);
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Teams } from "appwrite";
sdk
const client = new Client();
const teams = new Teams(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]');
const promise = teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,11 +1,15 @@
const sdk = new Appwrite();
import { Client, Teams } from "appwrite";
sdk
const client = new Client();
const teams = new Teams(client);
client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.teams.update('[TEAM_ID]', '[NAME]');
const promise = teams.update('[TEAM_ID]', '[NAME]');
promise.then(function (response) {
console.log(response); // Success
@@ -1,3 +0,0 @@
appwrite database deleteAttribute \
--collectionId [COLLECTION_ID] \
--key ''
@@ -1,2 +0,0 @@
appwrite database deleteCollection \
--collectionId [COLLECTION_ID]
@@ -1,3 +0,0 @@
appwrite database deleteIndex \
--collectionId [COLLECTION_ID] \
--key ''
@@ -1,3 +0,0 @@
appwrite database getAttribute \
--collectionId [COLLECTION_ID] \
--key ''
@@ -1,3 +0,0 @@
appwrite database getCollectionUsage \
--collectionId [COLLECTION_ID] \

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