Module: JPSClient::API::PublisherGroup
- Included in:
- Client
- Defined in:
- lib/jpsclient/api/publisher_group.rb
Overview
PublisherGroup 相关 API 自动生成的模块,处理 publisher_group 相关接口
Instance Method Summary collapse
-
#create_create(params: {}) ⇒ Hash
Create Create.
-
#create_delete(params: {}) ⇒ Hash
Create Delete.
-
#create_detail(params: {}) ⇒ Hash
Create Detail.
-
#create_update(params: {}) ⇒ Hash
Create Update.
-
#get_list(params: {}) ⇒ Hash
Get List.
Instance Method Details
#create_create(params: {}) ⇒ Hash
Create Create
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/jpsclient/api/publisher_group.rb', line 99 def create_create(params: {}) config = @request_config && @request_config["publisher_group_create"] raise JPSClient::ExceptionError, "Missing config for publisher_group_create" unless config && config["url"] path = config["url"] response = @http_client.post(path, body: params) result = JPSClient::Response.new(response) if result.need_login? do_login(force_login: true) response = @http_client.post(path, body: params) result = JPSClient::Response.new(response) end return result.to_h end |
#create_delete(params: {}) ⇒ Hash
Create Delete
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/jpsclient/api/publisher_group.rb', line 77 def create_delete(params: {}) config = @request_config && @request_config["publisher_group_delete"] raise JPSClient::ExceptionError, "Missing config for publisher_group_delete" unless config && config["url"] path = config["url"] response = @http_client.post(path, body: params) result = JPSClient::Response.new(response) if result.need_login? do_login(force_login: true) response = @http_client.post(path, body: params) result = JPSClient::Response.new(response) end return result.to_h end |
#create_detail(params: {}) ⇒ Hash
Create Detail
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/jpsclient/api/publisher_group.rb', line 55 def create_detail(params: {}) config = @request_config && @request_config["publisher_group_detail"] raise JPSClient::ExceptionError, "Missing config for publisher_group_detail" unless config && config["url"] path = config["url"] response = @http_client.post(path, body: params) result = JPSClient::Response.new(response) if result.need_login? do_login(force_login: true) response = @http_client.post(path, body: params) result = JPSClient::Response.new(response) end return result.to_h end |
#create_update(params: {}) ⇒ Hash
Create Update
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/jpsclient/api/publisher_group.rb', line 11 def create_update(params: {}) config = @request_config && @request_config["publisher_group_update"] raise JPSClient::ExceptionError, "Missing config for publisher_group_update" unless config && config["url"] path = config["url"] response = @http_client.post(path, body: params) result = JPSClient::Response.new(response) if result.need_login? do_login(force_login: true) response = @http_client.post(path, body: params) result = JPSClient::Response.new(response) end return result.to_h end |
#get_list(params: {}) ⇒ Hash
Get List
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/jpsclient/api/publisher_group.rb', line 33 def get_list(params: {}) config = @request_config && @request_config["publisher_group_list"] raise JPSClient::ExceptionError, "Missing config for publisher_group_list" unless config && config["url"] path = config["url"] response = @http_client.post(path, body: params) result = JPSClient::Response.new(response) if result.need_login? do_login(force_login: true) response = @http_client.post(path, body: params) result = JPSClient::Response.new(response) end return result.to_h end |