Skip to content

Commit fc8d8b9

Browse files
committed
Release candidate for 1.5.x
1 parent 482ec36 commit fc8d8b9

File tree

196 files changed

+5425
-145
lines changed

Some content is hidden

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

196 files changed

+5425
-145
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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.4.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-ruby/releases).**
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-ruby/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 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

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 = '10.1.2'
4+
spec.version = '11.0.0-rc.2'
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'
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://cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('5df5acd0d48c2') # Your project ID
9+
.set_session('') # The user session to authenticate with
10+
11+
account = Account.new(client)
12+
13+
response = account.add_authenticator(type: ::TOTP)
14+
15+
puts response.inspect
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
9+
account = Account.new(client)
10+
11+
response = account.create_anonymous_session()
12+
13+
puts response.inspect
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
9+
account = Account.new(client)
10+
11+
response = account.create_email_password_session(email: 'email@example.com', password: 'password')
12+
13+
puts response.inspect
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
9+
account = Account.new(client)
10+
11+
response = account.create_email_token(user_id: '[USER_ID]', email: 'email@example.com')
12+
13+
puts response.inspect
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
9+
account = Account.new(client)
10+
11+
response = account.create_jwt()
12+
13+
puts response.inspect
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
9+
account = Account.new(client)
10+
11+
response = account.create_magic_url_token(user_id: '[USER_ID]', email: 'email@example.com')
12+
13+
puts response.inspect
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://cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('5df5acd0d48c2') # Your project ID
9+
10+
account = Account.new(client)
11+
12+
response = account.create_o_auth2_session(provider: OAuthProvider::AMAZON)
13+
14+
puts response.inspect
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
9+
account = Account.new(client)
10+
11+
response = account.create_phone_token(user_id: '[USER_ID]', phone: '+12065550100')
12+
13+
puts response.inspect

0 commit comments

Comments
 (0)