kf5_api 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: b708b594217b9359f7b2d71c608a83e2878dd664
4
- data.tar.gz: d96838ce2f1dd81edf633bfff8715b8d4fd6c0bf
3
+ metadata.gz: 95dea2e6c3cc040bb5763f782a1ff9c86364e10a
4
+ data.tar.gz: caac9071b57094469954a0e31550cefede965f33
5
5
  SHA512:
6
- metadata.gz: ff285f2348fc97a2473e96e87a3e0cdb1c14eb02f171f1cd5a2c72d165af96d09e51fda0b67b28bdfa503b5d4e2503e761d632b260095bbc117ed1de969e3b47
7
- data.tar.gz: e0506cab5029338cea576883ba4d69930dc8570d548793d046166c6bf712e44102faeb0dc17e5ecc57a67473e0b19d21d3959647fdd967ab258a8e25f0abbaca
6
+ metadata.gz: 182a0b376f16072b292603ec418c0e9cd2a0504b1e44938af66dbe3c81272ae3a2c46a3a5347d916c1baadc37f3b9270ecd0184bd1919c2a918675f3b63c44b2
7
+ data.tar.gz: f2c4734e53536e059fb50a49673a1120444ae325ba35adfc5e1a8fac355db20ad7f02517e2ce32cb8274545115228968c6bd9cf6f074bf5068ec137b36aa130a
data/lib/kf5_api/kchat.rb CHANGED
@@ -12,12 +12,12 @@ module Kf5Api
12
12
  class << self
13
13
  # 对话列表
14
14
  def history(query_params = {})
15
- get(ACTIONS_HASH[:history], query_params).parsed_response['chats']
15
+ get(ACTIONS_HASH[:history], query_params).parsed_response
16
16
  end
17
17
 
18
18
  # 查看对话
19
19
  def chat(chat_id)
20
- get(format(ACTIONS_HASH[:chat], id: chat_id)).parsed_response['chat']
20
+ get(format(ACTIONS_HASH[:chat], id: chat_id)).parsed_response
21
21
  end
22
22
  end
23
23
  end
@@ -10,7 +10,7 @@ module Kf5Api
10
10
 
11
11
  class << self
12
12
  def all(query_params = {})
13
- get(ACTIONS_HASH[:all], query_params).parsed_response['organizations']
13
+ get(ACTIONS_HASH[:all], query_params).parsed_response
14
14
  end
15
15
  end
16
16
  end
data/lib/kf5_api/user.rb CHANGED
@@ -12,7 +12,7 @@ module Kf5Api
12
12
  # 获取某个组织下的所有用户
13
13
  def users_by_organization(org_id, query_params = {})
14
14
  action = format(ACTIONS_HASH[:users_by_org], id: org_id)
15
- get(action, query_params).parsed_response['users']
15
+ get(action, query_params).parsed_response
16
16
  end
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module Kf5Api
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kf5_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - wangrui
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-13 00:00:00.000000000 Z
11
+ date: 2017-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler