Module: JPSClient::API::LarkTaskList
- Included in:
- Client
- Defined in:
- lib/jpsclient/api/lark_task_list.rb
Overview
LarkTaskList 相关 API 自动生成的模块,处理 lark_task_list 相关接口
Instance Method Summary collapse
-
#get_all(params: {}) ⇒ Hash
Get All.
-
#get_create(params: {}) ⇒ Hash
Get Create.
-
#get_custom_fields(params: {}) ⇒ Hash
Get Custom Fields.
-
#get_delete(params: {}) ⇒ Hash
Get Delete.
-
#get_list(params: {}) ⇒ Hash
Get List.
Instance Method Details
#get_all(params: {}) ⇒ Hash
Get All
63 64 65 66 67 68 69 70 |
# File 'lib/jpsclient/api/lark_task_list.rb', line 63 def get_all(params: {}) config = @request_config && @request_config["lark_task_list_all"] raise JPSClient::ExceptionError, "Missing config for lark_task_list_all" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#get_create(params: {}) ⇒ Hash
Get Create
24 25 26 27 28 29 30 31 |
# File 'lib/jpsclient/api/lark_task_list.rb', line 24 def get_create(params: {}) config = @request_config && @request_config["lark_task_list_create"] raise JPSClient::ExceptionError, "Missing config for lark_task_list_create" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#get_custom_fields(params: {}) ⇒ Hash
Get Custom Fields
50 51 52 53 54 55 56 57 |
# File 'lib/jpsclient/api/lark_task_list.rb', line 50 def get_custom_fields(params: {}) config = @request_config && @request_config["lark_task_list_custom_fields"] raise JPSClient::ExceptionError, "Missing config for lark_task_list_custom_fields" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |
#get_delete(params: {}) ⇒ Hash
Get Delete
11 12 13 14 15 16 17 18 |
# File 'lib/jpsclient/api/lark_task_list.rb', line 11 def get_delete(params: {}) config = @request_config && @request_config["lark_task_list_delete"] raise JPSClient::ExceptionError, "Missing config for lark_task_list_delete" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#get_list(params: {}) ⇒ Hash
Get List
37 38 39 40 41 42 43 44 |
# File 'lib/jpsclient/api/lark_task_list.rb', line 37 def get_list(params: {}) config = @request_config && @request_config["lark_task_list_list"] raise JPSClient::ExceptionError, "Missing config for lark_task_list_list" unless config && config["url"] path = config["url"] return request_with_auth(:get, path, params: params) end |