Skip to content

Commit 1c14340

Browse files
committed
Fix casing
1 parent 52768ad commit 1c14340

File tree

77 files changed

+1420
-118
lines changed

Some content is hidden

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

77 files changed

+1420
-118
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
include Appwrite::Enums
5+
6+
client = Client.new
7+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9+
.set_session('') # The user session to authenticate with
10+
11+
account = Account.new(client)
12+
13+
result = account.create_mfa_authenticator(
14+
type: AuthenticatorType::TOTP
15+
)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
include Appwrite::Enums
5+
6+
client = Client.new
7+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9+
10+
account = Account.new(client)
11+
12+
result = account.create_mfa_challenge(
13+
factor: AuthenticationFactor::EMAIL
14+
)
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://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # 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()
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
include Appwrite::Enums
5+
6+
client = Client.new
7+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9+
.set_session('') # The user session to authenticate with
10+
11+
account = Account.new(client)
12+
13+
result = account.delete_mfa_authenticator(
14+
type: AuthenticatorType::TOTP
15+
)
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://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # 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: 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://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_session('') # The user session to authenticate with
9+
10+
account = Account.new(client)
11+
12+
result = account.list_mfa_factors()
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
include Appwrite::Enums
5+
6+
client = Client.new
7+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9+
.set_session('') # The user session to authenticate with
10+
11+
account = Account.new(client)
12+
13+
result = account.update_mfa_authenticator(
14+
type: AuthenticatorType::TOTP,
15+
otp: '<OTP>'
16+
)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_session('') # The user session to authenticate with
9+
10+
account = Account.new(client)
11+
12+
result = account.update_mfa_challenge(
13+
challenge_id: '<CHALLENGE_ID>',
14+
otp: '<OTP>'
15+
)
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://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_session('') # The user session to authenticate with
9+
10+
account = Account.new(client)
11+
12+
result = account.update_mfa_recovery_codes()
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
require 'appwrite'
2+
3+
include Appwrite
4+
5+
client = Client.new
6+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
7+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
8+
.set_key('<YOUR_API_KEY>') # Your secret API key
9+
10+
messaging = Messaging.new(client)
11+
12+
result = messaging.create_apns_provider(
13+
provider_id: '<PROVIDER_ID>',
14+
name: '<NAME>',
15+
auth_key: '<AUTH_KEY>', # optional
16+
auth_key_id: '<AUTH_KEY_ID>', # optional
17+
team_id: '<TEAM_ID>', # optional
18+
bundle_id: '<BUNDLE_ID>', # optional
19+
sandbox: false, # optional
20+
enabled: false # optional
21+
)

0 commit comments

Comments
 (0)