ruby-identitas-api 0.7.1 → 0.8.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4685ade3751f45d61e3079976f2a002be8428db848a7d15429b7924fa8070026
|
4
|
+
data.tar.gz: 1e4f9bebdeba5e63e3e07ff0f1d0dbb67522869250d89922229ff1857dde6e7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cb2a391e0bf42c10af71de1e70ef924febc95f587104acc8010cde066a77f92c71bca7b27982d869657a43988b5f9b8c259c2d61ab79f529e2f4362e7298c0f
|
7
|
+
data.tar.gz: 99340359351156fd457973e87b3b06e1109b84851cc7f4093233c0c2fb8a56f6c8f7565908d8c6fd09e31488094c11e5e7b4b0f64c3319c63c4e1886a6c11cf7
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Ruby
|
2
|
+
module Identitas
|
3
|
+
module Endpoints
|
4
|
+
module Internal
|
5
|
+
module InviteUser
|
6
|
+
def user_invite(options = {}, headers = {})
|
7
|
+
headers.merge!({AuthKey: @api_key})
|
8
|
+
endpoint = build_endpoint("/v1/internal/users/invite")
|
9
|
+
self.class.post(endpoint, query: options, headers: headers)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/ruby/identitas/main.rb
CHANGED
@@ -3,6 +3,7 @@ require "ruby/identitas/endpoints/token_status"
|
|
3
3
|
require "ruby/identitas/endpoints/password"
|
4
4
|
require "ruby/identitas/endpoints/user"
|
5
5
|
require "ruby/identitas/endpoints/internal/password"
|
6
|
+
require "ruby/identitas/endpoints/internal/invite_user"
|
6
7
|
|
7
8
|
module Ruby
|
8
9
|
module Identitas
|
@@ -13,6 +14,7 @@ module Ruby
|
|
13
14
|
include Ruby::Identitas::Endpoints::Password
|
14
15
|
include Ruby::Identitas::Endpoints::User
|
15
16
|
include Ruby::Identitas::Endpoints::Internal::Password
|
17
|
+
include Ruby::Identitas::Endpoints::Internal::InviteUser
|
16
18
|
|
17
19
|
def initialize(token, api_key = "")
|
18
20
|
@base_uri = Ruby::Identitas::Api.url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-identitas-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yunanhelmy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- lib/ruby/identitas/api.rb
|
90
90
|
- lib/ruby/identitas/api/version.rb
|
91
91
|
- lib/ruby/identitas/configuration.rb
|
92
|
+
- lib/ruby/identitas/endpoints/internal/invite_user.rb
|
92
93
|
- lib/ruby/identitas/endpoints/internal/password.rb
|
93
94
|
- lib/ruby/identitas/endpoints/me.rb
|
94
95
|
- lib/ruby/identitas/endpoints/password.rb
|