-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Ruby SDK update for version 22.0.0 #57
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
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
bfd053b
feat: update Ruby SDK to 21.1.0
ChiragAgg5k 37ce0e5
chore: update Ruby SDK to 22.0.0
ChiragAgg5k da8b2e6
chore: update Ruby SDK to 22.0.0
ChiragAgg5k d03a1e0
chore: update Ruby SDK to 22.0.0
ChiragAgg5k a971534
chore: update Ruby SDK to 22.0.0
ChiragAgg5k ddb626c
chore: update Ruby SDK to 22.0.0
ChiragAgg5k 73ef065
chore: update Ruby SDK to 22.0.0
ChiragAgg5k b5a0720
chore: update Ruby SDK to 22.0.0
ChiragAgg5k 409ad53
chore: update Ruby SDK to 22.0.0
ChiragAgg5k 40d76c8
chore: update Ruby SDK to 22.0.0
ChiragAgg5k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| project = Project.new(client) | ||
|
|
||
| result = project.create_variable( | ||
| variable_id: '<VARIABLE_ID>', | ||
| key: '<KEY>', | ||
| value: '<VALUE>', | ||
| secret: false # optional | ||
| ) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| project = Project.new(client) | ||
|
|
||
| result = project.delete_variable( | ||
| variable_id: '<VARIABLE_ID>' | ||
| ) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| project = Project.new(client) | ||
|
|
||
| result = project.get_variable( | ||
| variable_id: '<VARIABLE_ID>' | ||
| ) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| project = Project.new(client) | ||
|
|
||
| result = project.list_variables( | ||
| queries: [], # optional | ||
| total: false # optional | ||
| ) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| project = Project.new(client) | ||
|
|
||
| result = project.update_variable( | ||
| variable_id: '<VARIABLE_ID>', | ||
| key: '<KEY>', # optional | ||
| value: '<VALUE>', # optional | ||
| secret: false # optional | ||
| ) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| users = Users.new(client) | ||
|
|
||
| result = users.update_impersonator( | ||
| user_id: '<USER_ID>', | ||
| impersonator: false | ||
| ) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| webhooks = Webhooks.new(client) | ||
|
|
||
| result = webhooks.create( | ||
| webhook_id: '<WEBHOOK_ID>', | ||
| url: '', | ||
| name: '<NAME>', | ||
| events: [], | ||
| enabled: false, # optional | ||
| security: false, # optional | ||
| http_user: '<HTTP_USER>', # optional | ||
| http_pass: '<HTTP_PASS>' # optional | ||
| ) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| webhooks = Webhooks.new(client) | ||
|
|
||
| result = webhooks.delete( | ||
| webhook_id: '<WEBHOOK_ID>' | ||
| ) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| webhooks = Webhooks.new(client) | ||
|
|
||
| result = webhooks.get( | ||
| webhook_id: '<WEBHOOK_ID>' | ||
| ) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| webhooks = Webhooks.new(client) | ||
|
|
||
| result = webhooks.list( | ||
| queries: [], # optional | ||
| total: false # optional | ||
| ) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| webhooks = Webhooks.new(client) | ||
|
|
||
| result = webhooks.update_signature( | ||
| webhook_id: '<WEBHOOK_ID>' | ||
| ) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| ```ruby | ||
| require 'appwrite' | ||
|
|
||
| include Appwrite | ||
|
|
||
| client = Client.new | ||
| .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint | ||
| .set_project('<YOUR_PROJECT_ID>') # Your project ID | ||
| .set_key('<YOUR_API_KEY>') # Your secret API key | ||
|
|
||
| webhooks = Webhooks.new(client) | ||
|
|
||
| result = webhooks.update( | ||
| webhook_id: '<WEBHOOK_ID>', | ||
| name: '<NAME>', | ||
| url: '', | ||
| events: [], | ||
| enabled: false, # optional | ||
| security: false, # optional | ||
| http_user: '<HTTP_USER>', # optional | ||
| http_pass: '<HTTP_PASS>' # optional | ||
| ) | ||
| ``` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't remove old release