wechat_public_api 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/lib/wechat_public_api/templet_message.rb +2 -3
- data/lib/wechat_public_api/version.rb +1 -1
- metadata +2 -8
- data/wechat_public_api-0.1.1.gem +0 -0
- data/wechat_public_api-0.1.2.gem +0 -0
- data/wechat_public_api-0.1.3.gem +0 -0
- data/wechat_public_api-0.1.4.gem +0 -0
- data/wechat_public_api-0.1.5.gem +0 -0
- data/wechat_public_api-0.1.6.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86044f37fa4700c008ef478330acaae14c42a5af
|
4
|
+
data.tar.gz: 569ece2dd447d793239d2d414cb9feac28c4fdcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcd7a2071e9c94ddecfe56bddc73c1fb42648812ffd79e7a13a2e088b097dc76d9cf8ccbbccc9fb675adbf1748dc3996770ea401f0a443a3cc3600b81b7373e0
|
7
|
+
data.tar.gz: d6145add1bc8f2102fe0ef49ed3d15a300a88faa0b95c8cc0657900daf6fb8cd27a377b4d673648ca2b0b9927faec56eae01a43c071ac69dd75e9915ce2adbc5
|
data/.gitignore
CHANGED
@@ -15,12 +15,11 @@ class WechatPublicApi
|
|
15
15
|
# get access_token
|
16
16
|
access_token = get_access_token()
|
17
17
|
|
18
|
-
|
19
|
-
uri = URI.parse("https://api.weixin.qq.com/cgi-bin/message/template/#{url_params}?access_token=#{@access_token}")
|
18
|
+
uri = URI.parse("https://api.weixin.qq.com/cgi-bin/message/template/#{url_params}?access_token=#{access_token}")
|
20
19
|
http = Net::HTTP.new(uri.host, uri.port)
|
21
20
|
http.use_ssl = true
|
22
21
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
23
|
-
request = Net::HTTP::Post.new("/cgi-bin/message/template/#{url_params}?access_token=#{
|
22
|
+
request = Net::HTTP::Post.new("/cgi-bin/message/template/#{url_params}?access_token=#{access_token}")
|
24
23
|
request.add_field('Content-Type', 'application/json')
|
25
24
|
# 部分字符转换为json后 成为unicode编码
|
26
25
|
request.body = message.to_json.gsub(/\\u([0-9a-z]{4})/) {|s| [$1.to_i(16)].pack("U")}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wechat_public_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- '张明鑫 wechat number: zmx119966'
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -135,12 +135,6 @@ files:
|
|
135
135
|
- lib/wechat_public_api/user.rb
|
136
136
|
- lib/wechat_public_api/utils.rb
|
137
137
|
- lib/wechat_public_api/version.rb
|
138
|
-
- wechat_public_api-0.1.1.gem
|
139
|
-
- wechat_public_api-0.1.2.gem
|
140
|
-
- wechat_public_api-0.1.3.gem
|
141
|
-
- wechat_public_api-0.1.4.gem
|
142
|
-
- wechat_public_api-0.1.5.gem
|
143
|
-
- wechat_public_api-0.1.6.gem
|
144
138
|
- wechat_public_api.gemspec
|
145
139
|
homepage: https://github.com/Diyilou/wechat_public_api.git
|
146
140
|
licenses:
|
data/wechat_public_api-0.1.1.gem
DELETED
Binary file
|
data/wechat_public_api-0.1.2.gem
DELETED
Binary file
|
data/wechat_public_api-0.1.3.gem
DELETED
Binary file
|
data/wechat_public_api-0.1.4.gem
DELETED
Binary file
|
data/wechat_public_api-0.1.5.gem
DELETED
Binary file
|
data/wechat_public_api-0.1.6.gem
DELETED
Binary file
|