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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8b8368ac805dc6fab37019952fb4212d253f02c178fd1252d2495acc9bef967
4
- data.tar.gz: 51eb55471aca49aff3f30415fecda9911f79f3c390ccc9e9f8129a82084ae94d
3
+ metadata.gz: 9614e61d538bb1c8c0e8ab5be16851c5880da47e6942bc8bcbcb0a9ae2fe2ca2
4
+ data.tar.gz: 614edf461cda1fea452850ff69527dff40d6477b120e261c6c25b86953407a6c
5
5
  SHA512:
6
- metadata.gz: d7b3b92df95967d07997421b29f2dd53cff3be399c1daa5db4f1207cfcd99ae59394b2b4b436baea556fa6e6e5545b32abd86399d0a46d65ee7ca50bcb7006f2
7
- data.tar.gz: 53bc8fc1a34c9afeec90296935e48ab79438761b2f09e34e75c6bd06dc9c46c92665988f123bd91bc1cba896a0f81c835b18c078ef44e2426416c10585f1fa6a
6
+ metadata.gz: 0eccfeabd3343dcbd4edc8e2ac518a4128bdf50e6612a004b95b4b865812dd7d477282b63af253967ad7a5d0ea2753f58bbb874d8675e330c9e10d10a4cbe2a5
7
+ data.tar.gz: 6fc84b8e9e2ac6ca16698d22e762f53b319eb7b252d1b6f4825c8bc1e976d9dfef0c76f194cfa2ca0bd3d6085ba3bfcecda736c4e3c4090ca77cacf151df61b0
@@ -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
- get("#{PATH}/invites")
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(
@@ -1,3 +1,3 @@
1
1
  module Stytch
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
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.14
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-20 00:00:00.000000000 Z
11
+ date: 2021-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday