main page
This commit is contained in:
18
node_modules/appwrite/docs/examples/teams/create-membership.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/create-membership.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.createMembership('[TEAM_ID]', []);
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/create.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/create.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.create('[TEAM_ID]', '[NAME]');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/delete-membership.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/delete-membership.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/delete.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/delete.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.delete('[TEAM_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/get-membership.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/get-membership.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.getMembership('[TEAM_ID]', '[MEMBERSHIP_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/get-prefs.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/get-prefs.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.getPrefs('[TEAM_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/get.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/get.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.get('[TEAM_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/list-memberships.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/list-memberships.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.listMemberships('[TEAM_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/list.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/list.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.list();
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/update-membership-status.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/update-membership-status.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/update-membership.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/update-membership.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.updateMembership('[TEAM_ID]', '[MEMBERSHIP_ID]', []);
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/update-name.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/update-name.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.updateName('[TEAM_ID]', '[NAME]');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
18
node_modules/appwrite/docs/examples/teams/update-prefs.md
generated
vendored
Normal file
18
node_modules/appwrite/docs/examples/teams/update-prefs.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Client, Teams } from "appwrite";
|
||||
|
||||
const client = new Client();
|
||||
|
||||
const teams = new Teams(client);
|
||||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.updatePrefs('[TEAM_ID]', {});
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
});
|
||||
Reference in New Issue
Block a user