Skip to content

Commit dc367f4

Browse files
committed
Appwite 1.5 support
1 parent 38b1f04 commit dc367f4

36 files changed

+535
-141
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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 Ruby 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

13-
![Appwrite](https://appwrite.io/images/github.png)
13+
![Appwrite](https://github.com/appwrite/appwrite/raw/main/public/images/github.png)
1414

1515
## Installation
1616

appwrite.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |spec|
22

33
spec.name = 'appwrite'
4-
spec.version = '11.0.0-rc.6'
4+
spec.version = '11.0.0'
55
spec.license = 'BSD-3-Clause'
66
spec.summary = 'Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API'
77
spec.author = 'Appwrite Team'

docs/examples/account/add-authenticator.md renamed to docs/examples/account/create-mfa-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ client = Client.new
1010

1111
account = Account.new(client)
1212

13-
result = account.add_authenticator(
13+
result = account.create_mfa_authenticator(
1414
type: AuthenticatorType::TOTP
1515
)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ client = Client.new
99

1010
account = Account.new(client)
1111

12-
result = account.create_challenge(
13-
factor: AuthenticationFactor::TOTP
12+
result = account.create_mfa_challenge(
13+
factor: AuthenticationFactor::EMAIL
1414
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('5df5acd0d48c2') # Your project ID
8+
.set_session('') # The user session to authenticate with
9+
10+
account = Account.new(client)
11+
12+
result = account.create_mfa_recovery_codes()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ client = Client.new
1010

1111
account = Account.new(client)
1212

13-
result = account.delete_authenticator(
13+
result = account.delete_mfa_authenticator(
1414
type: AuthenticatorType::TOTP,
1515
otp: '<OTP>'
1616
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('5df5acd0d48c2') # Your project ID
8+
.set_session('') # The user session to authenticate with
9+
10+
account = Account.new(client)
11+
12+
result = account.get_mfa_recovery_codes()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ client = Client.new
99

1010
account = Account.new(client)
1111

12-
result = account.list_factors()
12+
result = account.list_mfa_factors()

docs/examples/account/verify-authenticator.md renamed to docs/examples/account/update-mfa-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ client = Client.new
1010

1111
account = Account.new(client)
1212

13-
result = account.verify_authenticator(
13+
result = account.update_mfa_authenticator(
1414
type: AuthenticatorType::TOTP,
1515
otp: '<OTP>'
1616
)

docs/examples/account/update-challenge.md renamed to docs/examples/account/update-mfa-challenge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ client = Client.new
99

1010
account = Account.new(client)
1111

12-
result = account.update_challenge(
12+
result = account.update_mfa_challenge(
1313
challenge_id: '<CHALLENGE_ID>',
1414
otp: '<OTP>'
1515
)

0 commit comments

Comments
 (0)