wechat 0.11.1 → 0.11.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/CHANGELOG.md +6 -1
- data/README-CN.md +3 -1
- data/README.md +3 -1
- data/bin/wechat +3 -3
- data/lib/wechat/message.rb +6 -1
- metadata +3 -3
- 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: 793009826979984d90edcb7a183659202c17c492856b690437f764e7e4de3e34
|
4
|
+
data.tar.gz: d716eaf2dcc804345d0cf60b3b6bd99ab01cb2fa3cc7adad30faf7af570bc1b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 638b8c5c8583b61865a8387255621b038ea1be3d7fc225f739eaa89f98876c25a71cbdbe9c73128c0602505de038c3b874abd1281bae46ab8106e4eb389a00a0
|
7
|
+
data.tar.gz: bf222853c350e29a3c906c5d5d04afe2fb82bc4909af15a49d03f430aed3bb47e6d4780fbf9bc6525a2c63e7523db336e047a1f0bf476fd52f3d6afcd5246fcb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v0.11.2 (released at 05/08/2019)
|
4
|
+
|
5
|
+
* bugfix short_url to shorturl in wechat console tool by @yuanxinyu #259
|
6
|
+
* allow a message to be sent to a party (department) by @hophacker #256
|
7
|
+
|
3
8
|
## v0.11.1 (released at 03/01/2019)
|
4
9
|
|
5
10
|
* Let Message support markdown, text included; allow textcard btntxt to be omitted by @hophacker #251
|
@@ -144,7 +149,7 @@
|
|
144
149
|
|
145
150
|
* Fix when access_token failed lead ticket can not refresh problem.
|
146
151
|
* Default duration should be 1 hours instead of 0 seconds for wechat_oauth2.
|
147
|
-
* New
|
152
|
+
* New shorturl allowing convert from long URL to short.
|
148
153
|
|
149
154
|
## v0.7.13 (released at 5/14/2016)
|
150
155
|
|
data/README-CN.md
CHANGED
@@ -380,7 +380,7 @@ Wechat Public Account commands:
|
|
380
380
|
wechat qrcode_create_limit_scene [SCENE_ID_OR_STR] # 请求永久二维码
|
381
381
|
wechat qrcode_create_scene [SCENE_ID_OR_STR, EXPIRE_SECONDS] # 请求临时二维码
|
382
382
|
wechat qrcode_download [TICKET, QR_CODE_PIC_PATH] # 通过ticket下载二维码
|
383
|
-
wechat
|
383
|
+
wechat shorturl [LONG_URL] # 长链接转短链接
|
384
384
|
wechat tag [TAGID] # 获取标签下粉丝列表
|
385
385
|
wechat tag_add_user [TAG_ID, OPEN_IDS] # 批量为用户打标签
|
386
386
|
wechat tag_create [TAGNAME, TAG_ID] # 创建标签
|
@@ -460,6 +460,8 @@ Wechat Enterprise Account commands:
|
|
460
460
|
wechat user_update_remark [OPEN_ID, REMARK] # 设置备注名
|
461
461
|
```
|
462
462
|
|
463
|
+
注意:replaceparty 全量覆盖部门只支持单个根节点作为部门,不支持平行多根节点。
|
464
|
+
|
463
465
|
### 使用场景
|
464
466
|
以下是几种典型场景的使用方法
|
465
467
|
|
data/README.md
CHANGED
@@ -411,7 +411,7 @@ Wechat Public Account commands:
|
|
411
411
|
wechat qrcode_create_limit_scene [SCENE_ID_OR_STR] # 请求永久二维码
|
412
412
|
wechat qrcode_create_scene [SCENE_ID_OR_STR, EXPIRE_SECONDS] # 请求临时二维码
|
413
413
|
wechat qrcode_download [TICKET, QR_CODE_PIC_PATH] # 通过ticket下载二维码
|
414
|
-
wechat
|
414
|
+
wechat shorturl [LONG_URL] # 长链接转短链接
|
415
415
|
wechat tag [TAGID] # 获取标签下粉丝列表
|
416
416
|
wechat tag_add_user [TAG_ID, OPEN_IDS] # 批量为用户打标签
|
417
417
|
wechat tag_create [TAGNAME, TAG_ID] # 创建标签
|
@@ -492,6 +492,8 @@ Wechat Enterprise Account commands:
|
|
492
492
|
wechat user_update_remark [OPEN_ID, REMARK] # 设置备注名
|
493
493
|
```
|
494
494
|
|
495
|
+
Note: `replaceparty` full departments uploads only supports a single root node as a department and does not support parallel multiple root nodes.
|
496
|
+
|
495
497
|
### Command line usage demo (partially)
|
496
498
|
|
497
499
|
##### Fetch all users open id
|
data/bin/wechat
CHANGED
@@ -296,9 +296,9 @@ class App < Thor
|
|
296
296
|
puts wechat_api.qrcode_create_limit_scene(scene_id_or_str)
|
297
297
|
end
|
298
298
|
|
299
|
-
desc '
|
300
|
-
def
|
301
|
-
puts wechat_api.
|
299
|
+
desc 'shorturl [LONG_URL]', '长链接转短链接'
|
300
|
+
def shorturl(long_url)
|
301
|
+
puts wechat_api.shorturl(long_url)
|
302
302
|
end
|
303
303
|
|
304
304
|
desc 'customservice_getonlinekflist', '获取在线客服接待信息'
|
data/lib/wechat/message.rb
CHANGED
@@ -15,6 +15,10 @@ module Wechat
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
+
def to_party(party)
|
19
|
+
new(ToPartyName: party, CreateTime: Time.now.to_i)
|
20
|
+
end
|
21
|
+
|
18
22
|
def to_mass(tag_id: nil, send_ignore_reprint: 0)
|
19
23
|
if tag_id
|
20
24
|
new(filter: { is_to_all: false, tag_id: tag_id }, send_ignore_reprint: send_ignore_reprint)
|
@@ -206,6 +210,7 @@ module Wechat
|
|
206
210
|
'TextCard' => 'textcard',
|
207
211
|
'Markdown' => 'markdown',
|
208
212
|
'ToUserName' => 'touser',
|
213
|
+
'ToPartyName' => 'toparty',
|
209
214
|
'ToWxName' => 'towxname',
|
210
215
|
'MediaId' => 'media_id',
|
211
216
|
'MpNews' => 'mpnews',
|
@@ -216,7 +221,7 @@ module Wechat
|
|
216
221
|
'ShowCoverPic' => 'show_cover_pic'
|
217
222
|
}.freeze
|
218
223
|
|
219
|
-
TO_JSON_ALLOWED = %w[touser msgtype content image voice video file textcard markdown
|
224
|
+
TO_JSON_ALLOWED = %w[touser toparty msgtype content image voice video file textcard markdown
|
220
225
|
music news articles template agentid filter
|
221
226
|
send_ignore_reprint mpnews towxname].freeze
|
222
227
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wechat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Skinnyworm
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
ivoox98/nhOs6bHcSFPsxXdxUihcCfCzj+zcaHNEqpvTI/36Bnl2XW6dUJNaFQDc
|
36
36
|
oWOyq5ZkxqnYrYXactjW0+vcPv6WHoHXmjv4dF7iFp8r0mvK
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-
|
38
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: activesupport
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
|
-
rubygems_version: 3.0.
|
217
|
+
rubygems_version: 3.0.3
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: DSL for wechat message handling and API
|
metadata.gz.sig
CHANGED
Binary file
|