wework 1.2.3 → 1.2.5

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: 7a4345fc2ec9f6018f7540722d635d74c2b4f6b2886abbe93085c1d44630f744
4
- data.tar.gz: a364b04e9f381c81c3d5b8337c51a5454b63258072072474aea11abedeee6960
3
+ metadata.gz: adce838cfedd4fc0628785f3dd0fde51dc36fb69a4300548781ecbd2430d7138
4
+ data.tar.gz: 6324188d880595fd28d72b89ee8475226d92ab749959f36bb37648922d89c0cd
5
5
  SHA512:
6
- metadata.gz: dde259ae99f2b8aea670639cd851b75414ae03fdbb74a1b7b18a5018a41d53c47d331603d02f68f7cfa156acce7c9015694d3be855ef453fc4e1da00bb5afc92
7
- data.tar.gz: 22ac7e5b2dd4d09740db1206d046545ba76387317b8e4fda21fd8e0a0585e5d9d36ae5afcc94de3023de6168a0d047d469dcf83da3c0d6470da1b27204141d98
6
+ metadata.gz: dda7d4b6c87833bc5b23d5be3376e2c24dec32515fe848bfc8e8d7e429fe0c9f87197c748dfd54bad073f3d027f07be6c2db09e011209db84bc8f874e319ea0d
7
+ data.tar.gz: d4eafae82010a37c403a282091ad684d503b3550151484530842ea60a68c9839358ffc66a5da7faa8a5395b2bab678e8e2b722fe6ee85747c3c099ddfba0c201
@@ -5,8 +5,7 @@ module Wework
5
5
  module Methods
6
6
  module Message
7
7
  def miniprogram_message_send user_id, miniprogram_notice={}
8
- notice = miniprogram_notice.merge(appid: agent_id)
9
- post 'message/send', { touser: user_id, msgtype: 'miniprogram_notice', miniprogram_notice: notice }
8
+ post 'message/send', { touser: user_id, msgtype: 'miniprogram_notice', miniprogram_notice: miniprogram_notice }
10
9
  end
11
10
 
12
11
  def text_message_send user_ids, department_ids, content
@@ -10,6 +10,10 @@ module Wework
10
10
  get 'user/get', params: {userid: userid}
11
11
  end
12
12
 
13
+ def user_getuserid mobile
14
+ post 'user/getuserid', {mobile: mobile}
15
+ end
16
+
13
17
  def user_update userid, data={}
14
18
  post 'user/update', data.merge(userid: userid)
15
19
  end
@@ -1,3 +1,3 @@
1
1
  module Wework
2
- VERSION = '1.2.3'.freeze
2
+ VERSION = '1.2.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wework
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - seandong
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-07 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -249,8 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  requirements: []
252
- rubyforge_project:
253
- rubygems_version: 2.7.6
252
+ rubygems_version: 3.0.3
254
253
  signing_key:
255
254
  specification_version: 4
256
255
  summary: Ruby API wrapper for wechat work「企业微信」