Skip to content

Commit d34ab7d

Browse files
committed
SDK binary support for executions
1 parent db1aaf8 commit d34ab7d

File tree

102 files changed

+211
-207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+211
-207
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Appwrite React Native SDK
22

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

9-
**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).**
9+
**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).**
1010

1111
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)
1212

docs/examples/account/create-anonymous-session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.createAnonymousSession();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/create-email-password-session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

@@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession(
1111
'password' // password
1212
);
1313

14-
console.log(response);
14+
console.log(result);

docs/examples/account/create-email-token.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

15-
console.log(response);
15+
console.log(result);

docs/examples/account/create-j-w-t.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.createJWT();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/create-magic-u-r-l-token.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

16-
console.log(response);
16+
console.log(result);

docs/examples/account/create-mfa-authenticator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.createMfaAuthenticator(
1010
AuthenticatorType.Totp // type
1111
);
1212

13-
console.log(response);
13+
console.log(result);

docs/examples/account/create-mfa-challenge.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account, AuthenticationFactor } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.createMfaChallenge(
1010
AuthenticationFactor.Email // factor
1111
);
1212

13-
console.log(response);
13+
console.log(result);

docs/examples/account/create-mfa-recovery-codes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.createMfaRecoveryCodes();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/create-o-auth2session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

docs/examples/account/create-o-auth2token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

docs/examples/account/create-phone-token.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

14-
console.log(response);
14+
console.log(result);

docs/examples/account/create-phone-verification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.createPhoneVerification();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/create-push-target.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

15-
console.log(response);
15+
console.log(result);

docs/examples/account/create-recovery.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

14-
console.log(response);
14+
console.log(result);

docs/examples/account/create-session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

14-
console.log(response);
14+
console.log(result);

docs/examples/account/create-verification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

13-
console.log(response);
13+
console.log(result);

docs/examples/account/create.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

16-
console.log(response);
16+
console.log(result);

docs/examples/account/delete-identity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

13-
console.log(response);
13+
console.log(result);

docs/examples/account/delete-mfa-authenticator.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.deleteMfaAuthenticator(
10-
AuthenticatorType.Totp, // type
11-
'<OTP>' // otp
10+
AuthenticatorType.Totp // type
1211
);
1312

14-
console.log(response);
13+
console.log(result);

docs/examples/account/delete-push-target.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

13-
console.log(response);
13+
console.log(result);

docs/examples/account/delete-session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

13-
console.log(response);
13+
console.log(result);

docs/examples/account/delete-sessions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.deleteSessions();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/get-mfa-recovery-codes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.getMfaRecoveryCodes();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/get-prefs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.getPrefs();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/get-session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

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

13-
console.log(response);
13+
console.log(result);

docs/examples/account/get.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.get();
1010

11-
console.log(response);
11+
console.log(result);

docs/examples/account/list-identities.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { Client, Account } from "react-native-appwrite";
22

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

77
const account = new Account(client);
88

99
const result = await account.listIdentities(
1010
[] // queries (optional)
1111
);
1212

13-
console.log(response);
13+
console.log(result);

0 commit comments

Comments
 (0)