wework 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wework/api/agent.rb +6 -2
- data/lib/wework/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9250f8db2e5ed399e904350ea3aa637ffde4cf35
|
4
|
+
data.tar.gz: 52d7d0cdf01ff50029e93ed1323c3b15f217f6b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c606e7facfdb79a078252d20530abc21f0e2f2a56b8f022cd8669f4f71d1b01a4ac1a6137fd9700c866431faa561427212ee9eb560104e14dd29d037822fe577
|
7
|
+
data.tar.gz: c7703412bae3286e4508d5812bbe77761677402a28a2ce8fb350066668fa3c1d135c3c08e18e08bb70bcb00038ebb1718791568c788bcc144ea92585d5125fa6
|
data/lib/wework/api/agent.rb
CHANGED
@@ -19,7 +19,7 @@ module Wework
|
|
19
19
|
noncestr = SecureRandom.hex(8)
|
20
20
|
str = "jsapi_ticket=#{jsapi_ticket}&noncestr=#{noncestr}×tamp=#{timestamp}&url=#{url}"
|
21
21
|
{
|
22
|
-
"appId" =>
|
22
|
+
"appId" => corp_id,
|
23
23
|
"nonceStr" => noncestr,
|
24
24
|
"timestamp" => timestamp,
|
25
25
|
"url" => url,
|
@@ -40,6 +40,10 @@ module Wework
|
|
40
40
|
post 'menu/create', menu, params: {agentid: agent_id}
|
41
41
|
end
|
42
42
|
|
43
|
+
def menu_get
|
44
|
+
get 'menu/get', params: {agentid: agent_id}
|
45
|
+
end
|
46
|
+
|
43
47
|
def menu_delete
|
44
48
|
get 'menu/delete', params: {agentid: agent_id}
|
45
49
|
end
|
@@ -87,4 +91,4 @@ module Wework
|
|
87
91
|
|
88
92
|
end
|
89
93
|
end
|
90
|
-
end
|
94
|
+
end
|
data/lib/wework/version.rb
CHANGED
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: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- seandong
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|