Module: JPSClient::API::PublisherGroupCategory
- Defined in:
- lib/jpsclient/api/archived_outdated/publisher_group_category.rb
Overview
PublisherGroupCategory 相关 API 自动生成的模块,处理 publisher_group_category 相关接口
Instance Method Summary collapse
-
#create_publisher_group_categories(params: {}) ⇒ Hash
Create Publisher Group Categories.
-
#create_publisher_group_category(params: {}) ⇒ Hash
Create Publisher Group Category.
-
#create_weights(params: {}) ⇒ Hash
Create Weights.
-
#delete_publisher_group_category(categoryId:, params: {}) ⇒ Hash
Delete Publisher Group Category.
-
#update_publisher_group_category(categoryId:, params: {}) ⇒ Hash
Update Publisher Group Category.
Instance Method Details
#create_publisher_group_categories(params: {}) ⇒ Hash
Create Publisher Group Categories
65 66 67 68 69 70 71 72 |
# File 'lib/jpsclient/api/archived_outdated/publisher_group_category.rb', line 65 def create_publisher_group_categories(params: {}) config = @request_config && @request_config["publisher_group_category_publisher_group_categories"] raise JPSClient::ExceptionError, "Missing config for publisher_group_category_publisher_group_categories" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#create_publisher_group_category(params: {}) ⇒ Hash
Create Publisher Group Category
39 40 41 42 43 44 45 46 |
# File 'lib/jpsclient/api/archived_outdated/publisher_group_category.rb', line 39 def create_publisher_group_category(params: {}) config = @request_config && @request_config["publisher_group_category_publisher_group_category"] raise JPSClient::ExceptionError, "Missing config for publisher_group_category_publisher_group_category" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#create_weights(params: {}) ⇒ Hash
Create Weights
52 53 54 55 56 57 58 59 |
# File 'lib/jpsclient/api/archived_outdated/publisher_group_category.rb', line 52 def create_weights(params: {}) config = @request_config && @request_config["publisher_group_category_weights"] raise JPSClient::ExceptionError, "Missing config for publisher_group_category_weights" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#delete_publisher_group_category(categoryId:, params: {}) ⇒ Hash
Delete Publisher Group Category
25 26 27 28 29 30 31 32 33 |
# File 'lib/jpsclient/api/archived_outdated/publisher_group_category.rb', line 25 def delete_publisher_group_category(categoryId:, params: {}) config = @request_config && @request_config["publisher_group_category_publisher_group_category"] raise JPSClient::ExceptionError, "Missing config for publisher_group_category_publisher_group_category" unless config && config["url"] path = config["url"] path = path.gsub("{categoryId}", categoryId.to_s) return request_with_auth(:delete, path) end |
#update_publisher_group_category(categoryId:, params: {}) ⇒ Hash
Update Publisher Group Category
11 12 13 14 15 16 17 18 19 |
# File 'lib/jpsclient/api/archived_outdated/publisher_group_category.rb', line 11 def update_publisher_group_category(categoryId:, params: {}) config = @request_config && @request_config["publisher_group_category_publisher_group_category"] raise JPSClient::ExceptionError, "Missing config for publisher_group_category_publisher_group_category" unless config && config["url"] path = config["url"] path = path.gsub("{categoryId}", categoryId.to_s) return request_with_auth(:put, path, body: params) end |