Module: JPSClient::API::PublisherCategory
- Defined in:
- lib/jpsclient/api/archived_outdated/publisher_category.rb
Overview
PublisherCategory 相关 API 自动生成的模块,处理 publisher_category 相关接口
Instance Method Summary collapse
-
#create_publisher_categories(params: {}) ⇒ Hash
Create Publisher Categories.
-
#create_publisher_category(params: {}) ⇒ Hash
Create Publisher Category.
-
#create_publishers(params: {}) ⇒ Hash
Create Publishers.
-
#create_weights(params: {}) ⇒ Hash
Create Weights.
-
#delete_publisher_category(categoryId:, params: {}) ⇒ Hash
Delete Publisher Category.
-
#update_publisher_category(categoryId:, params: {}) ⇒ Hash
Update Publisher Category.
Instance Method Details
#create_publisher_categories(params: {}) ⇒ Hash
Create Publisher Categories
78 79 80 81 82 83 84 85 |
# File 'lib/jpsclient/api/archived_outdated/publisher_category.rb', line 78 def create_publisher_categories(params: {}) config = @request_config && @request_config["publisher_category_publisher_categories"] raise JPSClient::ExceptionError, "Missing config for publisher_category_publisher_categories" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#create_publisher_category(params: {}) ⇒ Hash
Create Publisher Category
39 40 41 42 43 44 45 46 |
# File 'lib/jpsclient/api/archived_outdated/publisher_category.rb', line 39 def create_publisher_category(params: {}) config = @request_config && @request_config["publisher_category_publisher_category"] raise JPSClient::ExceptionError, "Missing config for publisher_category_publisher_category" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#create_publishers(params: {}) ⇒ Hash
Create Publishers
65 66 67 68 69 70 71 72 |
# File 'lib/jpsclient/api/archived_outdated/publisher_category.rb', line 65 def create_publishers(params: {}) config = @request_config && @request_config["publisher_category_publishers"] raise JPSClient::ExceptionError, "Missing config for publisher_category_publishers" 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_category.rb', line 52 def create_weights(params: {}) config = @request_config && @request_config["publisher_category_weights"] raise JPSClient::ExceptionError, "Missing config for publisher_category_weights" unless config && config["url"] path = config["url"] return request_with_auth(:post, path, body: params) end |
#delete_publisher_category(categoryId:, params: {}) ⇒ Hash
Delete Publisher Category
25 26 27 28 29 30 31 32 33 |
# File 'lib/jpsclient/api/archived_outdated/publisher_category.rb', line 25 def delete_publisher_category(categoryId:, params: {}) config = @request_config && @request_config["publisher_category_publisher_category"] raise JPSClient::ExceptionError, "Missing config for publisher_category_publisher_category" unless config && config["url"] path = config["url"] path = path.gsub("{categoryId}", categoryId.to_s) return request_with_auth(:delete, path) end |
#update_publisher_category(categoryId:, params: {}) ⇒ Hash
Update Publisher Category
11 12 13 14 15 16 17 18 19 |
# File 'lib/jpsclient/api/archived_outdated/publisher_category.rb', line 11 def update_publisher_category(categoryId:, params: {}) config = @request_config && @request_config["publisher_category_publisher_category"] raise JPSClient::ExceptionError, "Missing config for publisher_category_publisher_category" unless config && config["url"] path = config["url"] path = path.gsub("{categoryId}", categoryId.to_s) return request_with_auth(:put, path, body: params) end |