rongcloud 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/lib/rongcloud/service.rb +2 -1
- data/lib/rongcloud/service/message.rb +9 -0
- data/lib/rongcloud/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef8cb1aaf04e7d88af2961c854717f6867030efe
|
4
|
+
data.tar.gz: ae8d2ae75ec6176e32f4bf3096a76995892f4db3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd138619d0a7afbe65dbcfcfb4963ef43ac86386cc70caaa866c1d898c2a78475eb6c4bbc349d3d479981d50a5f020b20ba219a50e510cf4485ba98bb27a2899
|
7
|
+
data.tar.gz: c55309190cfe49016cc6747b0a84ba86e3ed0e5e5c21e44a5cff36fda4b9ba009e3e33b67defc5935139428c838f9f648232c577928f1943fa3c838ec159dae4
|
data/.gitignore
CHANGED
data/lib/rongcloud/service.rb
CHANGED
@@ -5,6 +5,7 @@ module Rongcloud
|
|
5
5
|
attr_accessor :to_user_id
|
6
6
|
attr_accessor :object_name #消息类型
|
7
7
|
|
8
|
+
#发送单聊消息
|
8
9
|
def private_publish(rc_msg)
|
9
10
|
post = {uri: Rongcloud::Service::API_URI[:MSG_PRV_PUBLISH],
|
10
11
|
params: optional_params({fromUserId: self.from_user_id, toUserId: self.to_user_id,
|
@@ -14,6 +15,14 @@ module Rongcloud
|
|
14
15
|
res = Rongcloud::Service.req_post(post)
|
15
16
|
res[:code]==200
|
16
17
|
end
|
18
|
+
|
19
|
+
#消息历史记录
|
20
|
+
def history(date_str)
|
21
|
+
post = {uri: Rongcloud::Service::API_URI[:MSG_HISTORY],
|
22
|
+
params: optional_params({date: date_str})
|
23
|
+
}
|
24
|
+
Rongcloud::Service.req_post(post)
|
25
|
+
end
|
17
26
|
end
|
18
27
|
# 不同类型的消息
|
19
28
|
class RCMsg < Rongcloud::Service::Model
|
data/lib/rongcloud/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rongcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mumaoxi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.9.1
|
69
|
-
description:
|
69
|
+
description: 融云及时通讯
|
70
70
|
email:
|
71
71
|
- 15201280641@qq.com
|
72
72
|
executables: []
|
@@ -110,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.4.
|
113
|
+
rubygems_version: 2.4.6
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
|
-
summary:
|
116
|
+
summary: 融云及时通讯
|
117
117
|
test_files: []
|