stytch 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stytch/client.rb +12 -0
- data/lib/stytch/endpoints/user.rb +12 -2
- data/lib/stytch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9614e61d538bb1c8c0e8ab5be16851c5880da47e6942bc8bcbcb0a9ae2fe2ca2
|
4
|
+
data.tar.gz: 614edf461cda1fea452850ff69527dff40d6477b120e261c6c25b86953407a6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eccfeabd3343dcbd4edc8e2ac518a4128bdf50e6612a004b95b4b865812dd7d477282b63af253967ad7a5d0ea2753f58bbb874d8675e330c9e10d10a4cbe2a5
|
7
|
+
data.tar.gz: 6fc84b8e9e2ac6ca16698d22e762f53b319eb7b252d1b6f4825c8bc1e976d9dfef0c76f194cfa2ca0bd3d6085ba3bfcecda736c4e3c4090ca77cacf151df61b0
|
data/lib/stytch/client.rb
CHANGED
@@ -69,5 +69,17 @@ module Stytch
|
|
69
69
|
path
|
70
70
|
).body
|
71
71
|
end
|
72
|
+
|
73
|
+
def request_with_query_params(path, params)
|
74
|
+
request = path
|
75
|
+
params.compact.each_with_index do |p, i|
|
76
|
+
if i == 0
|
77
|
+
request += "?#{p[0].to_s}=#{p[1]}"
|
78
|
+
else
|
79
|
+
request += "&#{p[0].to_s}=#{p[1]}"
|
80
|
+
end
|
81
|
+
end
|
82
|
+
request
|
83
|
+
end
|
72
84
|
end
|
73
85
|
end
|
@@ -7,8 +7,18 @@ module Stytch
|
|
7
7
|
get("#{PATH}/#{user_id}")
|
8
8
|
end
|
9
9
|
|
10
|
-
def get_invited_users(
|
11
|
-
|
10
|
+
def get_invited_users(
|
11
|
+
limit: nil,
|
12
|
+
starting_after_id: nil
|
13
|
+
)
|
14
|
+
query_params = {
|
15
|
+
limit: limit,
|
16
|
+
starting_after_id: starting_after_id,
|
17
|
+
}
|
18
|
+
|
19
|
+
request = request_with_query_params("#{PATH}/invites", query_params)
|
20
|
+
|
21
|
+
get(request)
|
12
22
|
end
|
13
23
|
|
14
24
|
def create_user(
|
data/lib/stytch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stytch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alex-stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|