Class: KHL::HTTP::User
Overview
Constant Summary
Constants inherited from Base
Base::API_VERSION, Base::BASE_URL, Base::END_POINT
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#me ⇒ KHL::HTTP::Response
获取当前用户信息.
-
#offline ⇒ KHL::HTTP::Response
下线机器人.
-
#view(user_id, options = {}) ⇒ KHL::HTTP::Response
获取目标用户信息.
Methods inherited from Base
#get, #initialize, #post, #post_file
Constructor Details
This class inherits a constructor from KHL::HTTP::Base
Instance Method Details
#offline ⇒ KHL::HTTP::Response
下线机器人
27 28 29 |
# File 'lib/khl/http/user.rb', line 27 def offline post end |
#view(user_id, options = {}) ⇒ KHL::HTTP::Response
获取目标用户信息
21 22 23 |
# File 'lib/khl/http/user.rb', line 21 def view(user_id, = {}) get(.merge(user_id: user_id)) end |