mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-09 21:07:46 +00:00
feat: change references to cloud.appwrite.io
This commit is contained in:
@@ -51,7 +51,7 @@ Browsers have a default font size that users can change via the browser setting.
|
|||||||
import { Client, Account } from "appwrite";
|
import { Client, Account } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ Now, in your Flutter app, you can use these mock numbers for authentication:
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
Client client = Client()
|
Client client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
Account account = Account(client);
|
Account account = Account(client);
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ import { Client, Account } from "appwrite";
|
|||||||
const client = new Client();
|
const client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ Here is what this would look like using Swift.
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ You can send SMS messages using a Server SDK. To send SMS messages immediately,
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -174,7 +174,7 @@ import { Client, Account } from "appwrite";
|
|||||||
const client = new Client();
|
const client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -243,7 +243,7 @@ One of the most common examples of SDK Enums is OAuth providers. To log in with
|
|||||||
import { Client, Account, OAuthProvider } from "appwrite";
|
import { Client, Account, OAuthProvider } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ import { Appwrite, Databases, Query } from "appwrite";
|
|||||||
|
|
||||||
const client = new Appwrite();
|
const client = new Appwrite();
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('articles-demo'); // Your project ID
|
.setProject('articles-demo'); // Your project ID
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ The admin client must be set with an API key that has the necessary scopes in or
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
const adminClient = new Client()
|
const adminClient = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>')
|
.setProject('<PROJECT_ID>')
|
||||||
.setKey('<API_KEY>')
|
.setKey('<API_KEY>')
|
||||||
```
|
```
|
||||||
@@ -90,7 +90,7 @@ The session client accepts the generated session secret and sets it using the `c
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
const sessionClient = new Client()
|
const sessionClient = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>')
|
.setProject('<PROJECT_ID>')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ With the latest release of Appwrite, we have taken steps to improve type safety
|
|||||||
import { Client, Account, OAuthProvider } from "appwrite";
|
import { Client, Account, OAuthProvider } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ With the latest release of Appwrite, we have taken steps to improve type safety
|
|||||||
import { Client, Account, OAuthProvider } from "appwrite";
|
import { Client, Account, OAuthProvider } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ To define scopes in the Appwrite console, navigate to your function's settings a
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Hardcoded API endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Hardcoded API endpoint
|
||||||
.setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID)
|
.setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID)
|
||||||
.setKey(process.env.APPWRITE_API_KEY) // Static API key
|
.setKey(process.env.APPWRITE_API_KEY) // Static API key
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ def main(context):
|
|||||||
|
|
||||||
client = (
|
client = (
|
||||||
Client()
|
Client()
|
||||||
.set_endpoint("https://cloud.appwrite.io/v1")
|
.set_endpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"])
|
.set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"])
|
||||||
.set_key(os.environ["APPWRITE_API_KEY"])
|
.set_key(os.environ["APPWRITE_API_KEY"])
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ First, we initialize the login process by sending an email with the magic URL. I
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -103,7 +103,7 @@ First, we initialize the login process by sending an email. If the email has nev
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -138,7 +138,7 @@ First, we initialize the login process by sending an SMS. If the phone number ha
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ Bringing along benefits such as massively reducing friction when using routes th
|
|||||||
import { Client, Account, OAuthProvider } from "appwrite";
|
import { Client, Account, OAuthProvider } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ The admin client will need to be initialized with an API key in order to bypass
|
|||||||
import { Client } from "node-appwrite"
|
import { Client } from "node-appwrite"
|
||||||
|
|
||||||
const adminClient = new Client()
|
const adminClient = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>')
|
.setProject('<PROJECT_ID>')
|
||||||
.setKey('<YOUR_API_KEY>')
|
.setKey('<YOUR_API_KEY>')
|
||||||
```
|
```
|
||||||
@@ -86,7 +86,7 @@ A session client will allow us to make requests as an authenticated end-user wit
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
const sessionClient = new Client()
|
const sessionClient = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>')
|
.setProject('<PROJECT_ID>')
|
||||||
|
|
||||||
const session = req.cookies.session
|
const session = req.cookies.session
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ Here’s an example of how you would programmatically send an SMS to a topic usi
|
|||||||
const sdk = require('node-appwrite');
|
const sdk = require('node-appwrite');
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ import { Client, Account } from 'appwrite'
|
|||||||
|
|
||||||
// Initialize Appwrite client
|
// Initialize Appwrite client
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
client.setEndpoint('https://cloud.appwrite.io/v1').setProject('<PROJECT_ID>')
|
client.setEndpoint('https://[region].cloud.appwrite.io/v1').setProject('<PROJECT_ID>')
|
||||||
|
|
||||||
// Initialize Account
|
// Initialize Account
|
||||||
const account = new Account(client)
|
const account = new Account(client)
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ Once that is done, you can use any of the Appwrite client SDKs to implement OAut
|
|||||||
import { Client, Account, OAuthProvider } from "appwrite";
|
import { Client, Account, OAuthProvider } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ Appwrite Authentication also leverages password hashing algorithms to allow deve
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ import { Client, Account, OAuthProvider } from 'appwrite'
|
|||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')// The Appwrite API endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')// The Appwrite API endpoint
|
||||||
.setProject('project-id')// Your Appwrite project IDexport const account = new Account(client)
|
.setProject('project-id')// Your Appwrite project IDexport const account = new Account(client)
|
||||||
export { OAuthProvider }
|
export { OAuthProvider }
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ First, we initialize the login process by sending an email with the magic URL. I
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -100,7 +100,7 @@ First, we initialize the login process by sending an email. If the email has nev
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -135,7 +135,7 @@ First, we initialize the login process by sending an SMS. If the phone number ha
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ One of the data retrieval APIs the Appwrite Database offers is a list documents
|
|||||||
import { Client, Databases, Query } from "appwrite";
|
import { Client, Databases, Query } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ const client = new Client();
|
|||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setLocale('fr') // Your locale
|
.setLocale('fr') // Your locale
|
||||||
;
|
;
|
||||||
@@ -152,7 +152,7 @@ void main() { // Init SDK
|
|||||||
Account account = Account(client);
|
Account account = Account(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setLocale('fr') // Your locale
|
.setLocale('fr') // Your locale
|
||||||
;
|
;
|
||||||
@@ -172,7 +172,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Account
|
import io.appwrite.services.Account
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setLocale('fr') // Your locale
|
.setLocale('fr') // Your locale
|
||||||
|
|
||||||
@@ -185,7 +185,7 @@ val response = account.createVerification('https://example.com')
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setLocale('fr') // Your locale
|
.setLocale('fr') // Your locale
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ In the following example, we are creating a document that can be read by anyone,
|
|||||||
import { Client, Databases, Permission, Role } from "appwrite";
|
import { Client, Databases, Permission, Role } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -104,7 +104,7 @@ In the following example, we are creating a document that can be read by members
|
|||||||
import { Client, Databases, Permission, Role } from "appwrite";
|
import { Client, Databases, Permission, Role } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ Appwrite SDKs also support GraphQL in addition to the REST services.
|
|||||||
import { Client, Graphql } from "appwrite";
|
import { Client, Graphql } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your Appwrite Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your Appwrite Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const graphql = new Graphql(client);
|
const graphql = new Graphql(client);
|
||||||
@@ -270,7 +270,7 @@ mutation.then(response => {
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your Appwrite Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your Appwrite Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
final graphql = Graphql(client);
|
final graphql = Graphql(client);
|
||||||
@@ -307,7 +307,7 @@ mutation.then((response) {
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let graphql = Graphql(client)
|
let graphql = Graphql(client)
|
||||||
@@ -348,7 +348,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Graphql
|
import io.appwrite.services.Graphql
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val graphql = Graphql(client)
|
val graphql = Graphql(client)
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ This lets you build an interactive and responsive user experience by providing i
|
|||||||
import { Client } from "appwrite";
|
import { Client } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
// Subscribe to files channel
|
// Subscribe to files channel
|
||||||
@@ -31,7 +31,7 @@ client.subscribe('files', response => {
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final realtime = Realtime(client);
|
final realtime = Realtime(client);
|
||||||
@@ -52,7 +52,7 @@ import Appwrite
|
|||||||
import AppwriteModels
|
import AppwriteModels
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let realtime = Realtime(client)
|
let realtime = Realtime(client)
|
||||||
@@ -71,7 +71,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Realtime
|
import io.appwrite.services.Realtime
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
val realtime = Realtime(client)
|
val realtime = Realtime(client)
|
||||||
@@ -117,7 +117,7 @@ In this example we are subscribing to all updates related to our account by usin
|
|||||||
import { Client } from "appwrite";
|
import { Client } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
client.subscribe('account', response => {
|
client.subscribe('account', response => {
|
||||||
@@ -130,7 +130,7 @@ client.subscribe('account', response => {
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final realtime = Realtime(client);
|
final realtime = Realtime(client);
|
||||||
@@ -148,7 +148,7 @@ import Appwrite
|
|||||||
import AppwriteModels
|
import AppwriteModels
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let realtime = Realtime(client)
|
let realtime = Realtime(client)
|
||||||
@@ -164,7 +164,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Realtime
|
import io.appwrite.services.Realtime
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
val realtime = Realtime(client)
|
val realtime = Realtime(client)
|
||||||
@@ -188,7 +188,7 @@ In this example we are listening to the document A and all files by subscribing
|
|||||||
import { Client } from "appwrite";
|
import { Client } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
client.subscribe(['collections.A.documents.A', 'files'], response => {
|
client.subscribe(['collections.A.documents.A', 'files'], response => {
|
||||||
@@ -201,7 +201,7 @@ client.subscribe(['collections.A.documents.A', 'files'], response => {
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final realtime = Realtime(client);
|
final realtime = Realtime(client);
|
||||||
@@ -219,7 +219,7 @@ import Appwrite
|
|||||||
import AppwriteModels
|
import AppwriteModels
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let realtime = Realtime(client)
|
let realtime = Realtime(client)
|
||||||
@@ -235,7 +235,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Realtime
|
import io.appwrite.services.Realtime
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
val realtime = Realtime(client)
|
val realtime = Realtime(client)
|
||||||
|
|
||||||
@@ -256,7 +256,7 @@ If you no longer want to receive updates from a subscription, you can unsubscrib
|
|||||||
import { Client } from "appwrite";
|
import { Client } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const unsubscribe = client.subscribe('files', response => {
|
const unsubscribe = client.subscribe('files', response => {
|
||||||
@@ -272,7 +272,7 @@ unsubscribe();
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final realtime = Realtime(client);
|
final realtime = Realtime(client);
|
||||||
@@ -308,7 +308,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Realtime
|
import io.appwrite.services.Realtime
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
val realtime = Realtime(client)
|
val realtime = Realtime(client)
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ Preferences are stored as a key-value JSON object. The maximum allowed size for
|
|||||||
import { Client, Account } from "appwrite";
|
import { Client, Account } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -48,7 +48,7 @@ promise.then(function (response) {
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -64,7 +64,7 @@ final user = await account.updatePrefs(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
@@ -81,7 +81,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Account
|
import io.appwrite.services.Account
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val account = Account(client)
|
val account = Account(client)
|
||||||
@@ -115,7 +115,7 @@ After a user's preferences are updated, they can be retrieved using the [get acc
|
|||||||
import { Client, Account } from "appwrite";
|
import { Client, Account } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -132,7 +132,7 @@ promise.then(function (response) {
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -144,7 +144,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Account
|
import io.appwrite.services.Account
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val account = Account(client)
|
val account = Account(client)
|
||||||
@@ -155,7 +155,7 @@ val prefs = account.getPrefs()
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Create an anonymous session with [Create Anonymous Session](/docs/references/clo
|
|||||||
import { Client, Account } from "appwrite";
|
import { Client, Account } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -34,7 +34,7 @@ promise.then(function (response) {
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -45,7 +45,7 @@ final user = await account.createAnonymousSession();
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
@@ -57,7 +57,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Account
|
import io.appwrite.services.Account
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val account = Account(client)
|
val account = Account(client)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Once you have your server endpoint prepared either in an Appwrite Function or a
|
|||||||
import { Client, Users } from "node-appwrite";
|
import { Client, Users } from "node-appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
.setKey('<API_KEY>'); // Your project API key
|
.setKey('<API_KEY>'); // Your project API key
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ use Appwrite\Client;
|
|||||||
use Appwrite\Users;
|
use Appwrite\Users;
|
||||||
|
|
||||||
$client = (new Client())
|
$client = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('<API_KEY>'); // Your project API key
|
->setKey('<API_KEY>'); // Your project API key
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ from appwrite.users import Users
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your project API key
|
.set_key('<API_KEY>') # Your project API key
|
||||||
)
|
)
|
||||||
@@ -66,7 +66,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your project API key
|
.set_key('<API_KEY>') # Your project API key
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ secret = token['secret']
|
|||||||
import { Client, Users } from "https://deno.land/x/appwrite/mod.ts";
|
import { Client, Users } from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>'); // Your project API key
|
.setKey('<API_KEY>'); // Your project API key
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ const secret = token.secret;
|
|||||||
import 'package:dart_appwrite/dart_appwrite.dart';
|
import 'package:dart_appwrite/dart_appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>'); // Your project API key
|
.setKey('<API_KEY>'); // Your project API key
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.Users
|
import io.appwrite.Users
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your project API key
|
.setKey("<API_KEY>") // Your project API key
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@ val secret = token.secret
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your project API key
|
.setKey("<API_KEY>") // Your project API key
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ let secret = token.secret
|
|||||||
using Appwrite;
|
using Appwrite;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("<API_KEY>"); // Your project API key
|
.SetKey("<API_KEY>"); // Your project API key
|
||||||
|
|
||||||
@@ -166,7 +166,7 @@ Once the client receives a token secret, we can use it to authenticate the user
|
|||||||
import { Client, Account } from "appwrite";
|
import { Client, Account } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -181,7 +181,7 @@ const session = await account.createSession(
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -195,7 +195,7 @@ final session = await account.createSession(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
|
|
||||||
let account = Account(client);
|
let account = Account(client);
|
||||||
@@ -211,7 +211,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Account
|
import io.appwrite.services.Account
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
|
|
||||||
val account = Account(client);
|
val account = Account(client);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ Send an an email to initiate the authentication process. A **new account** will
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -47,7 +47,7 @@ const userId = sessionToken.userId;
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -63,7 +63,7 @@ final userId = sessionToken.userId;
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
|
|
||||||
let account = Account(client);
|
let account = Account(client);
|
||||||
@@ -82,7 +82,7 @@ import io.appwrite.services.Account
|
|||||||
import io.appwrite.ID
|
import io.appwrite.ID
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
|
|
||||||
val account = Account(client);
|
val account = Account(client);
|
||||||
@@ -117,7 +117,7 @@ After initiating the email OTP authentication process, the returned user ID and
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -132,7 +132,7 @@ const session = await account.createSession(
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -146,7 +146,7 @@ final session = await account.createSession(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
|
|
||||||
let account = Account(client);
|
let account = Account(client);
|
||||||
@@ -162,7 +162,7 @@ import io.appwrite.services.Account
|
|||||||
import io.appwrite.ID
|
import io.appwrite.ID
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
|
|
||||||
val account = Account(client);
|
val account = Account(client);
|
||||||
@@ -199,7 +199,7 @@ By default, security phrases are disabled. To enable a security phrase in Email
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ You can generate a JWT like this on a [Client SDK](/docs/sdks#client).
|
|||||||
import { Client, Account } from "appwrite";
|
import { Client, Account } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -38,7 +38,7 @@ const user = await account.createJWT();
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -49,7 +49,7 @@ final jwt = await account.createJWT();
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
@@ -61,7 +61,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Account
|
import io.appwrite.services.Account
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val account = Account(client)
|
val account = Account(client)
|
||||||
@@ -85,7 +85,7 @@ Use JWTs tokens like this in a [Server SDK](/docs/sdks#server).
|
|||||||
const { Client } = require('node-appwrite');
|
const { Client } = require('node-appwrite');
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -94,7 +94,7 @@ const client = new Client()
|
|||||||
use Appwrite\Client;
|
use Appwrite\Client;
|
||||||
|
|
||||||
$client = (new Client())
|
$client = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
->setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -105,7 +105,7 @@ from appwrite.client import Client
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token
|
.set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
@@ -117,7 +117,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token
|
.set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -126,7 +126,7 @@ client = Client.new
|
|||||||
import { Client } from "https://deno.land/x/appwrite/mod.ts";
|
import { Client } from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
let client = new Client()
|
let client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -135,7 +135,7 @@ let client = new Client()
|
|||||||
import 'package:dart_appwrite/dart_appwrite.dart';
|
import 'package:dart_appwrite/dart_appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -144,7 +144,7 @@ final client = Client()
|
|||||||
import io.appwrite.Client
|
import io.appwrite.Client
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token
|
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -153,7 +153,7 @@ val client = Client()
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token
|
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -162,7 +162,7 @@ let client = Client()
|
|||||||
using Appwrite;
|
using Appwrite;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token
|
.SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -194,7 +194,7 @@ If you're authenticated on the client-side as `user-a` and created a JWT `'eyJJ9
|
|||||||
const { Client } = require('node-appwrite');
|
const { Client } = require('node-appwrite');
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -210,7 +210,7 @@ const documents = await databases.listDocuments(
|
|||||||
use Appwrite\Client;
|
use Appwrite\Client;
|
||||||
|
|
||||||
$client = (new Client())
|
$client = (new Client())
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Tokens
|
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Tokens
|
||||||
|
|
||||||
@@ -228,7 +228,7 @@ from appwrite.client import Client
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token
|
.set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
@@ -247,7 +247,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token
|
.set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -263,7 +263,7 @@ documents = databases.list_documents(
|
|||||||
import { Client } from "https://deno.land/x/appwrite/mod.ts";
|
import { Client } from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
let client = new Client()
|
let client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -279,7 +279,7 @@ let documents = await databases.listDocuments(
|
|||||||
import 'package:dart_appwrite/dart_appwrite.dart';
|
import 'package:dart_appwrite/dart_appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
.setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -295,7 +295,7 @@ final documents = await databases.listDocuments(
|
|||||||
import io.appwrite.Client
|
import io.appwrite.Client
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token
|
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -311,7 +311,7 @@ val documents = databases.listDocuments(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token
|
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -329,7 +329,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token
|
.SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -372,7 +372,7 @@ If the same request is made where the [Server SDK](/docs/sdks#server)'s `client`
|
|||||||
const { Client } = require('node-appwrite');
|
const { Client } = require('node-appwrite');
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('98fd4...a2ad2'); // Your secret API key
|
.setKey('98fd4...a2ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -389,7 +389,7 @@ const documents = await databases.listDocuments(
|
|||||||
use Appwrite\Client;
|
use Appwrite\Client;
|
||||||
|
|
||||||
$client = (new Client())
|
$client = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('98fd4...a2ad2'); // Your secret API key
|
->setKey('98fd4...a2ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -407,7 +407,7 @@ from appwrite.client import Client
|
|||||||
|
|
||||||
client = Client()
|
client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') // Your project ID
|
.set_project('<PROJECT_ID>') // Your project ID
|
||||||
.set_key('98fd4...a2ad2') // Your secret API key
|
.set_key('98fd4...a2ad2') // Your secret API key
|
||||||
)
|
)
|
||||||
@@ -426,7 +426,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('98fd4...a2ad2') # Your secret API key
|
.set_key('98fd4...a2ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -442,7 +442,7 @@ documents = databases.list_documents(
|
|||||||
import { Client } from "https://deno.land/x/appwrite/mod.ts";
|
import { Client } from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
let client = new Client()
|
let client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('98fd4...a2ad2'); // Your secret API key
|
.setKey('98fd4...a2ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -458,7 +458,7 @@ let documents = await databases.listDocuments(
|
|||||||
import 'package:dart_appwrite/dart_appwrite.dart';
|
import 'package:dart_appwrite/dart_appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('98fd4...a2ad2'); // Your secret API key
|
.setKey('98fd4...a2ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -474,7 +474,7 @@ final documents = await databases.listDocuments(
|
|||||||
import io.appwrite.Client
|
import io.appwrite.Client
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey('98fd4...a2ad2'); // Your secret API key
|
.setKey('98fd4...a2ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -490,7 +490,7 @@ val documents = databases.listDocuments(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey('98fd4...a2ad2'); // Your secret API key
|
.setKey('98fd4...a2ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -508,7 +508,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey('98fd4...a2ad2'); // Your secret API key
|
.SetKey('98fd4...a2ad2'); // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ Labels are a good way to categorize a user to grant them access to resources. Fo
|
|||||||
const sdk = require('node-appwrite');
|
const sdk = require('node-appwrite');
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('98fd4...a2ad2'); // Your secret API key
|
.setKey('98fd4...a2ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ use Appwrite\Role;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('98fd4...a2ad2'); // Your secret API key
|
.setKey('98fd4...a2ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ from appwrite.role import Role
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('98fd4...a2ad2') # Your secret API key
|
.set_key('98fd4...a2ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -75,7 +75,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('98fd4...a2ad2') # Your secret API key
|
.set_key('98fd4...a2ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -91,7 +91,7 @@ response = users.update_labels(
|
|||||||
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
let client = new sdk.Client()
|
let client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('98fd4...a2ad2'); // Your secret API key
|
.setKey('98fd4...a2ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -112,7 +112,7 @@ promise.then(function (response) {
|
|||||||
import 'package:dart_appwrite/dart_appwrite.dart';
|
import 'package:dart_appwrite/dart_appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('98fd4...a2ad2'); // Your secret API key
|
.setKey('98fd4...a2ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ import io.appwrite.Role
|
|||||||
import io.appwrite.services.Users
|
import io.appwrite.services.Users
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("98fd4...a2ad2") // Your secret API key
|
.setKey("98fd4...a2ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ val response = users.updateLabels(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("98fd4...a2ad2") // Your secret API key
|
.setKey("98fd4...a2ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@ let response = try await users.updateLabels(
|
|||||||
using Appwrite;
|
using Appwrite;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("98fd4...a2ad2"); // Your secret API key
|
.SetKey("98fd4...a2ad2"); // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Initialize the log in process with the [Create Magic URL Token](/docs/references
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -50,7 +50,7 @@ After receiving your secret from an email, you can create a session.
|
|||||||
import { Client, Account } from "appwrite";
|
import { Client, Account } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const account = new Account(client);
|
|||||||
const avatars = new Avatars(client);
|
const avatars = new Avatars(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
```
|
```
|
||||||
@@ -46,7 +46,7 @@ void main() { // Init SDK
|
|||||||
Avatars avatars = Avatars(client);
|
Avatars avatars = Avatars(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
@@ -56,7 +56,7 @@ void main() { // Init SDK
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
@@ -68,7 +68,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Account
|
import io.appwrite.services.Account
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val account = Account(client)
|
val account = Account(client)
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ The scope is provider-specific and can be found in the provider's documentation.
|
|||||||
import { Client, Account, OAuthProvider } from "appwrite";
|
import { Client, Account, OAuthProvider } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -57,7 +57,7 @@ import 'package:appwrite/appwrite.dart';
|
|||||||
import 'package:appwrite/enums.dart';
|
import 'package:appwrite/enums.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -105,7 +105,7 @@ import Appwrite
|
|||||||
import AppwriteEnums
|
import AppwriteEnums
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
@@ -139,7 +139,7 @@ import io.appwrite.services.Account
|
|||||||
import io.appwrite.enums.OAuthProvider
|
import io.appwrite.enums.OAuthProvider
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val account = Account(client)
|
val account = Account(client)
|
||||||
@@ -183,7 +183,7 @@ console.log(session.providerAccessToken);
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -201,7 +201,7 @@ print(session.providerAccessToken);
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
@@ -220,7 +220,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Account
|
import io.appwrite.services.Account
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val account = Account(client)
|
val account = Account(client)
|
||||||
@@ -272,7 +272,7 @@ promise.then(function (response) {
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
Account account = Account(client);
|
Account account = Account(client);
|
||||||
@@ -285,7 +285,7 @@ final result = await account.updateSession(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
@@ -299,7 +299,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Account
|
import io.appwrite.services.Account
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val account = Account(client)
|
val account = Account(client)
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ Send an SMS message to initiate the authentication process. A **new account** wi
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -37,7 +37,7 @@ const userId = token.userId;
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -53,7 +53,7 @@ final userId = token.userId;
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
|
|
||||||
let account = Account(client);
|
let account = Account(client);
|
||||||
@@ -72,7 +72,7 @@ import io.appwrite.services.Account
|
|||||||
import io.appwrite.ID
|
import io.appwrite.ID
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
|
|
||||||
val account = Account(client);
|
val account = Account(client);
|
||||||
@@ -108,7 +108,7 @@ After initiating the phone authentication process, the returned user ID and secr
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -123,7 +123,7 @@ const session = await account.createSession(
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -137,7 +137,7 @@ final session = await account.createSession(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
|
|
||||||
let account = Account(client);
|
let account = Account(client);
|
||||||
@@ -153,7 +153,7 @@ import io.appwrite.services.Account
|
|||||||
import io.appwrite.ID
|
import io.appwrite.ID
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
|
|
||||||
val account = Account(client);
|
val account = Account(client);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ You can use the Appwrite [Client SDKs](/docs/sdks#client) to create an account u
|
|||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -29,7 +29,7 @@ const user = await account.create(
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
final account = Account(client);
|
final account = Account(client);
|
||||||
@@ -44,7 +44,7 @@ final user = await account.create(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let account = Account(client)
|
let account = Account(client)
|
||||||
@@ -61,7 +61,7 @@ import io.appwrite.services.Account
|
|||||||
import io.appwrite.ID
|
import io.appwrite.ID
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val account = Account(client)
|
val account = Account(client)
|
||||||
@@ -85,7 +85,7 @@ mutation {
|
|||||||
```client-react-native
|
```client-react-native
|
||||||
import { Client, Account, ID } from "appwrite";
|
import { Client, Account, ID } from "appwrite";
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
@@ -501,7 +501,7 @@ class Appwrite {
|
|||||||
|
|
||||||
public init() {
|
public init() {
|
||||||
self.client = Client()
|
self.client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
self.account = Account(client)
|
self.account = Account(client)
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ The API key should have the following scope in order to perform authentication:
|
|||||||
import { Client } from "node-appwrite"; // Using the server SDK
|
import { Client } from "node-appwrite"; // Using the server SDK
|
||||||
|
|
||||||
const adminClient = new Client()
|
const adminClient = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||||
```
|
```
|
||||||
@@ -67,7 +67,7 @@ use Appwrite\Client;
|
|||||||
use Appwrite\Services\Account;
|
use Appwrite\Services\Account;
|
||||||
|
|
||||||
$adminClient = (new Client())
|
$adminClient = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('<YOUR_API_KEY>'); // Your secret API key
|
->setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ You should create a new client for each request and **never** share the client b
|
|||||||
{% multicode %}
|
{% multicode %}
|
||||||
```server-nodejs
|
```server-nodejs
|
||||||
const sessionClient = new Client()
|
const sessionClient = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const session = req.cookies.session; // Get the session cookie from the request
|
const session = req.cookies.session; // Get the session cookie from the request
|
||||||
@@ -97,7 +97,7 @@ if (session) {
|
|||||||
```
|
```
|
||||||
```php
|
```php
|
||||||
$sessionClient = (new Client())
|
$sessionClient = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>'); // Your project ID
|
->setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
$session = $_COOKIE['session']; // Get the session cookie from the request
|
$session = $_COOKIE['session']; // Get the session cookie from the request
|
||||||
@@ -290,7 +290,7 @@ const client = new sdk.Client();
|
|||||||
const account = new sdk.Account(client);
|
const account = new sdk.Account(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -311,7 +311,7 @@ use Appwrite\Services\Account;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -346,7 +346,7 @@ Create an initial endpoint that redirects the user to the OAuth2 provider's auth
|
|||||||
import { Client, Account, OAuthProvider } from "node-appwrite"; // Using the server SDK
|
import { Client, Account, OAuthProvider } from "node-appwrite"; // Using the server SDK
|
||||||
|
|
||||||
const adminClient = new Client()
|
const adminClient = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>'); // Your secret API key
|
.setKey('<API_KEY>'); // Your secret API key
|
||||||
|
|
||||||
@@ -369,7 +369,7 @@ use Appwrite\Services\Account;
|
|||||||
use Appwrite\Enums\OAuthProvider;
|
use Appwrite\Enums\OAuthProvider;
|
||||||
|
|
||||||
$adminClient = (new Client())
|
$adminClient = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('<API_KEY>'); // Your secret API key
|
->setKey('<API_KEY>'); // Your secret API key
|
||||||
|
|
||||||
@@ -420,7 +420,7 @@ use Appwrite\Client;
|
|||||||
use Appwrite\Services\Account;
|
use Appwrite\Services\Account;
|
||||||
|
|
||||||
$adminClient = (new Client())
|
$adminClient = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('<API_KEY>'); // Your secret API key
|
->setKey('<API_KEY>'); // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ const client = new Client();
|
|||||||
const teams = new Teams(client);
|
const teams = new Teams(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ void main() { // Init SDK
|
|||||||
Teams teams = Teams(client);
|
Teams teams = Teams(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
Future result = teams.create(
|
Future result = teams.create(
|
||||||
@@ -69,7 +69,7 @@ void main() { // Init SDK
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let teams = Teams(client)
|
let teams = Teams(client)
|
||||||
@@ -85,7 +85,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Teams
|
import io.appwrite.services.Teams
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val teams = Teams(client)
|
val teams = Teams(client)
|
||||||
@@ -112,7 +112,7 @@ const client = new Client();
|
|||||||
const teams = new Teams(client);
|
const teams = new Teams(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ void main() { // Init SDK
|
|||||||
Teams teams = Teams(client);
|
Teams teams = Teams(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
Future result = teams.createMembership(
|
Future result = teams.createMembership(
|
||||||
@@ -157,7 +157,7 @@ void main() { // Init SDK
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let teams = Teams(client)
|
let teams = Teams(client)
|
||||||
@@ -173,7 +173,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Teams
|
import io.appwrite.services.Teams
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val teams = Teams(client)
|
val teams = Teams(client)
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const client = new sdk.Client();
|
|||||||
const databases = new sdk.Databases(client);
|
const databases = new sdk.Databases(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -53,7 +53,7 @@ let client = new sdk.Client();
|
|||||||
let databases = new sdk.Databases(client);
|
let databases = new sdk.Databases(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -76,7 +76,7 @@ use Appwrite\Services\Databases;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -92,7 +92,7 @@ from appwrite.services.databases import Databases
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -107,7 +107,7 @@ require 'Appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ void main() { // Init SDK
|
|||||||
Databases databases = Databases(client);
|
Databases databases = Databases(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -166,7 +166,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Databases
|
import io.appwrite.services.Databases
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -184,7 +184,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Databases;
|
import io.appwrite.services.Databases;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -208,7 +208,7 @@ databases.createCollection(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const client = new sdk.Client();
|
|||||||
const databases = new sdk.Databases(client);
|
const databases = new sdk.Databases(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -48,7 +48,7 @@ let client = new sdk.Client();
|
|||||||
let databases = new sdk.Databases(client);
|
let databases = new sdk.Databases(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -71,7 +71,7 @@ use Appwrite\Services\Databases;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -87,7 +87,7 @@ from appwrite.services.databases import Databases
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -102,7 +102,7 @@ require 'Appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ void main() { // Init SDK
|
|||||||
Databases databases = Databases(client);
|
Databases databases = Databases(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -159,7 +159,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Databases
|
import io.appwrite.services.Databases
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -176,7 +176,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Databases;
|
import io.appwrite.services.Databases;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -199,7 +199,7 @@ databases.create(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ In most use cases, you will create documents programmatically.
|
|||||||
import { Client, Databases, ID } from "appwrite";
|
import { Client, Databases, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -42,7 +42,7 @@ import 'package:appwrite/appwrite.dart';
|
|||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -65,7 +65,7 @@ import AppwriteModels
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let databases = Databases(client)
|
let databases = Databases(client)
|
||||||
@@ -88,7 +88,7 @@ import io.appwrite.services.Databases
|
|||||||
|
|
||||||
suspend fun main() {
|
suspend fun main() {
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
val databases = Databases(client)
|
val databases = Databases(client)
|
||||||
@@ -148,7 +148,7 @@ You can change this through [pagination](/docs/products/databases/pagination).
|
|||||||
import { Client, Databases, Query } from "appwrite";
|
import { Client, Databases, Query } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -172,7 +172,7 @@ import 'package:appwrite/appwrite.dart';
|
|||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -196,7 +196,7 @@ import AppwriteModels
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let databases = Databases(client)
|
let databases = Databases(client)
|
||||||
@@ -221,7 +221,7 @@ import io.appwrite.services.Databases
|
|||||||
|
|
||||||
suspend fun main() {
|
suspend fun main() {
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
val databases = Databases(client)
|
val databases = Databases(client)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ you can specify the order of the documents returned using the `Query.orderAsc()`
|
|||||||
import { Client, Databases, Query } from "appwrite";
|
import { Client, Databases, Query } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -36,7 +36,7 @@ import 'package:appwrite/appwrite.dart';
|
|||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -61,7 +61,7 @@ import AppwriteModels
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
let databases = Databases(client)
|
let databases = Databases(client)
|
||||||
@@ -86,7 +86,7 @@ import io.appwrite.services.Databases
|
|||||||
|
|
||||||
suspend fun main() {
|
suspend fun main() {
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
val databases = Databases(client)
|
val databases = Databases(client)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ The `Query.offset()` is number of records you wish to skip before selecting reco
|
|||||||
import { Client, Databases, Query } from "appwrite";
|
import { Client, Databases, Query } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -54,7 +54,7 @@ import 'package:appwrite/appwrite.dart';
|
|||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -84,7 +84,7 @@ import AppwriteModels
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let databases = Databases(client)
|
let databases = Databases(client)
|
||||||
@@ -115,7 +115,7 @@ import io.appwrite.services.Databases
|
|||||||
|
|
||||||
suspend fun main() {
|
suspend fun main() {
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
val databases = Databases(client)
|
val databases = Databases(client)
|
||||||
@@ -160,7 +160,7 @@ Pass the first document's ID into the `Query.cursorBefore(firstId)` query method
|
|||||||
import { Databases, Query } from "appwrite";
|
import { Databases, Query } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -192,7 +192,7 @@ import 'package:appwrite/appwrite.dart';
|
|||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -224,7 +224,7 @@ import AppwriteModels
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let databases = Databases(client)
|
let databases = Databases(client)
|
||||||
@@ -258,7 +258,7 @@ import io.appwrite.services.Databases
|
|||||||
|
|
||||||
suspend fun main() {
|
suspend fun main() {
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
val databases = Databases(client)
|
val databases = Databases(client)
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ You can change this through [pagination](/docs/products/databases/pagination).
|
|||||||
import { Client, Databases, Query } from "appwrite";
|
import { Client, Databases, Query } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -329,7 +329,7 @@ import 'package:appwrite/appwrite.dart';
|
|||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -354,7 +354,7 @@ import AppwriteModels
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let databases = Databases(client)
|
let databases = Databases(client)
|
||||||
@@ -380,7 +380,7 @@ import io.appwrite.services.Databases
|
|||||||
|
|
||||||
suspend fun main() {
|
suspend fun main() {
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
val databases = Databases(client)
|
val databases = Databases(client)
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Then, in the `My books` collection, copy the collection ID, and replace `<COLLEC
|
|||||||
import { Client, Databases, ID } from "appwrite";
|
import { Client, Databases, ID } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -56,7 +56,7 @@ import 'package:appwrite/appwrite.dart';
|
|||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -79,7 +79,7 @@ import AppwriteModels
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let databases = Databases(client)
|
let databases = Databases(client)
|
||||||
@@ -102,7 +102,7 @@ import io.appwrite.services.Databases
|
|||||||
|
|
||||||
suspend fun main() {
|
suspend fun main() {
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
val databases = Databases(client)
|
val databases = Databases(client)
|
||||||
@@ -146,7 +146,7 @@ Like the previous step, replace `<PROJECT_ID>`, `<DATABASE_ID>`, and`<COLLECTION
|
|||||||
import { Client, Databases, Query } from "appwrite";
|
import { Client, Databases, Query } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -170,7 +170,7 @@ import 'package:appwrite/appwrite.dart';
|
|||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -194,7 +194,7 @@ import AppwriteModels
|
|||||||
|
|
||||||
func main() async throws{
|
func main() async throws{
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let databases = Databases(client)
|
let databases = Databases(client)
|
||||||
@@ -219,7 +219,7 @@ import io.appwrite.services.Databases
|
|||||||
|
|
||||||
suspend fun main() {
|
suspend fun main() {
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
val databases = Databases(client)
|
val databases = Databases(client)
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ A relationship attribute with the key `reviews` is added to the movies collectio
|
|||||||
const { Client, Databases } = require('node-appwrite');
|
const { Client, Databases } = require('node-appwrite');
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -110,7 +110,7 @@ use \Appwrite\Client;
|
|||||||
use \Appwrite\Services\Databases;
|
use \Appwrite\Services\Databases;
|
||||||
|
|
||||||
$client = (new Client())
|
$client = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>'); // Your project ID
|
->setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
$databases = new Databases($client);
|
$databases = new Databases($client);
|
||||||
@@ -133,7 +133,7 @@ from appwrite.client import Client
|
|||||||
from appwrite.services.databases import Databases
|
from appwrite.services.databases import Databases
|
||||||
|
|
||||||
client = (Client()
|
client = (Client()
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>')) # Your project ID
|
.set_project('<PROJECT_ID>')) # Your project ID
|
||||||
|
|
||||||
databases = Databases(client)
|
databases = Databases(client)
|
||||||
@@ -157,7 +157,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1')# Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1')# Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
|
|
||||||
databases = Databases.new(client)
|
databases = Databases.new(client)
|
||||||
@@ -179,7 +179,7 @@ databases.create_relationship_attribute(
|
|||||||
import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts";
|
import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>"); // Your project ID
|
.setProject("<PROJECT_ID>"); // Your project ID
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -201,7 +201,7 @@ databases.createRelationshipAttribute(
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -224,7 +224,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Databases
|
import io.appwrite.services.Databases
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val databases = Databases(client)
|
val databases = Databases(client)
|
||||||
@@ -246,7 +246,7 @@ databases.createRelationshipAttribute(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let databases = Databases(client)
|
let databases = Databases(client)
|
||||||
@@ -271,7 +271,7 @@ using Appwrite;
|
|||||||
using Appwrite.Services;
|
using Appwrite.Services;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndpoint("https://cloud.appwrite.io/v1")
|
.SetEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.SetProject("<PROJECT_ID>");
|
.SetProject("<PROJECT_ID>");
|
||||||
|
|
||||||
var databases = new Databases(client);
|
var databases = new Databases(client);
|
||||||
@@ -303,7 +303,7 @@ You can create both the **parent** and **child** at once in a relationship by ne
|
|||||||
const { Client, Databases, ID } = require('node-appwrite');
|
const { Client, Databases, ID } = require('node-appwrite');
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -327,7 +327,7 @@ await databases.createDocument(
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -351,7 +351,7 @@ await databases.createDocument(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let databases = Database(client: client)
|
let databases = Database(client: client)
|
||||||
@@ -377,7 +377,7 @@ import io.appwrite.services.Database
|
|||||||
import io.appwrite.ID
|
import io.appwrite.ID
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val databases = Database(client)
|
val databases = Database(client)
|
||||||
@@ -412,7 +412,7 @@ Here's an example connecting reviews to a movie.
|
|||||||
const { Client, Databases, ID } = require('node-appwrite');
|
const { Client, Databases, ID } = require('node-appwrite');
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -436,7 +436,7 @@ await databases.createDocument(
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -460,7 +460,7 @@ await databases.createDocument(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
let databases = Database(client: client)
|
let databases = Database(client: client)
|
||||||
@@ -486,7 +486,7 @@ import io.appwrite.services.Database
|
|||||||
import io.appwrite.ID
|
import io.appwrite.ID
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val databases = Database(client)
|
val databases = Database(client)
|
||||||
@@ -520,7 +520,7 @@ Relationships can be updated by updating the relationship attribute.
|
|||||||
const { Client, Databases } = require('node-appwrite');
|
const { Client, Databases } = require('node-appwrite');
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -544,7 +544,7 @@ await databases.updateDocument(
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -568,7 +568,7 @@ await databases.updateDocument(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let databases = Database(client: client)
|
let databases = Database(client: client)
|
||||||
@@ -593,7 +593,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Database
|
import io.appwrite.services.Database
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
val databases = Database(client)
|
val databases = Database(client)
|
||||||
@@ -639,7 +639,7 @@ If the on-delete behavior is **cascade**, deleting the parent documents also del
|
|||||||
const { Client, Databases } = require('node-appwrite');
|
const { Client, Databases } = require('node-appwrite');
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -655,7 +655,7 @@ await databases.deleteDocument(
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -671,7 +671,7 @@ await databases.deleteDocument(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let databases = Database(client: client)
|
let databases = Database(client: client)
|
||||||
@@ -688,7 +688,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Database
|
import io.appwrite.services.Database
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
val databases = Database(client)
|
val databases = Database(client)
|
||||||
@@ -715,7 +715,7 @@ You can also provide explicit permissions to the child document if they should b
|
|||||||
const { Client, Databases, ID } = require('node-appwrite');
|
const { Client, Databases, ID } = require('node-appwrite');
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
@@ -743,7 +743,7 @@ await databases.createDocument(
|
|||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
|
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final databases = Databases(client);
|
final databases = Databases(client);
|
||||||
@@ -771,7 +771,7 @@ await databases.createDocument(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let databases = Database(client: client)
|
let databases = Database(client: client)
|
||||||
@@ -799,7 +799,7 @@ databases.createDocument(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let databases = Database(client: client)
|
let databases = Database(client: client)
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -134,7 +134,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -158,7 +158,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -182,7 +182,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -205,7 +205,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -229,7 +229,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -254,7 +254,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -283,7 +283,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -313,7 +313,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -341,7 +341,7 @@ messaging.updateApnsProvider(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -128,7 +128,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -149,7 +149,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -170,7 +170,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -190,7 +190,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -211,7 +211,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -233,7 +233,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -259,7 +259,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -286,7 +286,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -311,7 +311,7 @@ messaging.updateFCMProvider(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -110,7 +110,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -126,7 +126,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('<API_KEY>') // Your secret API key
|
->setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -141,7 +141,7 @@ from appwrite.client import Client
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your secret API key
|
.set_key('<API_KEY>') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -156,7 +156,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your secret API key
|
.set_key('<API_KEY>') # Your secret API key
|
||||||
|
|
||||||
@@ -175,7 +175,7 @@ using Appwrite.Enums;
|
|||||||
using Appwrite.Enums;
|
using Appwrite.Enums;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("<API_KEY>"); // Your secret API key
|
.SetKey("<API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -196,7 +196,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -221,7 +221,7 @@ import io.appwrite.coroutines.CoroutineCallback
|
|||||||
import io.appwrite.services.Messaging
|
import io.appwrite.services.Messaging
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your secret API key
|
.setKey("<API_KEY>") // Your secret API key
|
||||||
|
|
||||||
@@ -239,7 +239,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>"); // Your secret API key
|
.setKey("<API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -263,7 +263,7 @@ messaging.createEmail(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your secret API key
|
.setKey("<API_KEY>") // Your secret API key
|
||||||
|
|
||||||
@@ -303,7 +303,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -377,7 +377,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('<API_KEY>') // Your secret API key
|
->setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -403,7 +403,7 @@ from appwrite.client import Client
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your secret API key
|
.set_key('<API_KEY>') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -429,7 +429,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your secret API key
|
.set_key('<API_KEY>') # Your secret API key
|
||||||
|
|
||||||
@@ -457,7 +457,7 @@ using Appwrite.Models;
|
|||||||
using Appwrite.Enums;
|
using Appwrite.Enums;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("<API_KEY>"); // Your secret API key
|
.SetKey("<API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -486,7 +486,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -518,7 +518,7 @@ import io.appwrite.coroutines.CoroutineCallback
|
|||||||
import io.appwrite.services.Messaging
|
import io.appwrite.services.Messaging
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your secret API key
|
.setKey("<API_KEY>") // Your secret API key
|
||||||
|
|
||||||
@@ -544,7 +544,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>"); // Your secret API key
|
.setKey("<API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -575,7 +575,7 @@ messaging.updateSendgridProvider(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your secret API key
|
.setKey("<API_KEY>") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -264,7 +264,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -296,7 +296,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -328,7 +328,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -359,7 +359,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -391,7 +391,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -424,7 +424,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -461,7 +461,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -499,7 +499,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -535,7 +535,7 @@ messaging.createPush(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -577,7 +577,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -605,7 +605,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -633,7 +633,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -661,7 +661,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -688,7 +688,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -716,7 +716,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -745,7 +745,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -778,7 +778,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -812,7 +812,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -844,7 +844,7 @@ messaging.createEmail(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -882,7 +882,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -906,7 +906,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -930,7 +930,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -954,7 +954,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -977,7 +977,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -1001,7 +1001,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -1026,7 +1026,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -1055,7 +1055,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -1085,7 +1085,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -1113,7 +1113,7 @@ messaging.createSms(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -99,7 +99,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -123,7 +123,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -147,7 +147,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -170,7 +170,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -219,7 +219,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -248,7 +248,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -278,7 +278,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -306,7 +306,7 @@ messaging.createSms(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -351,7 +351,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -374,7 +374,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -397,7 +397,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -420,7 +420,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -442,7 +442,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -465,7 +465,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -489,7 +489,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -517,7 +517,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -546,7 +546,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -573,7 +573,7 @@ messaging.updateMsg91Provider(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ You can also implement forms in your app to collect contact information and add
|
|||||||
const sdk = require('node-appwrite');
|
const sdk = require('node-appwrite');
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ const target = await users.createTarget(
|
|||||||
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
.setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ use Appwrite\Services\Users;
|
|||||||
use Appwrite\Enums\MessagingProviderType;
|
use Appwrite\Enums\MessagingProviderType;
|
||||||
|
|
||||||
$client = (new Client())
|
$client = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ from appwrite.client import Client
|
|||||||
from appwrite.enums import MessagingProviderType
|
from appwrite.enums import MessagingProviderType
|
||||||
|
|
||||||
client = Client()
|
client = Client()
|
||||||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
client.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
client.set_project('<PROJECT_ID>') # Your project ID
|
client.set_project('<PROJECT_ID>') # Your project ID
|
||||||
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ include Appwrite
|
|||||||
include Appwrite::Enums
|
include Appwrite::Enums
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ using Appwrite.Models;
|
|||||||
using Appwrite.Enums;
|
using Appwrite.Enums;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -174,7 +174,7 @@ import 'package:dart_appwrite/enums.dart';
|
|||||||
import 'package:dart_appwrite/models.dart';
|
import 'package:dart_appwrite/models.dart';
|
||||||
|
|
||||||
Client client = Client()
|
Client client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -197,7 +197,7 @@ import io.appwrite.services.Users
|
|||||||
import io.appwrite.enums.MessagingProviderType
|
import io.appwrite.enums.MessagingProviderType
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -220,7 +220,7 @@ import io.appwrite.services.Users;
|
|||||||
import io.appwrite.enums.MessagingProviderType;
|
import io.appwrite.enums.MessagingProviderType;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -248,7 +248,7 @@ import Appwrite
|
|||||||
import AppwriteEnums
|
import AppwriteEnums
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -287,7 +287,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -306,7 +306,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -325,7 +325,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -344,7 +344,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -362,7 +362,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -381,7 +381,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -401,7 +401,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -425,7 +425,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -450,7 +450,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -473,7 +473,7 @@ messaging.createTopic(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -499,7 +499,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -527,7 +527,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -555,7 +555,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -583,7 +583,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -610,7 +610,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -638,7 +638,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -667,7 +667,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -700,7 +700,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -734,7 +734,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -766,7 +766,7 @@ messaging.createEmail(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -801,7 +801,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -829,7 +829,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -857,7 +857,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -885,7 +885,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -912,7 +912,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -940,7 +940,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2");// Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2");// Your secret API key
|
||||||
|
|
||||||
@@ -969,7 +969,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -1002,7 +1002,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -1036,7 +1036,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2");// Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2");// Your secret API key
|
||||||
|
|
||||||
@@ -1068,7 +1068,7 @@ messaging.createEmail(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -473,7 +473,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -505,7 +505,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -537,7 +537,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -569,7 +569,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -600,7 +600,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -632,7 +632,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -665,7 +665,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -701,7 +701,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Messaging
|
import io.appwrite.services.Messaging
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -731,7 +731,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -767,7 +767,7 @@ messaging.createPush(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ You can also implement forms in your app to collect contact information and add
|
|||||||
const sdk = require('node-appwrite');
|
const sdk = require('node-appwrite');
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ const target = await users.createTarget(
|
|||||||
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
.setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ use Appwrite\Services\Users;
|
|||||||
use Appwrite\Enums\MessagingProviderType;
|
use Appwrite\Enums\MessagingProviderType;
|
||||||
|
|
||||||
$client = (new Client())
|
$client = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ from appwrite.client import Client
|
|||||||
from appwrite.enums import MessagingProviderType
|
from appwrite.enums import MessagingProviderType
|
||||||
|
|
||||||
client = Client()
|
client = Client()
|
||||||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
client.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
client.set_project('<PROJECT_ID>') # Your project ID
|
client.set_project('<PROJECT_ID>') # Your project ID
|
||||||
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -138,7 +138,7 @@ include Appwrite
|
|||||||
include Appwrite::Enums
|
include Appwrite::Enums
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -162,7 +162,7 @@ using Appwrite.Models;
|
|||||||
using Appwrite.Enums;
|
using Appwrite.Enums;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -183,7 +183,7 @@ import 'package:dart_appwrite/enums.dart';
|
|||||||
import 'package:dart_appwrite/models.dart';
|
import 'package:dart_appwrite/models.dart';
|
||||||
|
|
||||||
Client client = Client()
|
Client client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ import io.appwrite.services.Users
|
|||||||
import io.appwrite.enums.MessagingProviderType
|
import io.appwrite.enums.MessagingProviderType
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -229,7 +229,7 @@ import io.appwrite.services.Users;
|
|||||||
import io.appwrite.enums.MessagingProviderType;
|
import io.appwrite.enums.MessagingProviderType;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@ import Appwrite
|
|||||||
import AppwriteEnums
|
import AppwriteEnums
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -292,7 +292,7 @@ You can also create topics programmatically using an [Appwrite Server SDK](/docs
|
|||||||
const sdk = require('node-appwrite');
|
const sdk = require('node-appwrite');
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -307,7 +307,7 @@ const topic = await messaging.createTopic(
|
|||||||
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -325,7 +325,7 @@ use Appwrite\Client;
|
|||||||
use Appwrite\Services\Messaging;
|
use Appwrite\Services\Messaging;
|
||||||
|
|
||||||
$client = (new Client())
|
$client = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -341,7 +341,7 @@ from appwrite.client import Client
|
|||||||
from appwrite.services.messaging import Messaging
|
from appwrite.services.messaging import Messaging
|
||||||
|
|
||||||
client = Client()
|
client = Client()
|
||||||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
client.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
client.set_project('<PROJECT_ID>') # Your project ID
|
client.set_project('<PROJECT_ID>') # Your project ID
|
||||||
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -358,7 +358,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -375,7 +375,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -391,7 +391,7 @@ import 'package:dart_appwrite/enums.dart';
|
|||||||
import 'package:dart_appwrite/models.dart';
|
import 'package:dart_appwrite/models.dart';
|
||||||
|
|
||||||
Client client = Client()
|
Client client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -408,7 +408,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
val client = new Client()
|
val client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -425,7 +425,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -448,7 +448,7 @@ messaging.createTopic(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -471,7 +471,7 @@ const sdk = require('node-appwrite');
|
|||||||
|
|
||||||
// Init SDK
|
// Init SDK
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -491,7 +491,7 @@ const message = await messaging.createSms(
|
|||||||
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -516,7 +516,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -537,7 +537,7 @@ from appwrite.client import Client
|
|||||||
from appwrite.services.messaging import Messaging
|
from appwrite.services.messaging import Messaging
|
||||||
|
|
||||||
client = Client()
|
client = Client()
|
||||||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
client.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
client.set_project('<PROJECT_ID>') # Your project ID
|
client.set_project('<PROJECT_ID>') # Your project ID
|
||||||
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -559,7 +559,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -581,7 +581,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -602,7 +602,7 @@ import 'package:dart_appwrite/enums.dart';
|
|||||||
import 'package:dart_appwrite/models.dart';
|
import 'package:dart_appwrite/models.dart';
|
||||||
|
|
||||||
Client client = Client();
|
Client client = Client();
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -624,7 +624,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -646,7 +646,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -674,7 +674,7 @@ messaging.createSms(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -700,7 +700,7 @@ const sdk = require('node-appwrite');
|
|||||||
|
|
||||||
// Init SDK
|
// Init SDK
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -720,7 +720,7 @@ const message = await messaging.createSms(
|
|||||||
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -745,7 +745,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -766,7 +766,7 @@ from appwrite.client import Client
|
|||||||
from appwrite.services.messaging import Messaging
|
from appwrite.services.messaging import Messaging
|
||||||
|
|
||||||
client = Client()
|
client = Client()
|
||||||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
client.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
client.set_project('<PROJECT_ID>') # Your project ID
|
client.set_project('<PROJECT_ID>') # Your project ID
|
||||||
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -788,7 +788,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -810,7 +810,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -831,7 +831,7 @@ import 'package:dart_appwrite/enums.dart';
|
|||||||
import 'package:dart_appwrite/models.dart';
|
import 'package:dart_appwrite/models.dart';
|
||||||
|
|
||||||
Client client = Client();
|
Client client = Client();
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
|
||||||
|
|
||||||
@@ -853,7 +853,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -875,7 +875,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -903,7 +903,7 @@ messaging.createSms(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -102,7 +102,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -119,7 +119,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('<API_KEY>') // Your secret API key
|
->setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -134,7 +134,7 @@ from appwrite.client import Client
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your secret API key
|
.set_key('<API_KEY>') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -149,7 +149,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your secret API key
|
.set_key('<API_KEY>') # Your secret API key
|
||||||
|
|
||||||
@@ -168,7 +168,7 @@ using Appwrite.Enums;
|
|||||||
using Appwrite.Enums;
|
using Appwrite.Enums;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("<API_KEY>"); // Your secret API key
|
.SetKey("<API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -189,7 +189,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -214,7 +214,7 @@ import io.appwrite.coroutines.CoroutineCallback
|
|||||||
import io.appwrite.services.Messaging
|
import io.appwrite.services.Messaging
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your secret API key
|
.setKey("<API_KEY>") // Your secret API key
|
||||||
|
|
||||||
@@ -232,7 +232,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>"); // Your secret API key
|
.setKey("<API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -256,7 +256,7 @@ messaging.createEmail(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your secret API key
|
.setKey("<API_KEY>") // Your secret API key
|
||||||
|
|
||||||
@@ -296,7 +296,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<YOUR_API_KEY>') // Your secret API key
|
.setKey('<YOUR_API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -321,7 +321,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<YOUR_API_KEY>') // Your secret API key
|
.setKey('<YOUR_API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -346,7 +346,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('<YOUR_API_KEY>') // Your secret API key
|
->setKey('<YOUR_API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -371,7 +371,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<YOUR_API_KEY>') # Your secret API key
|
.set_key('<YOUR_API_KEY>') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -395,7 +395,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<YOUR_API_KEY>') # Your secret API key
|
.set_key('<YOUR_API_KEY>') # Your secret API key
|
||||||
|
|
||||||
@@ -420,7 +420,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("<YOUR_API_KEY>"); // Your secret API key
|
.SetKey("<YOUR_API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -446,7 +446,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<YOUR_API_KEY>') // Your secret API key
|
.setKey('<YOUR_API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -476,7 +476,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<YOUR_API_KEY>"); // Your secret API key
|
.setKey("<YOUR_API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -507,7 +507,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<YOUR_API_KEY>"); // Your secret API key
|
.setKey("<YOUR_API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -536,7 +536,7 @@ messaging.updateSendgridProvider(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<YOUR_API_KEY>") // Your secret API key
|
.setKey("<YOUR_API_KEY>") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -112,7 +112,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -128,7 +128,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('<API_KEY>') // Your secret API key
|
->setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -143,7 +143,7 @@ from appwrite.client import Client
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your secret API key
|
.set_key('<API_KEY>') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -158,7 +158,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your secret API key
|
.set_key('<API_KEY>') # Your secret API key
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ using Appwrite.Enums;
|
|||||||
using Appwrite.Enums;
|
using Appwrite.Enums;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("<API_KEY>"); // Your secret API key
|
.SetKey("<API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -198,7 +198,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -223,7 +223,7 @@ import io.appwrite.coroutines.CoroutineCallback
|
|||||||
import io.appwrite.services.Messaging
|
import io.appwrite.services.Messaging
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your secret API key
|
.setKey("<API_KEY>") // Your secret API key
|
||||||
|
|
||||||
@@ -241,7 +241,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>"); // Your secret API key
|
.setKey("<API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -265,7 +265,7 @@ messaging.createEmail(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your secret API key
|
.setKey("<API_KEY>") // Your secret API key
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -379,7 +379,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('<API_KEY>') // Your secret API key
|
->setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -405,7 +405,7 @@ from appwrite.client import Client
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your secret API key
|
.set_key('<API_KEY>') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -431,7 +431,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<API_KEY>') # Your secret API key
|
.set_key('<API_KEY>') # Your secret API key
|
||||||
|
|
||||||
@@ -459,7 +459,7 @@ using Appwrite.Models;
|
|||||||
using Appwrite.Enums;
|
using Appwrite.Enums;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("<API_KEY>"); // Your secret API key
|
.SetKey("<API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -488,7 +488,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<API_KEY>') // Your secret API key
|
.setKey('<API_KEY>') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -520,7 +520,7 @@ import io.appwrite.coroutines.CoroutineCallback
|
|||||||
import io.appwrite.services.Messaging
|
import io.appwrite.services.Messaging
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your secret API key
|
.setKey("<API_KEY>") // Your secret API key
|
||||||
|
|
||||||
@@ -546,7 +546,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>"); // Your secret API key
|
.setKey("<API_KEY>"); // Your secret API key
|
||||||
|
|
||||||
@@ -577,7 +577,7 @@ messaging.updateSendgridProvider(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("<API_KEY>") // Your secret API key
|
.setKey("<API_KEY>") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -98,7 +98,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -122,7 +122,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -146,7 +146,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -169,7 +169,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -193,7 +193,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -218,7 +218,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -247,7 +247,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -277,7 +277,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ messaging.createSms(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -349,7 +349,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -372,7 +372,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -395,7 +395,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -418,7 +418,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -440,7 +440,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -463,7 +463,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -487,7 +487,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -515,7 +515,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -544,7 +544,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -571,7 +571,7 @@ messaging.updateTelesignProvider(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -98,7 +98,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -122,7 +122,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -146,7 +146,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -169,7 +169,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -193,7 +193,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -218,7 +218,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -247,7 +247,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -277,7 +277,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ messaging.createSms(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -349,7 +349,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -372,7 +372,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -395,7 +395,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -418,7 +418,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -440,7 +440,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -463,7 +463,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -487,7 +487,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -515,7 +515,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -544,7 +544,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -571,7 +571,7 @@ messaging.updateTextmagicProvider(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -74,7 +74,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -94,7 +94,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -115,7 +115,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -134,7 +134,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -154,7 +154,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -175,7 +175,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -200,7 +200,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -226,7 +226,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -250,7 +250,7 @@ messaging.createTopic(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -319,7 +319,7 @@ If you can't find the targets you'd like to add, see the [targets page](/docs/pr
|
|||||||
const sdk = require('node-appwrite');
|
const sdk = require('node-appwrite');
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
.setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -335,7 +335,7 @@ const subscriber = await messaging.createSubscriber(
|
|||||||
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
||||||
|
|
||||||
const client = new sdk.Client()
|
const client = new sdk.Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
.setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -356,7 +356,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
->setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -373,7 +373,7 @@ from appwrite.client import Client
|
|||||||
from appwrite.services.messaging import Messaging
|
from appwrite.services.messaging import Messaging
|
||||||
|
|
||||||
client = Client()
|
client = Client()
|
||||||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
client.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
client.set_project('<PROJECT_ID>') # Your project ID
|
client.set_project('<PROJECT_ID>') # Your project ID
|
||||||
client.set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token
|
client.set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -391,7 +391,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -409,7 +409,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token
|
.SetJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -426,7 +426,7 @@ import 'package:dart_appwrite/enums.dart';
|
|||||||
import 'package:dart_appwrite/models.dart';
|
import 'package:dart_appwrite/models.dart';
|
||||||
|
|
||||||
Client client = Client()
|
Client client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
.setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -444,7 +444,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token
|
.setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -462,7 +462,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token
|
.setJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
@@ -486,7 +486,7 @@ messaging.createSubscriber(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token
|
.setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -100,7 +100,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -124,7 +124,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -148,7 +148,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -171,7 +171,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -220,7 +220,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -249,7 +249,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -279,7 +279,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -307,7 +307,7 @@ messaging.createSms(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -349,7 +349,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -372,7 +372,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -395,7 +395,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -418,7 +418,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -440,7 +440,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -463,7 +463,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -487,7 +487,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -515,7 +515,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -544,7 +544,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -571,7 +571,7 @@ messaging.updateTwilioProvider(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -100,7 +100,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -124,7 +124,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -148,7 +148,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -171,7 +171,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -220,7 +220,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -249,7 +249,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -279,7 +279,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -307,7 +307,7 @@ messaging.createSms(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -351,7 +351,7 @@ const client = new sdk.Client();
|
|||||||
const messaging = new sdk.Messaging(client);
|
const messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -374,7 +374,7 @@ let client = new sdk.Client();
|
|||||||
let messaging = new sdk.Messaging(client);
|
let messaging = new sdk.Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -397,7 +397,7 @@ use Appwrite\Services\Messaging;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -420,7 +420,7 @@ from appwrite.services.messaging import Messaging
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -442,7 +442,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -465,7 +465,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -489,7 +489,7 @@ void main() { // Init SDK
|
|||||||
Messaging messaging = Messaging(client);
|
Messaging messaging = Messaging(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -517,7 +517,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -546,7 +546,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Messaging;
|
import io.appwrite.services.Messaging;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -573,7 +573,7 @@ messaging.updateVonageProvider(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ const client = new sdk.Client();
|
|||||||
const storage = new sdk.Storage(client);
|
const storage = new sdk.Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -58,7 +58,7 @@ let client = new sdk.Client();
|
|||||||
let storage = new sdk.Storage(client);
|
let storage = new sdk.Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -81,7 +81,7 @@ use Appwrite\Services\Storage;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -97,7 +97,7 @@ from appwrite.services.storage import Storage
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
)
|
)
|
||||||
@@ -112,7 +112,7 @@ require 'Appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@ using Appwrite.Services;
|
|||||||
using Appwrite.Models;
|
using Appwrite.Models;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -146,7 +146,7 @@ void main() { // Init SDK
|
|||||||
Storage storage = Storage(client);
|
Storage storage = Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
@@ -169,7 +169,7 @@ import io.appwrite.Client
|
|||||||
import io.appwrite.services.Storage
|
import io.appwrite.services.Storage
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
@@ -186,7 +186,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
|||||||
import io.appwrite.services.Storage;
|
import io.appwrite.services.Storage;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
@@ -209,7 +209,7 @@ storage.createBucket(
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const client = new Client();
|
|||||||
const storage = new Storage(client);
|
const storage = new Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ void main() { // Init SDK
|
|||||||
Storage storage = Storage(client);
|
Storage storage = Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
// downloading file
|
// downloading file
|
||||||
@@ -123,7 +123,7 @@ import Appwrite
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
let storage = Storage(client)
|
let storage = Storage(client)
|
||||||
let byteBuffer = try await storage.getFilePreview(
|
let byteBuffer = try await storage.getFilePreview(
|
||||||
@@ -159,7 +159,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
|
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val storage = Storage(client)
|
val storage = Storage(client)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ To upload a file, add this to you web, Flutter, Apple, or Android app.
|
|||||||
import { Client, Storage } from "appwrite";
|
import { Client, Storage } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const storage = new Storage(client);
|
const storage = new Storage(client);
|
||||||
@@ -46,7 +46,7 @@ To upload a file, add this to you web, Flutter, Apple, or Android app.
|
|||||||
|
|
||||||
void main() { // Init SDK
|
void main() { // Init SDK
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final storage = Storage(client);
|
final storage = Storage(client);
|
||||||
@@ -63,7 +63,7 @@ To upload a file, add this to you web, Flutter, Apple, or Android app.
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let storage = Storage(client)
|
let storage = Storage(client)
|
||||||
@@ -84,7 +84,7 @@ To upload a file, add this to you web, Flutter, Apple, or Android app.
|
|||||||
|
|
||||||
suspend fun main() {
|
suspend fun main() {
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val storage = Storage(client)
|
val storage = Storage(client)
|
||||||
@@ -135,7 +135,7 @@ const client = new Client();
|
|||||||
const storage = new Storage(client);
|
const storage = new Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ void main() { // Init SDK
|
|||||||
Storage storage = Storage(client);
|
Storage storage = Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
// downloading file
|
// downloading file
|
||||||
@@ -186,7 +186,7 @@ import Appwrite
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
let storage = Storage(client)
|
let storage = Storage(client)
|
||||||
let byteBuffer = try await storage.getFileDownload(
|
let byteBuffer = try await storage.getFileDownload(
|
||||||
@@ -211,7 +211,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
|
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val storage = Storage(client)
|
val storage = Storage(client)
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ You can also upload files programmatically using our SDKs:
|
|||||||
import { Client, Storage } from "appwrite";
|
import { Client, Storage } from "appwrite";
|
||||||
|
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
const storage = new Storage(client);
|
const storage = new Storage(client);
|
||||||
@@ -42,7 +42,7 @@ You can also upload files programmatically using our SDKs:
|
|||||||
|
|
||||||
void main() { // Init SDK
|
void main() { // Init SDK
|
||||||
final client = Client()
|
final client = Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>');
|
.setProject('<PROJECT_ID>');
|
||||||
|
|
||||||
final storage = Storage(client);
|
final storage = Storage(client);
|
||||||
@@ -61,7 +61,7 @@ You can also upload files programmatically using our SDKs:
|
|||||||
|
|
||||||
suspend fun main() {
|
suspend fun main() {
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val storage = Storage(client)
|
val storage = Storage(client)
|
||||||
@@ -79,7 +79,7 @@ You can also upload files programmatically using our SDKs:
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
|
|
||||||
let storage = Storage(client)
|
let storage = Storage(client)
|
||||||
@@ -285,7 +285,7 @@ const client = new Client();
|
|||||||
const storage = new Storage(client);
|
const storage = new Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ void main() { // Init SDK
|
|||||||
Storage storage = Storage(client);
|
Storage storage = Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
// downloading file
|
// downloading file
|
||||||
@@ -340,7 +340,7 @@ import Appwrite
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
let storage = Storage(client)
|
let storage = Storage(client)
|
||||||
let byteBuffer = try await storage.getFile(
|
let byteBuffer = try await storage.getFile(
|
||||||
@@ -365,7 +365,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
|
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val storage = Storage(client)
|
val storage = Storage(client)
|
||||||
@@ -392,7 +392,7 @@ const client = new Client();
|
|||||||
const storage = new Storage(client);
|
const storage = new Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -408,7 +408,7 @@ void main() { // Init SDK
|
|||||||
Storage storage = Storage(client);
|
Storage storage = Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
// downloading file
|
// downloading file
|
||||||
@@ -443,7 +443,7 @@ import Appwrite
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
let storage = Storage(client)
|
let storage = Storage(client)
|
||||||
let byteBuffer = try await storage.getFileDownload(
|
let byteBuffer = try await storage.getFileDownload(
|
||||||
@@ -468,7 +468,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
|
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val storage = Storage(client)
|
val storage = Storage(client)
|
||||||
@@ -495,7 +495,7 @@ const client = new Client();
|
|||||||
const storage = new Storage(client);
|
const storage = new Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -511,7 +511,7 @@ void main() { // Init SDK
|
|||||||
Storage storage = Storage(client);
|
Storage storage = Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
// downloading file
|
// downloading file
|
||||||
@@ -546,7 +546,7 @@ import Appwrite
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
let storage = Storage(client)
|
let storage = Storage(client)
|
||||||
let byteBuffer = try await storage.getFilePreview(
|
let byteBuffer = try await storage.getFilePreview(
|
||||||
@@ -571,7 +571,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
|
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val storage = Storage(client)
|
val storage = Storage(client)
|
||||||
@@ -599,7 +599,7 @@ const client = new Client();
|
|||||||
const storage = new Storage(client);
|
const storage = new Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -615,7 +615,7 @@ void main() { // Init SDK
|
|||||||
Storage storage = Storage(client);
|
Storage storage = Storage(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
// downloading file
|
// downloading file
|
||||||
@@ -650,7 +650,7 @@ import Appwrite
|
|||||||
|
|
||||||
func main() async throws {
|
func main() async throws {
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
let storage = Storage(client)
|
let storage = Storage(client)
|
||||||
let byteBuffer = try await storage.getFileView(
|
let byteBuffer = try await storage.getFileView(
|
||||||
@@ -675,7 +675,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
|
|
||||||
val client = Client(applicationContext)
|
val client = Client(applicationContext)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
|
|
||||||
val storage = Storage(client)
|
val storage = Storage(client)
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ object Appwrite {
|
|||||||
|
|
||||||
fun init(context: Context) {
|
fun init(context: Context) {
|
||||||
client = Client(context)
|
client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("[PROJECT_ID]")
|
.setProject("[PROJECT_ID]")
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ import { Client, Account} from 'appwrite';
|
|||||||
export const client = new Client();
|
export const client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
||||||
|
|
||||||
export const account = new Account(client);
|
export const account = new Account(client);
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ class Appwrite {
|
|||||||
|
|
||||||
public init() {
|
public init() {
|
||||||
self.client = Client()
|
self.client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("[PROJECT_ID]")
|
.setProject("[PROJECT_ID]")
|
||||||
|
|
||||||
self.account = Account(client)
|
self.account = Account(client)
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ var client = Client();
|
|||||||
|
|
||||||
Future<void> main() async {
|
Future<void> main() async {
|
||||||
client
|
client
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
.setKey("<YOUR_API_KEY>");
|
.setKey("<YOUR_API_KEY>");
|
||||||
}
|
}
|
||||||
@@ -200,7 +200,7 @@ Finally, revisit the `main()` function and call the functions created in previou
|
|||||||
```dart
|
```dart
|
||||||
Future<void> main() async {
|
Future<void> main() async {
|
||||||
client
|
client
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
.setKey("<YOUR_API_KEY>");
|
.setKey("<YOUR_API_KEY>");
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ import { Client, ID, Databases, Models } from "https://deno.land/x/appwrite/mod.
|
|||||||
const client: Client = new Client();
|
const client: Client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
.setKey("<YOUR_API_KEY>");
|
.setKey("<YOUR_API_KEY>");
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ using Appwrite.Services;
|
|||||||
var client = new Client();
|
var client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.SetEndpoint("https://cloud.appwrite.io/v1")
|
.SetEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.SetProject("<PROJECT_ID>")
|
.SetProject("<PROJECT_ID>")
|
||||||
.SetKey("<YOUR_API_KEY>");
|
.SetKey("<YOUR_API_KEY>");
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ import 'package:appwrite/models.dart' as models;
|
|||||||
void main() {
|
void main() {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
Client client = Client()
|
Client client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>");
|
.setProject("<PROJECT_ID>");
|
||||||
Account account = Account(client);
|
Account account = Account(client);
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ import io.appwrite.models.Collection
|
|||||||
import kotlinx.coroutines.coroutineScope
|
import kotlinx.coroutines.coroutineScope
|
||||||
|
|
||||||
val client = Client()
|
val client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
.setKey("<YOUR_API_KEY>");
|
.setKey("<YOUR_API_KEY>");
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ import { Client, Account } from 'appwrite';
|
|||||||
export const client = new Client();
|
export const client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
||||||
|
|
||||||
export const account = new Account(client);
|
export const account = new Account(client);
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ const sdk = require("node-appwrite");
|
|||||||
const client = new sdk.Client();
|
const client = new sdk.Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
.setKey("<YOUR_API_KEY>");
|
.setKey("<YOUR_API_KEY>");
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ import { Client, Account} from 'appwrite';
|
|||||||
export const client = new Client();
|
export const client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
||||||
|
|
||||||
export const account = new Account(client);
|
export const account = new Account(client);
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ use Appwrite\ID;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1')
|
->setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
->setProject('<PROJECT_ID>')
|
->setProject('<PROJECT_ID>')
|
||||||
->setKey('<YOUR_API_KEY>');
|
->setKey('<YOUR_API_KEY>');
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ from appwrite.services.databases import Databases
|
|||||||
from appwrite.id import ID
|
from appwrite.id import ID
|
||||||
|
|
||||||
client = Client()
|
client = Client()
|
||||||
client.set_endpoint('https://cloud.appwrite.io/v1')
|
client.set_endpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
client.set_project('<PROJECT_ID>')
|
client.set_project('<PROJECT_ID>')
|
||||||
client.set_key('<YOUR_API_KEY>')
|
client.set_key('<YOUR_API_KEY>')
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ let account: Account;
|
|||||||
|
|
||||||
client = new Client();
|
client = new Client();
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('66e943139f030e2feaf8') // Your Project ID
|
.setProject('66e943139f030e2feaf8') // Your Project ID
|
||||||
.setPlatform('com.example.my-app'); // Your package name / bundle identifier
|
.setPlatform('com.example.my-app'); // Your package name / bundle identifier
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ import { Client, Account} from 'appwrite';
|
|||||||
export const client = new Client();
|
export const client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
||||||
|
|
||||||
export const account = new Account(client);
|
export const account = new Account(client);
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ include Appwrite
|
|||||||
client = Client.new()
|
client = Client.new()
|
||||||
|
|
||||||
client
|
client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your Appwrite Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your Appwrite Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_key('<YOUR_API_KEY>') # Your secret API key
|
.set_key('<YOUR_API_KEY>') # Your secret API key
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ import { Client, Account } from 'appwrite';
|
|||||||
export const client = new Client();
|
export const client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
||||||
|
|
||||||
export const account = new Account(client);
|
export const account = new Account(client);
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ import { Client, Account } from 'appwrite';
|
|||||||
export const client = new Client();
|
export const client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
||||||
|
|
||||||
export const account = new Account(client);
|
export const account = new Account(client);
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ import Appwrite
|
|||||||
import AppwriteModels
|
import AppwriteModels
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>")
|
.setProject("<PROJECT_ID>")
|
||||||
.setKey("<YOUR_API_KEY>")
|
.setKey("<YOUR_API_KEY>")
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ import { Client, Account} from 'appwrite';
|
|||||||
export const client = new Client();
|
export const client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
||||||
|
|
||||||
export const account = new Account(client);
|
export const account = new Account(client);
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ import { Client, Account } from 'appwrite';
|
|||||||
export const client = new Client();
|
export const client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
||||||
|
|
||||||
export const account = new Account(client);
|
export const account = new Account(client);
|
||||||
@@ -73,7 +73,7 @@ import { type Models } from 'appwrite';
|
|||||||
const client: Client = new Client();
|
const client: Client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1')
|
.setEndpoint('https://[region].cloud.appwrite.io/v1')
|
||||||
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
.setProject('<PROJECT_ID>'); // Replace with your project ID
|
||||||
|
|
||||||
export const account: Account = new Account(client);
|
export const account: Account = new Account(client);
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ import { Client } from "appwrite";
|
|||||||
const client = new Client();
|
const client = new Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
```
|
```
|
||||||
@@ -106,7 +106,7 @@ import 'package:appwrite/appwrite.dart';
|
|||||||
Client client = Client();
|
Client client = Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
;
|
;
|
||||||
```
|
```
|
||||||
@@ -114,14 +114,14 @@ client
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
```
|
```
|
||||||
```client-android-kotlin
|
```client-android-kotlin
|
||||||
import io.appwrite.Client
|
import io.appwrite.Client
|
||||||
|
|
||||||
val client = Client(context)
|
val client = Client(context)
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
```
|
```
|
||||||
{% /multicode %}
|
{% /multicode %}
|
||||||
@@ -139,7 +139,7 @@ const sdk = require('node-appwrite');
|
|||||||
const client = new sdk.Client();
|
const client = new sdk.Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('<YOUR_API_KEY>') // Your secret JSON Web Token
|
.setJWT('<YOUR_API_KEY>') // Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
@@ -151,7 +151,7 @@ import * as sdk from "https://deno.land/x/appwrite/mod.ts";
|
|||||||
let client = new sdk.Client();
|
let client = new sdk.Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('<YOUR_API_KEY>') // Your secret JSON Web Token
|
.setJWT('<YOUR_API_KEY>') // Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
@@ -164,7 +164,7 @@ use Appwrite\Client;
|
|||||||
$client = new Client();
|
$client = new Client();
|
||||||
|
|
||||||
$client
|
$client
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setJWT('<YOUR_API_KEY>') // Your secret JSON Web Token
|
->setJWT('<YOUR_API_KEY>') // Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
@@ -175,7 +175,7 @@ from appwrite.client import Client
|
|||||||
client = Client()
|
client = Client()
|
||||||
|
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_jwt('<YOUR_API_KEY>') # Your secret JSON Web Token
|
.set_jwt('<YOUR_API_KEY>') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
@@ -186,7 +186,7 @@ require 'appwrite'
|
|||||||
include Appwrite
|
include Appwrite
|
||||||
|
|
||||||
client = Client.new
|
client = Client.new
|
||||||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
|
.set_endpoint('https://[region].cloud.appwrite.io/v1') # Your API Endpoint
|
||||||
.set_project('<PROJECT_ID>') # Your project ID
|
.set_project('<PROJECT_ID>') # Your project ID
|
||||||
.set_jwt('<YOUR_API_KEY>') # Your secret JSON Web Token
|
.set_jwt('<YOUR_API_KEY>') # Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -195,7 +195,7 @@ using Appwrite;
|
|||||||
using Appwrite.Services;
|
using Appwrite.Services;
|
||||||
|
|
||||||
var client = new Client()
|
var client = new Client()
|
||||||
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.SetEndPoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.SetProject("<PROJECT_ID>") // Your project ID
|
.SetProject("<PROJECT_ID>") // Your project ID
|
||||||
.SetJWT("<YOUR_API_KEY>"); // Your secret JSON Web Token
|
.SetJWT("<YOUR_API_KEY>"); // Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -206,7 +206,7 @@ void main() { // Init SDK
|
|||||||
Client client = Client();
|
Client client = Client();
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setJWT('<YOUR_API_KEY>') // Your secret JSON Web Token
|
.setJWT('<YOUR_API_KEY>') // Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
@@ -217,7 +217,7 @@ import io.appwrite.Client;
|
|||||||
import io.appwrite.coroutines.CoroutineCallback;
|
import io.appwrite.coroutines.CoroutineCallback;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setJWT("<YOUR_API_KEY>"); // Your secret JSON Web Token
|
.setJWT("<YOUR_API_KEY>"); // Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -226,7 +226,7 @@ import io.appwrite.Client;
|
|||||||
import io.appwrite.coroutines.CoroutineCallback;
|
import io.appwrite.coroutines.CoroutineCallback;
|
||||||
|
|
||||||
Client client = new Client()
|
Client client = new Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setJWT("<YOUR_API_KEY>"); // Your secret JSON Web Token
|
.setJWT("<YOUR_API_KEY>"); // Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -234,7 +234,7 @@ Client client = new Client()
|
|||||||
import Appwrite
|
import Appwrite
|
||||||
|
|
||||||
let client = Client()
|
let client = Client()
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
.setProject("<PROJECT_ID>") // Your project ID
|
.setProject("<PROJECT_ID>") // Your project ID
|
||||||
.setJWT("<YOUR_API_KEY>") // Your secret JSON Web Token
|
.setJWT("<YOUR_API_KEY>") // Your secret JSON Web Token
|
||||||
```
|
```
|
||||||
@@ -262,7 +262,7 @@ The API key should have the following scope in order to perform authentication:
|
|||||||
import { Client } from "node-appwrite"; // Using the server SDK
|
import { Client } from "node-appwrite"; // Using the server SDK
|
||||||
|
|
||||||
const adminClient = new Client()
|
const adminClient = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>') // Your project ID
|
.setProject('<PROJECT_ID>') // Your project ID
|
||||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||||
```
|
```
|
||||||
@@ -271,7 +271,7 @@ use Appwrite\Client;
|
|||||||
use Appwrite\Services\Account;
|
use Appwrite\Services\Account;
|
||||||
|
|
||||||
$adminClient = (new Client())
|
$adminClient = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>') // Your project ID
|
->setProject('<PROJECT_ID>') // Your project ID
|
||||||
->setKey('<YOUR_API_KEY>'); // Your secret API key
|
->setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||||
|
|
||||||
@@ -291,7 +291,7 @@ You should create a new client for each request and **never** share the client b
|
|||||||
{% multicode %}
|
{% multicode %}
|
||||||
```server-nodejs
|
```server-nodejs
|
||||||
const sessionClient = new Client()
|
const sessionClient = new Client()
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
.setProject('<PROJECT_ID>'); // Your project ID
|
.setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
const session = req.cookies.session; // Get the session cookie from the request
|
const session = req.cookies.session; // Get the session cookie from the request
|
||||||
@@ -301,7 +301,7 @@ if (session) {
|
|||||||
```
|
```
|
||||||
```php
|
```php
|
||||||
$sessionClient = (new Client())
|
$sessionClient = (new Client())
|
||||||
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
->setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
->setProject('<PROJECT_ID>'); // Your project ID
|
->setProject('<PROJECT_ID>'); // Your project ID
|
||||||
|
|
||||||
$session = $_COOKIE['session']; // Get the session cookie from the request
|
$session = $_COOKIE['session']; // Get the session cookie from the request
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ import { Client, Databases, Account } from "react-native-appwrite";
|
|||||||
|
|
||||||
const client = new Client();
|
const client = new Client();
|
||||||
client
|
client
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>") // Replace with your project ID
|
.setProject("<PROJECT_ID>") // Replace with your project ID
|
||||||
.setPlatform('com.example.idea-tracker');
|
.setPlatform('com.example.idea-tracker');
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ import { Client, Databases, Account } from "appwrite";
|
|||||||
|
|
||||||
const client = new Client();
|
const client = new Client();
|
||||||
client
|
client
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>"); // Replace with your project ID
|
.setProject("<PROJECT_ID>"); // Replace with your project ID
|
||||||
|
|
||||||
export const account = new Account(client);
|
export const account = new Account(client);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ import { Client, Databases, Account } from "appwrite";
|
|||||||
|
|
||||||
const client = new Client();
|
const client = new Client();
|
||||||
client
|
client
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>"); // Replace with your project ID
|
.setProject("<PROJECT_ID>"); // Replace with your project ID
|
||||||
|
|
||||||
export const account = new Account(client);
|
export const account = new Account(client);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ import { Client, Databases, Account } from "appwrite";
|
|||||||
|
|
||||||
const client = new Client();
|
const client = new Client();
|
||||||
client
|
client
|
||||||
.setEndpoint("https://cloud.appwrite.io/v1")
|
.setEndpoint("https://[region].cloud.appwrite.io/v1")
|
||||||
.setProject("<PROJECT_ID>"); // Replace with your project ID
|
.setProject("<PROJECT_ID>"); // Replace with your project ID
|
||||||
|
|
||||||
export const account = new Account(client);
|
export const account = new Account(client);
|
||||||
|
|||||||
Reference in New Issue
Block a user