Module: JPSClient::API::Collect
- Included in:
- Client
- Defined in:
- lib/jpsclient/api/collect.rb
Overview
Collect 相关 API 自动生成的模块,处理 collect 相关接口
Instance Method Summary collapse
-
#create_collect(params: {}) ⇒ Hash
Create Collect.
-
#delete_collect(params: {}) ⇒ Hash
Delete Collect.
Instance Method Details
#create_collect(params: {}) ⇒ Hash
Create Collect
11 12 13 14 15 16 17 18 |
# File 'lib/jpsclient/api/collect.rb', line 11 def create_collect(params: {}) config = @request_config && @request_config["collect_collect"] raise JPSClient::ExceptionError, "Missing config for collect_collect" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#delete_collect(params: {}) ⇒ Hash
Delete Collect
24 25 26 27 28 29 30 31 |
# File 'lib/jpsclient/api/collect.rb', line 24 def delete_collect(params: {}) config = @request_config && @request_config["collect_collect"] raise JPSClient::ExceptionError, "Missing config for collect_collect" unless config && config["url"] path = config["url"] return request_with_auth(:delete, path) end |