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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ef7748d9a245112f17132cc8cd3a825c616dd840085236a6e4537dec92bab68
4
- data.tar.gz: 5a747af6aed46fc9c49e02926367c9c18167e91e017ad68a0d14c8edd2492edc
3
+ metadata.gz: a04f2b094cf4a232bad967bd91d53d9cbbe6b29b70ffe96c5a09d11776611afa
4
+ data.tar.gz: f07d7cd10af7d13a15022c25f824bea91c58568c6a255ad629f80d0e0ee5aab3
5
5
  SHA512:
6
- metadata.gz: 193cc98a0a1a6067ccd669beb8ce939fc053ec78eab73b388e5ee566a7137828b236a2c809783a567eb692cfe8658a5dbb025ec8b33e4b3231efb263d28ba59d
7
- data.tar.gz: fdeb76a0c97756c6133b251c1d7544188855aab184851715a727e28ebf281528ebc6e5edaf29c0172fbe962faf8f5e28b33cf6fed2c5c460e71eeabe185cecb3
6
+ metadata.gz: e7c4dbe94ae95a15365dab85df5819d8713ff9045f439095a6ee9c03a471aa26d4cba645433b56e7c104daf0ac9a68ec940d0c9156781ec7f03751e322aa30e2
7
+ data.tar.gz: c3b110636acb7acfe1972f83cbb7cb3aa67273709975fa3a8068e03f4a7ac3892d80c75f5eaa3653fb1ecf482ec72816ea959964a9397cc9ae9630aeb00e72ee
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -42,3 +42,4 @@ The gem is available as open source under the terms of the [MIT License](http://
42
42
 
43
43
 
44
44
  [version-badge]: https://badge.fury.io/rb/yxt-api.svg
45
+ [rubygems]: https://rubygems.org/gems/yxt-api
@@ -1,6 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'http'
2
4
  require 'json'
3
5
  require 'digest'
6
+ require 'yxt-api/job_level'
4
7
  require 'yxt-api/organization_unit'
5
8
  require 'yxt-api/position'
6
9
  require 'yxt-api/user'
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Yxt
4
+ def self.upd_grade(grades_hash)
5
+ request 'v1/udp/sy/updgrade', datas: grades_hash
6
+ end
7
+ end
@@ -1,21 +1,24 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Yxt
2
- def self.sync_ous(ous_hash, isBaseInfo: false)
3
- request 'el/sync/ous', isBaseInfo: isBaseInfo, ouInfo: ous_hash.to_json.to_s
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 'el/sync/deleteous', OuCodeOrThirdSystemID: ou_code_or_third_system_ids.to_json.to_s
9
+ request 'v1/udp/sy/deleteous', datas: ou_code_or_third_system_ids
8
10
  end
9
11
 
10
- def self.remove_user_from_all_ous(user_names)
11
- request 'el/sync/removeusersfromou', userNames: user_names.to_json.to_s
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(new_ou_id, user_names)
15
- request 'el/sync/batchchangeorgou', newOuID: new_ou_id, userNames: user_names.to_json.to_s
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(ou_name, islink: true)
19
- request 'el/sync/getoucodebyouname', islink: islink, ouname: ou_name
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
@@ -1,13 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Yxt
2
4
  def self.sync_position(position_hash)
3
- request 'el/sync/position', positionInfo: position_hash.to_json.to_s
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.update_position_name(position_no, position_name)
11
- request 'el/sync/updatepositioninfo', positionNo: position_no, positionName: position_name
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
@@ -1,21 +1,17 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Yxt
2
- def self.sync_users(users_hash, islink: true)
3
- request 'el/sync/users', islink: islink, users: users_hash.to_json.to_s
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, isClearEmailAndMobile: false)
7
- request 'el/sync/disabledusers', userNames: user_names.to_json.to_s, isClearEmailAndMobile: isClearEmailAndMobile
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 'el/sync/enabledusers', userNames: user_names.to_json.to_s
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Yxt
2
- VERSION = '0.0.1'.freeze
4
+ VERSION = '0.0.2'
3
5
  end
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Guo
@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
31
- Jh+lbxasy+KwHA6+9O5b8Qm2QSBN5bJGd2a63QE5p8cjRBnaRuiKn4wkmqMj/C0Z
32
- OyM5lSs5iGML+eVE/dCsV+YFmSr6Ue8vokmKdrBDjtAkHwmVA0TpqHVmT+9bVUPn
33
- Jl+EzvEfsjriqcj9+WGPo4R7XDQQnseHqzlXNedkrLFX/nTnEs5RKBZ6Ter1KRU6
34
- ivoox98/nhOs6bHcSFPsxXdxUihcCfCzj+zcaHNEqpvTI/36Bnl2XW6dUJNaFQDc
35
- oWOyq5ZkxqnYrYXactjW0+vcPv6WHoHXmjv4dF7iFp8r0mvK
27
+ Lmd1b2N6QGdtYWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAkS8q1uex/jWTHtYi
28
+ 6Rgv8hZugwpFCwGPb9i4VgSSA1qkfsFhNxQji1xcpo8hYlH6zW9L6CGC9BU4n9R2
29
+ iyuuvtHVnxt5i6u39fIw0dIHJdtswSXZ6Kq58RP1Lg1nbmXX0zHz1fXp+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-04-08 00:00:00.000000000 Z
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.3
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