hubspot-api-client 10.1.0 → 11.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +4 -4
- data/README.md +4 -0
- data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
- data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
- data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
- data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
- data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
- data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
- data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
- data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
- data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
- data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3.rb → batch_input_hub_db_table_row_v3_request.rb} +5 -5
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
- data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
- data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
- data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
- data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
- data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
- data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
- data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
- data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
- data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
- data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
- data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
- data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +1 -1
- data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
- data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
- data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
- data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
- data/lib/hubspot/version.rb +1 -1
- data/lib/hubspot-api-client.rb +16 -3
- data/pkg/hubspot-api-client-10.1.1.gem +0 -0
- data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
- data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
- data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
- data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
- data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
- data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
- data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
- data/spec/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3_spec.rb → batch_input_hub_db_table_row_v3_request_spec.rb} +7 -7
- data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
- data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
- data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
- data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
- data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
- data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
- data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
- data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
- data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
- data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
- data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
- data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
- data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
- data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
- data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
- data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
- data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
- data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
- data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
- data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
- data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
- data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
- data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
- data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
- data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
- data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
- data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
- data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
- data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
- data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
- data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
- data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
- data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
- data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
- data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
- data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
- data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
- data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
- data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
- data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
- data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
- data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
- data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
- data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
- data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
- data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
- data/spec/features/oauth/tokens_api_spec.rb +7 -0
- metadata +96 -82
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
- data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
- data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
- data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
- data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
- data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
- data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
- data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
- data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
- data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
- data/spec/features/crm/schemas/default_api_spec.rb +0 -7
- data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -16,7 +16,7 @@ module Hubspot
|
|
16
16
|
module Cms
|
17
17
|
module Blogs
|
18
18
|
module BlogPosts
|
19
|
-
class
|
19
|
+
class BlogPostApi
|
20
20
|
attr_accessor :api_client
|
21
21
|
|
22
22
|
def initialize(api_client = ApiClient.default)
|
@@ -41,11 +41,11 @@ module Hubspot
|
|
41
41
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
42
42
|
def archive_with_http_info(object_id, opts = {})
|
43
43
|
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug 'Calling API:
|
44
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.archive ...'
|
45
45
|
end
|
46
46
|
# verify the required parameter 'object_id' is set
|
47
47
|
if @api_client.config.client_side_validation && object_id.nil?
|
48
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling
|
48
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostApi.archive"
|
49
49
|
end
|
50
50
|
# resource path
|
51
51
|
local_var_path = '/cms/v3/blogs/posts/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
@@ -82,7 +82,7 @@ module Hubspot
|
|
82
82
|
|
83
83
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
84
84
|
if @api_client.config.debugging
|
85
|
-
@api_client.config.logger.debug "API called:
|
85
|
+
@api_client.config.logger.debug "API called: BlogPostApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
86
|
end
|
87
87
|
return data, status_code, headers
|
88
88
|
end
|
@@ -104,11 +104,11 @@ module Hubspot
|
|
104
104
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
105
105
|
def archive_batch_with_http_info(batch_input_string, opts = {})
|
106
106
|
if @api_client.config.debugging
|
107
|
-
@api_client.config.logger.debug 'Calling API:
|
107
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.archive_batch ...'
|
108
108
|
end
|
109
109
|
# verify the required parameter 'batch_input_string' is set
|
110
110
|
if @api_client.config.client_side_validation && batch_input_string.nil?
|
111
|
-
fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling
|
111
|
+
fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling BlogPostApi.archive_batch"
|
112
112
|
end
|
113
113
|
# resource path
|
114
114
|
local_var_path = '/cms/v3/blogs/posts/batch/archive'
|
@@ -146,7 +146,7 @@ module Hubspot
|
|
146
146
|
|
147
147
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
148
148
|
if @api_client.config.debugging
|
149
|
-
@api_client.config.logger.debug "API called:
|
149
|
+
@api_client.config.logger.debug "API called: BlogPostApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
150
150
|
end
|
151
151
|
return data, status_code, headers
|
152
152
|
end
|
@@ -168,11 +168,11 @@ module Hubspot
|
|
168
168
|
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
169
169
|
def clone_with_http_info(content_clone_request_v_next, opts = {})
|
170
170
|
if @api_client.config.debugging
|
171
|
-
@api_client.config.logger.debug 'Calling API:
|
171
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.clone ...'
|
172
172
|
end
|
173
173
|
# verify the required parameter 'content_clone_request_v_next' is set
|
174
174
|
if @api_client.config.client_side_validation && content_clone_request_v_next.nil?
|
175
|
-
fail ArgumentError, "Missing the required parameter 'content_clone_request_v_next' when calling
|
175
|
+
fail ArgumentError, "Missing the required parameter 'content_clone_request_v_next' when calling BlogPostApi.clone"
|
176
176
|
end
|
177
177
|
# resource path
|
178
178
|
local_var_path = '/cms/v3/blogs/posts/clone'
|
@@ -210,7 +210,7 @@ module Hubspot
|
|
210
210
|
|
211
211
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
212
212
|
if @api_client.config.debugging
|
213
|
-
@api_client.config.logger.debug "API called:
|
213
|
+
@api_client.config.logger.debug "API called: BlogPostApi#clone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
214
214
|
end
|
215
215
|
return data, status_code, headers
|
216
216
|
end
|
@@ -232,11 +232,11 @@ module Hubspot
|
|
232
232
|
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
233
233
|
def create_with_http_info(blog_post, opts = {})
|
234
234
|
if @api_client.config.debugging
|
235
|
-
@api_client.config.logger.debug 'Calling API:
|
235
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.create ...'
|
236
236
|
end
|
237
237
|
# verify the required parameter 'blog_post' is set
|
238
238
|
if @api_client.config.client_side_validation && blog_post.nil?
|
239
|
-
fail ArgumentError, "Missing the required parameter 'blog_post' when calling
|
239
|
+
fail ArgumentError, "Missing the required parameter 'blog_post' when calling BlogPostApi.create"
|
240
240
|
end
|
241
241
|
# resource path
|
242
242
|
local_var_path = '/cms/v3/blogs/posts'
|
@@ -274,7 +274,7 @@ module Hubspot
|
|
274
274
|
|
275
275
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
276
276
|
if @api_client.config.debugging
|
277
|
-
@api_client.config.logger.debug "API called:
|
277
|
+
@api_client.config.logger.debug "API called: BlogPostApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
278
278
|
end
|
279
279
|
return data, status_code, headers
|
280
280
|
end
|
@@ -296,11 +296,11 @@ module Hubspot
|
|
296
296
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
297
297
|
def create_batch_with_http_info(batch_input_blog_post, opts = {})
|
298
298
|
if @api_client.config.debugging
|
299
|
-
@api_client.config.logger.debug 'Calling API:
|
299
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.create_batch ...'
|
300
300
|
end
|
301
301
|
# verify the required parameter 'batch_input_blog_post' is set
|
302
302
|
if @api_client.config.client_side_validation && batch_input_blog_post.nil?
|
303
|
-
fail ArgumentError, "Missing the required parameter 'batch_input_blog_post' when calling
|
303
|
+
fail ArgumentError, "Missing the required parameter 'batch_input_blog_post' when calling BlogPostApi.create_batch"
|
304
304
|
end
|
305
305
|
# resource path
|
306
306
|
local_var_path = '/cms/v3/blogs/posts/batch/create'
|
@@ -338,7 +338,7 @@ module Hubspot
|
|
338
338
|
|
339
339
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
340
340
|
if @api_client.config.debugging
|
341
|
-
@api_client.config.logger.debug "API called:
|
341
|
+
@api_client.config.logger.debug "API called: BlogPostApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
342
342
|
end
|
343
343
|
return data, status_code, headers
|
344
344
|
end
|
@@ -362,11 +362,11 @@ module Hubspot
|
|
362
362
|
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
363
363
|
def get_by_id_with_http_info(object_id, opts = {})
|
364
364
|
if @api_client.config.debugging
|
365
|
-
@api_client.config.logger.debug 'Calling API:
|
365
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.get_by_id ...'
|
366
366
|
end
|
367
367
|
# verify the required parameter 'object_id' is set
|
368
368
|
if @api_client.config.client_side_validation && object_id.nil?
|
369
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling
|
369
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostApi.get_by_id"
|
370
370
|
end
|
371
371
|
# resource path
|
372
372
|
local_var_path = '/cms/v3/blogs/posts/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
@@ -403,7 +403,7 @@ module Hubspot
|
|
403
403
|
|
404
404
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
405
405
|
if @api_client.config.debugging
|
406
|
-
@api_client.config.logger.debug "API called:
|
406
|
+
@api_client.config.logger.debug "API called: BlogPostApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
407
407
|
end
|
408
408
|
return data, status_code, headers
|
409
409
|
end
|
@@ -425,11 +425,11 @@ module Hubspot
|
|
425
425
|
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
426
426
|
def get_draft_by_id_with_http_info(object_id, opts = {})
|
427
427
|
if @api_client.config.debugging
|
428
|
-
@api_client.config.logger.debug 'Calling API:
|
428
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.get_draft_by_id ...'
|
429
429
|
end
|
430
430
|
# verify the required parameter 'object_id' is set
|
431
431
|
if @api_client.config.client_side_validation && object_id.nil?
|
432
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling
|
432
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostApi.get_draft_by_id"
|
433
433
|
end
|
434
434
|
# resource path
|
435
435
|
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
@@ -465,7 +465,7 @@ module Hubspot
|
|
465
465
|
|
466
466
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
467
467
|
if @api_client.config.debugging
|
468
|
-
@api_client.config.logger.debug "API called:
|
468
|
+
@api_client.config.logger.debug "API called: BlogPostApi#get_draft_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
469
469
|
end
|
470
470
|
return data, status_code, headers
|
471
471
|
end
|
@@ -505,7 +505,7 @@ module Hubspot
|
|
505
505
|
# @return [Array<(CollectionResponseWithTotalBlogPostForwardPaging, Integer, Hash)>] CollectionResponseWithTotalBlogPostForwardPaging data, response status code and response headers
|
506
506
|
def get_page_with_http_info(opts = {})
|
507
507
|
if @api_client.config.debugging
|
508
|
-
@api_client.config.logger.debug 'Calling API:
|
508
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.get_page ...'
|
509
509
|
end
|
510
510
|
# resource path
|
511
511
|
local_var_path = '/cms/v3/blogs/posts'
|
@@ -551,7 +551,7 @@ module Hubspot
|
|
551
551
|
|
552
552
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
553
553
|
if @api_client.config.debugging
|
554
|
-
@api_client.config.logger.debug "API called:
|
554
|
+
@api_client.config.logger.debug "API called: BlogPostApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
555
555
|
end
|
556
556
|
return data, status_code, headers
|
557
557
|
end
|
@@ -575,15 +575,15 @@ module Hubspot
|
|
575
575
|
# @return [Array<(VersionBlogPost, Integer, Hash)>] VersionBlogPost data, response status code and response headers
|
576
576
|
def get_previous_version_with_http_info(object_id, revision_id, opts = {})
|
577
577
|
if @api_client.config.debugging
|
578
|
-
@api_client.config.logger.debug 'Calling API:
|
578
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.get_previous_version ...'
|
579
579
|
end
|
580
580
|
# verify the required parameter 'object_id' is set
|
581
581
|
if @api_client.config.client_side_validation && object_id.nil?
|
582
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling
|
582
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostApi.get_previous_version"
|
583
583
|
end
|
584
584
|
# verify the required parameter 'revision_id' is set
|
585
585
|
if @api_client.config.client_side_validation && revision_id.nil?
|
586
|
-
fail ArgumentError, "Missing the required parameter 'revision_id' when calling
|
586
|
+
fail ArgumentError, "Missing the required parameter 'revision_id' when calling BlogPostApi.get_previous_version"
|
587
587
|
end
|
588
588
|
# resource path
|
589
589
|
local_var_path = '/cms/v3/blogs/posts/{objectId}/revisions/{revisionId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
|
@@ -619,7 +619,7 @@ module Hubspot
|
|
619
619
|
|
620
620
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
621
621
|
if @api_client.config.debugging
|
622
|
-
@api_client.config.logger.debug "API called:
|
622
|
+
@api_client.config.logger.debug "API called: BlogPostApi#get_previous_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
623
623
|
end
|
624
624
|
return data, status_code, headers
|
625
625
|
end
|
@@ -647,11 +647,11 @@ module Hubspot
|
|
647
647
|
# @return [Array<(CollectionResponseWithTotalVersionBlogPost, Integer, Hash)>] CollectionResponseWithTotalVersionBlogPost data, response status code and response headers
|
648
648
|
def get_previous_versions_with_http_info(object_id, opts = {})
|
649
649
|
if @api_client.config.debugging
|
650
|
-
@api_client.config.logger.debug 'Calling API:
|
650
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.get_previous_versions ...'
|
651
651
|
end
|
652
652
|
# verify the required parameter 'object_id' is set
|
653
653
|
if @api_client.config.client_side_validation && object_id.nil?
|
654
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling
|
654
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostApi.get_previous_versions"
|
655
655
|
end
|
656
656
|
# resource path
|
657
657
|
local_var_path = '/cms/v3/blogs/posts/{objectId}/revisions'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
@@ -690,7 +690,7 @@ module Hubspot
|
|
690
690
|
|
691
691
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
692
692
|
if @api_client.config.debugging
|
693
|
-
@api_client.config.logger.debug "API called:
|
693
|
+
@api_client.config.logger.debug "API called: BlogPostApi#get_previous_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
694
694
|
end
|
695
695
|
return data, status_code, headers
|
696
696
|
end
|
@@ -712,11 +712,11 @@ module Hubspot
|
|
712
712
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
713
713
|
def push_live_with_http_info(object_id, opts = {})
|
714
714
|
if @api_client.config.debugging
|
715
|
-
@api_client.config.logger.debug 'Calling API:
|
715
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.push_live ...'
|
716
716
|
end
|
717
717
|
# verify the required parameter 'object_id' is set
|
718
718
|
if @api_client.config.client_side_validation && object_id.nil?
|
719
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling
|
719
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostApi.push_live"
|
720
720
|
end
|
721
721
|
# resource path
|
722
722
|
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft/push-live'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
@@ -752,7 +752,7 @@ module Hubspot
|
|
752
752
|
|
753
753
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
754
754
|
if @api_client.config.debugging
|
755
|
-
@api_client.config.logger.debug "API called:
|
755
|
+
@api_client.config.logger.debug "API called: BlogPostApi#push_live\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
756
756
|
end
|
757
757
|
return data, status_code, headers
|
758
758
|
end
|
@@ -776,11 +776,11 @@ module Hubspot
|
|
776
776
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
777
777
|
def read_batch_with_http_info(batch_input_string, opts = {})
|
778
778
|
if @api_client.config.debugging
|
779
|
-
@api_client.config.logger.debug 'Calling API:
|
779
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.read_batch ...'
|
780
780
|
end
|
781
781
|
# verify the required parameter 'batch_input_string' is set
|
782
782
|
if @api_client.config.client_side_validation && batch_input_string.nil?
|
783
|
-
fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling
|
783
|
+
fail ArgumentError, "Missing the required parameter 'batch_input_string' when calling BlogPostApi.read_batch"
|
784
784
|
end
|
785
785
|
# resource path
|
786
786
|
local_var_path = '/cms/v3/blogs/posts/batch/read'
|
@@ -819,7 +819,7 @@ module Hubspot
|
|
819
819
|
|
820
820
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
821
821
|
if @api_client.config.debugging
|
822
|
-
@api_client.config.logger.debug "API called:
|
822
|
+
@api_client.config.logger.debug "API called: BlogPostApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
823
823
|
end
|
824
824
|
return data, status_code, headers
|
825
825
|
end
|
@@ -841,11 +841,11 @@ module Hubspot
|
|
841
841
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
842
842
|
def reset_draft_with_http_info(object_id, opts = {})
|
843
843
|
if @api_client.config.debugging
|
844
|
-
@api_client.config.logger.debug 'Calling API:
|
844
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.reset_draft ...'
|
845
845
|
end
|
846
846
|
# verify the required parameter 'object_id' is set
|
847
847
|
if @api_client.config.client_side_validation && object_id.nil?
|
848
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling
|
848
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostApi.reset_draft"
|
849
849
|
end
|
850
850
|
# resource path
|
851
851
|
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft/reset'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
@@ -881,7 +881,7 @@ module Hubspot
|
|
881
881
|
|
882
882
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
883
883
|
if @api_client.config.debugging
|
884
|
-
@api_client.config.logger.debug "API called:
|
884
|
+
@api_client.config.logger.debug "API called: BlogPostApi#reset_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
885
885
|
end
|
886
886
|
return data, status_code, headers
|
887
887
|
end
|
@@ -905,15 +905,15 @@ module Hubspot
|
|
905
905
|
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
906
906
|
def restore_previous_version_with_http_info(object_id, revision_id, opts = {})
|
907
907
|
if @api_client.config.debugging
|
908
|
-
@api_client.config.logger.debug 'Calling API:
|
908
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.restore_previous_version ...'
|
909
909
|
end
|
910
910
|
# verify the required parameter 'object_id' is set
|
911
911
|
if @api_client.config.client_side_validation && object_id.nil?
|
912
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling
|
912
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostApi.restore_previous_version"
|
913
913
|
end
|
914
914
|
# verify the required parameter 'revision_id' is set
|
915
915
|
if @api_client.config.client_side_validation && revision_id.nil?
|
916
|
-
fail ArgumentError, "Missing the required parameter 'revision_id' when calling
|
916
|
+
fail ArgumentError, "Missing the required parameter 'revision_id' when calling BlogPostApi.restore_previous_version"
|
917
917
|
end
|
918
918
|
# resource path
|
919
919
|
local_var_path = '/cms/v3/blogs/posts/{objectId}/revisions/{revisionId}/restore'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
|
@@ -949,7 +949,7 @@ module Hubspot
|
|
949
949
|
|
950
950
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
951
951
|
if @api_client.config.debugging
|
952
|
-
@api_client.config.logger.debug "API called:
|
952
|
+
@api_client.config.logger.debug "API called: BlogPostApi#restore_previous_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
953
953
|
end
|
954
954
|
return data, status_code, headers
|
955
955
|
end
|
@@ -973,15 +973,15 @@ module Hubspot
|
|
973
973
|
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
974
974
|
def restore_previous_version_to_draft_with_http_info(object_id, revision_id, opts = {})
|
975
975
|
if @api_client.config.debugging
|
976
|
-
@api_client.config.logger.debug 'Calling API:
|
976
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.restore_previous_version_to_draft ...'
|
977
977
|
end
|
978
978
|
# verify the required parameter 'object_id' is set
|
979
979
|
if @api_client.config.client_side_validation && object_id.nil?
|
980
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling
|
980
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostApi.restore_previous_version_to_draft"
|
981
981
|
end
|
982
982
|
# verify the required parameter 'revision_id' is set
|
983
983
|
if @api_client.config.client_side_validation && revision_id.nil?
|
984
|
-
fail ArgumentError, "Missing the required parameter 'revision_id' when calling
|
984
|
+
fail ArgumentError, "Missing the required parameter 'revision_id' when calling BlogPostApi.restore_previous_version_to_draft"
|
985
985
|
end
|
986
986
|
# resource path
|
987
987
|
local_var_path = '/cms/v3/blogs/posts/{objectId}/revisions/{revisionId}/restore-to-draft'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s)).sub('{' + 'revisionId' + '}', CGI.escape(revision_id.to_s))
|
@@ -1017,7 +1017,7 @@ module Hubspot
|
|
1017
1017
|
|
1018
1018
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1019
1019
|
if @api_client.config.debugging
|
1020
|
-
@api_client.config.logger.debug "API called:
|
1020
|
+
@api_client.config.logger.debug "API called: BlogPostApi#restore_previous_version_to_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1021
1021
|
end
|
1022
1022
|
return data, status_code, headers
|
1023
1023
|
end
|
@@ -1039,11 +1039,11 @@ module Hubspot
|
|
1039
1039
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1040
1040
|
def schedule_with_http_info(content_schedule_request_v_next, opts = {})
|
1041
1041
|
if @api_client.config.debugging
|
1042
|
-
@api_client.config.logger.debug 'Calling API:
|
1042
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.schedule ...'
|
1043
1043
|
end
|
1044
1044
|
# verify the required parameter 'content_schedule_request_v_next' is set
|
1045
1045
|
if @api_client.config.client_side_validation && content_schedule_request_v_next.nil?
|
1046
|
-
fail ArgumentError, "Missing the required parameter 'content_schedule_request_v_next' when calling
|
1046
|
+
fail ArgumentError, "Missing the required parameter 'content_schedule_request_v_next' when calling BlogPostApi.schedule"
|
1047
1047
|
end
|
1048
1048
|
# resource path
|
1049
1049
|
local_var_path = '/cms/v3/blogs/posts/schedule'
|
@@ -1081,7 +1081,7 @@ module Hubspot
|
|
1081
1081
|
|
1082
1082
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1083
1083
|
if @api_client.config.debugging
|
1084
|
-
@api_client.config.logger.debug "API called:
|
1084
|
+
@api_client.config.logger.debug "API called: BlogPostApi#schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1085
1085
|
end
|
1086
1086
|
return data, status_code, headers
|
1087
1087
|
end
|
@@ -1107,15 +1107,15 @@ module Hubspot
|
|
1107
1107
|
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
1108
1108
|
def update_with_http_info(object_id, blog_post, opts = {})
|
1109
1109
|
if @api_client.config.debugging
|
1110
|
-
@api_client.config.logger.debug 'Calling API:
|
1110
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.update ...'
|
1111
1111
|
end
|
1112
1112
|
# verify the required parameter 'object_id' is set
|
1113
1113
|
if @api_client.config.client_side_validation && object_id.nil?
|
1114
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling
|
1114
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostApi.update"
|
1115
1115
|
end
|
1116
1116
|
# verify the required parameter 'blog_post' is set
|
1117
1117
|
if @api_client.config.client_side_validation && blog_post.nil?
|
1118
|
-
fail ArgumentError, "Missing the required parameter 'blog_post' when calling
|
1118
|
+
fail ArgumentError, "Missing the required parameter 'blog_post' when calling BlogPostApi.update"
|
1119
1119
|
end
|
1120
1120
|
# resource path
|
1121
1121
|
local_var_path = '/cms/v3/blogs/posts/{objectId}'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
@@ -1154,7 +1154,7 @@ module Hubspot
|
|
1154
1154
|
|
1155
1155
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1156
1156
|
if @api_client.config.debugging
|
1157
|
-
@api_client.config.logger.debug "API called:
|
1157
|
+
@api_client.config.logger.debug "API called: BlogPostApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1158
1158
|
end
|
1159
1159
|
return data, status_code, headers
|
1160
1160
|
end
|
@@ -1178,11 +1178,11 @@ module Hubspot
|
|
1178
1178
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
1179
1179
|
def update_batch_with_http_info(batch_input_json_node, opts = {})
|
1180
1180
|
if @api_client.config.debugging
|
1181
|
-
@api_client.config.logger.debug 'Calling API:
|
1181
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.update_batch ...'
|
1182
1182
|
end
|
1183
1183
|
# verify the required parameter 'batch_input_json_node' is set
|
1184
1184
|
if @api_client.config.client_side_validation && batch_input_json_node.nil?
|
1185
|
-
fail ArgumentError, "Missing the required parameter 'batch_input_json_node' when calling
|
1185
|
+
fail ArgumentError, "Missing the required parameter 'batch_input_json_node' when calling BlogPostApi.update_batch"
|
1186
1186
|
end
|
1187
1187
|
# resource path
|
1188
1188
|
local_var_path = '/cms/v3/blogs/posts/batch/update'
|
@@ -1221,7 +1221,7 @@ module Hubspot
|
|
1221
1221
|
|
1222
1222
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1223
1223
|
if @api_client.config.debugging
|
1224
|
-
@api_client.config.logger.debug "API called:
|
1224
|
+
@api_client.config.logger.debug "API called: BlogPostApi#update_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1225
1225
|
end
|
1226
1226
|
return data, status_code, headers
|
1227
1227
|
end
|
@@ -1245,15 +1245,15 @@ module Hubspot
|
|
1245
1245
|
# @return [Array<(BlogPost, Integer, Hash)>] BlogPost data, response status code and response headers
|
1246
1246
|
def update_draft_with_http_info(object_id, blog_post, opts = {})
|
1247
1247
|
if @api_client.config.debugging
|
1248
|
-
@api_client.config.logger.debug 'Calling API:
|
1248
|
+
@api_client.config.logger.debug 'Calling API: BlogPostApi.update_draft ...'
|
1249
1249
|
end
|
1250
1250
|
# verify the required parameter 'object_id' is set
|
1251
1251
|
if @api_client.config.client_side_validation && object_id.nil?
|
1252
|
-
fail ArgumentError, "Missing the required parameter 'object_id' when calling
|
1252
|
+
fail ArgumentError, "Missing the required parameter 'object_id' when calling BlogPostApi.update_draft"
|
1253
1253
|
end
|
1254
1254
|
# verify the required parameter 'blog_post' is set
|
1255
1255
|
if @api_client.config.client_side_validation && blog_post.nil?
|
1256
|
-
fail ArgumentError, "Missing the required parameter 'blog_post' when calling
|
1256
|
+
fail ArgumentError, "Missing the required parameter 'blog_post' when calling BlogPostApi.update_draft"
|
1257
1257
|
end
|
1258
1258
|
# resource path
|
1259
1259
|
local_var_path = '/cms/v3/blogs/posts/{objectId}/draft'.sub('{' + 'objectId' + '}', CGI.escape(object_id.to_s))
|
@@ -1291,7 +1291,7 @@ module Hubspot
|
|
1291
1291
|
|
1292
1292
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1293
1293
|
if @api_client.config.debugging
|
1294
|
-
@api_client.config.logger.debug "API called:
|
1294
|
+
@api_client.config.logger.debug "API called: BlogPostApi#update_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1295
1295
|
end
|
1296
1296
|
return data, status_code, headers
|
1297
1297
|
end
|