Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK binary support for executions #30

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Appwrite React Native SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-react-native.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.5.7-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.6.0-blue.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

**This SDK is compatible with Appwrite server version 1.5.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-react-native/releases).**
**This SDK is compatible with Appwrite server version 1.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-react-native/releases).**

Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the React Native SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)

Expand Down
4 changes: 2 additions & 2 deletions docs/examples/account/create-anonymous-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.createAnonymousSession();

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-email-password-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

Expand All @@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession(
'password' // password
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-email-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

Expand All @@ -12,4 +12,4 @@ const result = await account.createEmailToken(
false // phrase (optional)
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-j-w-t.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.createJWT();

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-magic-u-r-l-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

Expand All @@ -13,4 +13,4 @@ const result = await account.createMagicURLToken(
false // phrase (optional)
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-mfa-authenticator.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.createMfaAuthenticator(
AuthenticatorType.Totp // type
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-mfa-challenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Client, Account, AuthenticationFactor } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.createMfaChallenge(
AuthenticationFactor.Email // factor
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.createMfaRecoveryCodes();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-o-auth2session.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/account/create-o-auth2token.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

Expand Down
4 changes: 2 additions & 2 deletions docs/examples/account/create-phone-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

Expand All @@ -11,4 +11,4 @@ const result = await account.createPhoneToken(
'+12065550100' // phone
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-phone-verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.createPhoneVerification();

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-push-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

Expand All @@ -12,4 +12,4 @@ const result = await account.createPushTarget(
'<PROVIDER_ID>' // providerId (optional)
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

Expand All @@ -11,4 +11,4 @@ const result = await account.createRecovery(
'https://example.com' // url
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

Expand All @@ -11,4 +11,4 @@ const result = await account.createSession(
'<SECRET>' // secret
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create-verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.createVerification(
'https://example.com' // url
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

Expand All @@ -13,4 +13,4 @@ const result = await account.create(
'<NAME>' // name (optional)
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/delete-identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.deleteIdentity(
'<IDENTITY_ID>' // identityId
);

console.log(response);
console.log(result);
7 changes: 3 additions & 4 deletions docs/examples/account/delete-mfa-authenticator.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.deleteMfaAuthenticator(
AuthenticatorType.Totp, // type
'<OTP>' // otp
AuthenticatorType.Totp // type
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/delete-push-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.deletePushTarget(
'<TARGET_ID>' // targetId
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/delete-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.deleteSession(
'<SESSION_ID>' // sessionId
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/delete-sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.deleteSessions();

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/get-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.getMfaRecoveryCodes();

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/get-prefs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.getPrefs();

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/get-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.getSession(
'<SESSION_ID>' // sessionId
);

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/get.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.get();

console.log(response);
console.log(result);
4 changes: 2 additions & 2 deletions docs/examples/account/list-identities.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
.setProject('<YOUR_PROJECT_ID>'); // Your project ID

const account = new Account(client);

const result = await account.listIdentities(
[] // queries (optional)
);

console.log(response);
console.log(result);
Loading