yxt-api 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +1 -0
- data/lib/yxt-api.rb +3 -0
- data/lib/yxt-api/job_level.rb +7 -0
- data/lib/yxt-api/organization_unit.rb +12 -9
- data/lib/yxt-api/position.rb +5 -7
- data/lib/yxt-api/user.rb +9 -13
- data/lib/yxt-api/version.rb +3 -1
- metadata +25 -24
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a04f2b094cf4a232bad967bd91d53d9cbbe6b29b70ffe96c5a09d11776611afa
|
4
|
+
data.tar.gz: f07d7cd10af7d13a15022c25f824bea91c58568c6a255ad629f80d0e0ee5aab3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7c4dbe94ae95a15365dab85df5819d8713ff9045f439095a6ee9c03a471aa26d4cba645433b56e7c104daf0ac9a68ec940d0c9156781ec7f03751e322aa30e2
|
7
|
+
data.tar.gz: c3b110636acb7acfe1972f83cbb7cb3aa67273709975fa3a8068e03f4a7ac3892d80c75f5eaa3653fb1ecf482ec72816ea959964a9397cc9ae9630aeb00e72ee
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
data/lib/yxt-api.rb
CHANGED
@@ -1,21 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Yxt
|
2
|
-
def self.sync_ous(ous_hash
|
3
|
-
request '
|
4
|
+
def self.sync_ous(ous_hash)
|
5
|
+
request 'v1/udp/sy/ous', datas: ous_hash
|
4
6
|
end
|
5
7
|
|
6
8
|
def self.delete_ous(ou_code_or_third_system_ids)
|
7
|
-
request '
|
9
|
+
request 'v1/udp/sy/deleteous', datas: ou_code_or_third_system_ids
|
8
10
|
end
|
9
11
|
|
10
|
-
def self.
|
11
|
-
request '
|
12
|
+
def self.remove_users_from_ou(user_names)
|
13
|
+
request 'v1/udp/sy/removeusersfromou', datas: user_names
|
12
14
|
end
|
13
15
|
|
14
|
-
def self.batch_change_org_ou(
|
15
|
-
request '
|
16
|
+
def self.batch_change_org_ou(user_names, extend_key, tool_user_id)
|
17
|
+
request 'v1/udp/sy/batchchangeorgou',
|
18
|
+
userNames: user_names, extendKey: extend_key, toolUserId: tool_user_id
|
16
19
|
end
|
17
20
|
|
18
|
-
def self.get_ou_code_by_ou_name(
|
19
|
-
request '
|
21
|
+
def self.get_ou_code_by_ou_name(extend_key, page_index = 1, page_size = 30)
|
22
|
+
request 'v1/udp/sy/deptout', extendKey: extend_key, pageIndex: page_index, pageSize: page_size
|
20
23
|
end
|
21
24
|
end
|
data/lib/yxt-api/position.rb
CHANGED
@@ -1,13 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Yxt
|
2
4
|
def self.sync_position(position_hash)
|
3
|
-
request '
|
4
|
-
end
|
5
|
-
|
6
|
-
def self.sync_position_for_no_pno(position_hash)
|
7
|
-
request 'el/sync/positionfornopno', positionInfo: position_hash.to_json.to_s
|
5
|
+
request 'v1/udp/sy/position', datas: position_hash
|
8
6
|
end
|
9
7
|
|
10
|
-
def self.
|
11
|
-
request '
|
8
|
+
def self.update_position_info(position_no, position_name)
|
9
|
+
request 'v1/udp/sy/updatepositioninfo', positionNo: position_no, positionName: position_name
|
12
10
|
end
|
13
11
|
end
|
data/lib/yxt-api/user.rb
CHANGED
@@ -1,21 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Yxt
|
2
|
-
def self.sync_users(users_hash, islink:
|
3
|
-
request '
|
4
|
+
def self.sync_users(users_hash, islink: 1, is_send_notice: 0)
|
5
|
+
request 'v1/udp/sy/users', islink: islink, isSendNotice: is_send_notice,
|
6
|
+
datas: users_hash
|
4
7
|
end
|
5
8
|
|
6
|
-
def self.disable_users(user_names,
|
7
|
-
request '
|
9
|
+
def self.disable_users(user_names, is_clear_email_and_mobile: 0)
|
10
|
+
request 'v1/udp/sy/disabledusers', isClearEmailAndMobile: is_clear_email_and_mobile,
|
11
|
+
datas: user_names
|
8
12
|
end
|
9
13
|
|
10
14
|
def self.enable_users(user_names)
|
11
|
-
request '
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.delete_users(user_names)
|
15
|
-
request 'el/sync/deletedusers', userNames: user_names.to_json.to_s
|
16
|
-
end
|
17
|
-
|
18
|
-
def self.check_user(user_name)
|
19
|
-
request 'el/sync/cku', userNames: user_name
|
15
|
+
request 'v1/udp/sy/enabledusers', datas: user_names
|
20
16
|
end
|
21
17
|
end
|
data/lib/yxt-api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yxt-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Guo
|
@@ -11,30 +11,30 @@ cert_chain:
|
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIEQDCCAqigAwIBAgIBATANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBplcmlj
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
+
|
23
|
-
|
24
|
-
|
25
|
-
|
14
|
+
Lmd1b2N6L0RDPWdtYWlsL0RDPWNvbTAeFw0xOTA4MzAwODIzMTVaFw0yMDA4Mjkw
|
15
|
+
ODIzMTVaMCUxIzAhBgNVBAMMGmVyaWMuZ3VvY3ovREM9Z21haWwvREM9Y29tMIIB
|
16
|
+
ojANBgkqhkiG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1Lg1nbmXX0zHz1fXp+DXL7NoJ
|
30
|
+
bBHL9Oy6jps/Lz8fIanPIZ6iT/akA7Mts94v1F9dyeA3IIJVptvmuGFC9PexX4TJ
|
31
|
+
fZ/qmk93C6KEOGEQ0zJzjnKjRZT0KOnJxbpB6/4Xvr+SrTb0yx20s+YWWa28pb0C
|
32
|
+
gNr4HHRfhmqxoTKvM4Mm9oJSBO/ENi5zfLwvwOWRuriMuDGYmKCdwmn4Y9asgYS4
|
33
|
+
2febpVoh2LTA7GDc1VJOKhxisQ2OtYpcTR503eGyIrnS4NGs+B0rXOB7pEX+VOju
|
34
|
+
2Gz/SZ1dgCkJpJU45GNrhatKx3kyg8eC5IHekNrEvJNJqPl0VdRIs/GtUkQyk+np
|
35
|
+
3kTPkfLMsAZznXo3bzMe0V5TB4+a7pFEK1nN/htWrOVkIi/3
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2019-
|
37
|
+
date: 2019-10-25 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: http
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- LICENSE
|
96
96
|
- README.md
|
97
97
|
- lib/yxt-api.rb
|
98
|
+
- lib/yxt-api/job_level.rb
|
98
99
|
- lib/yxt-api/organization_unit.rb
|
99
100
|
- lib/yxt-api/position.rb
|
100
101
|
- lib/yxt-api/user.rb
|
@@ -118,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
119
|
- !ruby/object:Gem::Version
|
119
120
|
version: '0'
|
120
121
|
requirements: []
|
121
|
-
rubygems_version: 3.0.
|
122
|
+
rubygems_version: 3.0.6
|
122
123
|
signing_key:
|
123
124
|
specification_version: 4
|
124
125
|
summary: An unofficial 云学堂 http://www.yxt.com/ API wrap gem
|
metadata.gz.sig
CHANGED
Binary file
|