hubspot-api-client 11.1.1 → 11.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +8 -2
- data/README.md +21 -0
- data/hubspot-api-client.gemspec +1 -0
- data/lib/hubspot/client.rb +51 -0
- data/lib/hubspot/discovery/automation/actions/api/callbacks_api.rb +13 -0
- data/lib/hubspot/discovery/automation/actions/api/definitions_api.rb +13 -0
- data/lib/hubspot/discovery/automation/actions/api/functions_api.rb +13 -0
- data/lib/hubspot/discovery/automation/actions/api/revisions_api.rb +13 -0
- data/lib/hubspot/discovery/automation/actions/client.rb +22 -0
- data/lib/hubspot/discovery/automation/client.rb +17 -0
- data/lib/hubspot/discovery/base_api_client.rb +70 -0
- data/lib/hubspot/discovery/base_module_client.rb +55 -0
- data/lib/hubspot/discovery/cms/audit_logs/api/audit_logs_api.rb +13 -0
- data/lib/hubspot/discovery/cms/audit_logs/client.rb +19 -0
- data/lib/hubspot/discovery/cms/blogs/authors/api/author_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/authors/client.rb +21 -0
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/blog_post_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/blog_posts/client.rb +21 -0
- data/lib/hubspot/discovery/cms/blogs/client.rb +21 -0
- data/lib/hubspot/discovery/cms/blogs/tags/api/tag_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/tags/client.rb +21 -0
- data/lib/hubspot/discovery/cms/client.rb +23 -0
- data/lib/hubspot/discovery/cms/domains/api/domains_api.rb +13 -0
- data/lib/hubspot/discovery/cms/domains/client.rb +19 -0
- data/lib/hubspot/discovery/cms/hubdb/api/rows_api.rb +13 -0
- data/lib/hubspot/discovery/cms/hubdb/api/rows_batch_api.rb +13 -0
- data/lib/hubspot/discovery/cms/hubdb/api/tables_api.rb +13 -0
- data/lib/hubspot/discovery/cms/hubdb/client.rb +21 -0
- data/lib/hubspot/discovery/cms/performance/api/public_performance_api.rb +13 -0
- data/lib/hubspot/discovery/cms/performance/client.rb +19 -0
- data/lib/hubspot/discovery/cms/site_search/api/public_api.rb +13 -0
- data/lib/hubspot/discovery/cms/site_search/client.rb +19 -0
- data/lib/hubspot/discovery/cms/url_redirects/api/redirects_api.rb +13 -0
- data/lib/hubspot/discovery/cms/url_redirects/client.rb +19 -0
- data/lib/hubspot/discovery/communication_preferences/api/definition_api.rb +11 -0
- data/lib/hubspot/discovery/communication_preferences/api/status_api.rb +11 -0
- data/lib/hubspot/discovery/communication_preferences/client.rb +18 -0
- data/lib/hubspot/discovery/conversations/client.rb +17 -0
- data/lib/hubspot/discovery/conversations/visitor_identification/api/generate_api.rb +13 -0
- data/lib/hubspot/discovery/conversations/visitor_identification/client.rb +19 -0
- data/lib/hubspot/discovery/crm/associations/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/associations/api/types_api.rb +13 -0
- data/lib/hubspot/discovery/crm/associations/client.rb +20 -0
- data/lib/hubspot/discovery/crm/client.rb +32 -0
- data/lib/hubspot/discovery/crm/companies/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/companies/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/companies/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/companies/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/companies/client.rb +22 -0
- data/lib/hubspot/discovery/crm/contacts/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/contacts/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/contacts/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/contacts/api/gdpr_api.rb +13 -0
- data/lib/hubspot/discovery/crm/contacts/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/contacts/client.rb +23 -0
- data/lib/hubspot/discovery/crm/deals/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/deals/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/deals/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/deals/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/deals/client.rb +22 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/api/callbacks_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/api/invoice_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/api/settings_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/api/sync_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/api/user_accounts_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/client.rb +25 -0
- data/lib/hubspot/discovery/crm/extensions/calling/api/settings_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/calling/client.rb +21 -0
- data/lib/hubspot/discovery/crm/extensions/cards/api/cards_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/cards/api/sample_response_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/cards/client.rb +22 -0
- data/lib/hubspot/discovery/crm/extensions/client.rb +22 -0
- data/lib/hubspot/discovery/crm/extensions/videoconferencing/api/settings_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/videoconferencing/client.rb +21 -0
- data/lib/hubspot/discovery/crm/imports/api/core_api.rb +13 -0
- data/lib/hubspot/discovery/crm/imports/api/public_imports_api.rb +13 -0
- data/lib/hubspot/discovery/crm/imports/client.rb +20 -0
- data/lib/hubspot/discovery/crm/line_items/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/line_items/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/line_items/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/line_items/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/line_items/client.rb +22 -0
- data/lib/hubspot/discovery/crm/objects/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/objects/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/objects/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/objects/api/gdpr_api.rb +13 -0
- data/lib/hubspot/discovery/crm/objects/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/objects/client.rb +29 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/associations_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +24 -0
- data/lib/hubspot/discovery/crm/owners/api/owners_api.rb +13 -0
- data/lib/hubspot/discovery/crm/owners/client.rb +19 -0
- data/lib/hubspot/discovery/crm/pipelines/api/pipeline_stages_api.rb +13 -0
- data/lib/hubspot/discovery/crm/pipelines/api/pipelines_api.rb +13 -0
- data/lib/hubspot/discovery/crm/pipelines/client.rb +20 -0
- data/lib/hubspot/discovery/crm/products/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/products/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/products/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/products/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/products/client.rb +22 -0
- data/lib/hubspot/discovery/crm/properties/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/properties/api/core_api.rb +13 -0
- data/lib/hubspot/discovery/crm/properties/api/groups_api.rb +13 -0
- data/lib/hubspot/discovery/crm/properties/client.rb +21 -0
- data/lib/hubspot/discovery/crm/quotes/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/quotes/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/quotes/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/quotes/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/quotes/client.rb +22 -0
- data/lib/hubspot/discovery/crm/schemas/api/core_api.rb +13 -0
- data/lib/hubspot/discovery/crm/schemas/api/public_object_schemas_api.rb +13 -0
- data/lib/hubspot/discovery/crm/schemas/client.rb +20 -0
- data/lib/hubspot/discovery/crm/tickets/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/tickets/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/tickets/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/tickets/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/tickets/client.rb +22 -0
- data/lib/hubspot/discovery/crm/timeline/api/events_api.rb +13 -0
- data/lib/hubspot/discovery/crm/timeline/api/templates_api.rb +13 -0
- data/lib/hubspot/discovery/crm/timeline/api/tokens_api.rb +13 -0
- data/lib/hubspot/discovery/crm/timeline/client.rb +21 -0
- data/lib/hubspot/discovery/events/api/events_api.rb +11 -0
- data/lib/hubspot/discovery/events/client.rb +17 -0
- data/lib/hubspot/discovery/files/client.rb +17 -0
- data/lib/hubspot/discovery/files/files/api/files_api.rb +13 -0
- data/lib/hubspot/discovery/files/files/api/folders_api.rb +13 -0
- data/lib/hubspot/discovery/files/files/client.rb +20 -0
- data/lib/hubspot/discovery/marketing/client.rb +17 -0
- data/lib/hubspot/discovery/marketing/transactional/api/public_smtp_tokens_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/transactional/api/single_send_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/transactional/client.rb +20 -0
- data/lib/hubspot/discovery/oauth/api/access_tokens_api.rb +11 -0
- data/lib/hubspot/discovery/oauth/api/refresh_tokens_api.rb +11 -0
- data/lib/hubspot/discovery/oauth/api/tokens_api.rb +11 -0
- data/lib/hubspot/discovery/oauth/client.rb +19 -0
- data/lib/hubspot/discovery/webhooks/api/settings_api.rb +11 -0
- data/lib/hubspot/discovery/webhooks/api/subscriptions_api.rb +11 -0
- data/lib/hubspot/discovery/webhooks/client.rb +18 -0
- data/lib/hubspot/helpers/camel_case.rb +9 -0
- data/lib/hubspot/helpers/snake_case.rb +13 -0
- data/lib/hubspot/version.rb +1 -1
- data/lib/hubspot-api-client.rb +1 -0
- data/spec/discovery/automation/actions/callbacks_api_spec.rb +8 -0
- data/spec/discovery/automation/actions/definitions_api_spec.rb +11 -0
- data/spec/discovery/automation/actions/functions_api_spec.rb +13 -0
- data/spec/discovery/automation/actions/revisions_api_spec.rb +8 -0
- data/spec/discovery/base_api_client_spec.rb +69 -0
- data/spec/discovery/base_module_client_spec.rb +28 -0
- data/spec/discovery/client_spec.rb +16 -0
- data/spec/discovery/cms/audit-logs/audit_logs_api_spec.rb +7 -0
- data/spec/discovery/cms/blogs/authors/author_api_spec.rb +15 -0
- data/spec/discovery/cms/blogs/blog-posts/blog_post_api_spec.rb +25 -0
- data/spec/discovery/cms/blogs/tags/tag_api_spec.rb +15 -0
- data/spec/discovery/cms/domains/domains_api_spec.rb +8 -0
- data/spec/discovery/cms/hubdb/rows_api_spec.rb +15 -0
- data/spec/discovery/cms/hubdb/rows_batch_api_spec.rb +13 -0
- data/spec/discovery/cms/hubdb/tables_api_spec.rb +20 -0
- data/spec/discovery/cms/performance/public_performance_api_spec.rb +8 -0
- data/spec/discovery/cms/site-search/public_api_spec.rb +8 -0
- data/spec/discovery/cms/url-redirects/redirects_api_spec.rb +11 -0
- data/spec/discovery/communication_preferences/definition_api_spec.rb +7 -0
- data/spec/discovery/communication_preferences/status_api_spec.rb +9 -0
- data/spec/discovery/conversations/visitor-identification/generate_api_spec.rb +7 -0
- data/spec/discovery/crm/associations/batch_api_spec.rb +9 -0
- data/spec/discovery/crm/associations/types_api_spec.rb +7 -0
- data/spec/discovery/crm/companies/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/companies/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/companies/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/companies/search_api_spec.rb +7 -0
- data/spec/discovery/crm/contacts/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/contacts/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/contacts/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/contacts/gdpr_api_spec.rb +8 -0
- data/spec/discovery/crm/contacts/search_api_spec.rb +7 -0
- data/spec/discovery/crm/deals/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/deals/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/deals/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/deals/search_api_spec.rb +7 -0
- data/spec/discovery/crm/extensions/accounting/callbacks_api_spec.rb +16 -0
- data/spec/discovery/crm/extensions/accounting/invoice_api_spec.rb +9 -0
- data/spec/discovery/crm/extensions/accounting/settings_api_spec.rb +8 -0
- data/spec/discovery/crm/extensions/accounting/sync_api_spec.rb +8 -0
- data/spec/discovery/crm/extensions/accounting/user_accounts_api_spec.rb +8 -0
- data/spec/discovery/crm/extensions/calling/settings_api_spec.rb +10 -0
- data/spec/discovery/crm/extensions/cards/cards_api_spec.rb +11 -0
- data/spec/discovery/crm/extensions/cards/sample_response_api_spec.rb +7 -0
- data/spec/discovery/crm/extensions/videoconferencing/settings_api_spec.rb +9 -0
- data/spec/discovery/crm/imports/core_api_spec.rb +10 -0
- data/spec/discovery/crm/imports/public_imports_api_spec.rb +7 -0
- data/spec/discovery/crm/line_items/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/line_items/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/line_items/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/line_items/search_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/objects/basic_api_spec.rb +12 -0
- data/spec/discovery/crm/objects/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/feedback_submissions/associations_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/feedback_submissions/basic_api_spec.rb +8 -0
- data/spec/discovery/crm/objects/feedback_submissions/batch_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/feedback_submissions/search_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/gdpr_api_spec.rb +8 -0
- data/spec/discovery/crm/objects/search_api_spec.rb +7 -0
- data/spec/discovery/crm/owners/owners_api_spec.rb +8 -0
- data/spec/discovery/crm/pipelines/pipeline_stages_api_spec.rb +12 -0
- data/spec/discovery/crm/pipelines/pipelines_api_spec.rb +12 -0
- data/spec/discovery/crm/products/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/products/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/products/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/products/search_api_spec.rb +7 -0
- data/spec/discovery/crm/properties/batch_api_spec.rb +9 -0
- data/spec/discovery/crm/properties/core_api_spec.rb +11 -0
- data/spec/discovery/crm/properties/groups_api_spec.rb +11 -0
- data/spec/discovery/crm/quotes/associations_api_spec.rb +7 -0
- data/spec/discovery/crm/quotes/basic_api_spec.rb +8 -0
- data/spec/discovery/crm/quotes/batch_api_spec.rb +7 -0
- data/spec/discovery/crm/quotes/search_api_spec.rb +7 -0
- data/spec/discovery/crm/schemas/core_api_spec.rb +13 -0
- data/spec/discovery/crm/schemas/public_object_schemas_api_spec.rb +7 -0
- data/spec/discovery/crm/tickets/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/tickets/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/tickets/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/tickets/search_api_spec.rb +7 -0
- data/spec/discovery/crm/timeline/events_api_spec.rb +11 -0
- data/spec/discovery/crm/timeline/templates_api_spec.rb +11 -0
- data/spec/discovery/crm/timeline/tokens_api_spec.rb +9 -0
- data/spec/discovery/events/events_api_spec.rb +7 -0
- data/spec/discovery/files/files/files_api_spec.rb +16 -0
- data/spec/discovery/files/files/folders_api_spec.rb +14 -0
- data/spec/discovery/marketing/transactional/public_smtp_tokens_api_spec.rb +11 -0
- data/spec/discovery/marketing/transactional/single_send_api_spec.rb +7 -0
- data/spec/discovery/oauth/access_tokens_api_spec.rb +7 -0
- data/spec/discovery/oauth/refresh_tokens_api_spec.rb +8 -0
- data/spec/discovery/oauth/tokens_api_spec.rb +7 -0
- data/spec/discovery/webhooks/settings_api_spec.rb +9 -0
- data/spec/discovery/webhooks/subscriptions_api_spec.rb +12 -0
- data/spec/features/cms/audit-logs/audit_logs_api_spec.rb +1 -1
- data/spec/features/cms/blogs/authors/author_api_spec.rb +9 -9
- data/spec/features/cms/{perfomance/public_perfomance_api_spec.rb → performance/public_performance_api_spec.rb} +0 -0
- data/spec/features/crm/imports/public_imports_api_spec.rb +7 -0
- metadata +346 -4
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Objects::AssociationsApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.associations_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_all) }
|
9
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Objects::BasicApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.basic_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_by_id) }
|
9
|
+
it { is_expected.to respond_to(:get_page) }
|
10
|
+
it { is_expected.to respond_to(:update) }
|
11
|
+
it { is_expected.to respond_to(:get_all) }
|
12
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Objects::BatchApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.batch_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:read) }
|
9
|
+
it { is_expected.to respond_to(:update) }
|
10
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Objects::FeedbackSubmissions::AssociationsApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.feedback_submissions.associations_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:get_all) }
|
7
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Objects::FeedbackSubmissions::BasicApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.feedback_submissions.basic_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:get_by_id) }
|
7
|
+
it { is_expected.to respond_to(:get_page) }
|
8
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Objects::GDPRApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.g_d_p_r_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:purge_by_email) }
|
7
|
+
it { is_expected.to respond_to(:purge_by_id) }
|
8
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Pipelines::PipelineStagesApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.pipelines.pipeline_stages_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_all) }
|
9
|
+
it { is_expected.to respond_to(:get_by_id) }
|
10
|
+
it { is_expected.to respond_to(:replace) }
|
11
|
+
it { is_expected.to respond_to(:update) }
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Pipelines::PipelinesApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.pipelines.pipelines_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_all) }
|
9
|
+
it { is_expected.to respond_to(:get_by_id) }
|
10
|
+
it { is_expected.to respond_to(:replace) }
|
11
|
+
it { is_expected.to respond_to(:update) }
|
12
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Products::AssociationsApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.products.associations_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_all) }
|
9
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Products::BasicApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.products.basic_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_by_id) }
|
9
|
+
it { is_expected.to respond_to(:get_page) }
|
10
|
+
it { is_expected.to respond_to(:update) }
|
11
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Products::BatchApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.products.batch_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:read) }
|
9
|
+
it { is_expected.to respond_to(:update) }
|
10
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Properties::BatchApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.properties.batch_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:read) }
|
9
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Properties::CoreApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.properties.core_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_all) }
|
9
|
+
it { is_expected.to respond_to(:get_by_name) }
|
10
|
+
it { is_expected.to respond_to(:update) }
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Properties::GroupsApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.properties.groups_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_all) }
|
9
|
+
it { is_expected.to respond_to(:get_by_name) }
|
10
|
+
it { is_expected.to respond_to(:update) }
|
11
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Schemas::CoreApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.schemas.core_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:archive_association) }
|
8
|
+
it { is_expected.to respond_to(:create) }
|
9
|
+
it { is_expected.to respond_to(:create_association) }
|
10
|
+
it { is_expected.to respond_to(:get_all) }
|
11
|
+
it { is_expected.to respond_to(:get_by_id) }
|
12
|
+
it { is_expected.to respond_to(:update) }
|
13
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Tickets::AssociationsApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.tickets.associations_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_all) }
|
9
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Tickets::BasicApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.tickets.basic_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_by_id) }
|
9
|
+
it { is_expected.to respond_to(:get_page) }
|
10
|
+
it { is_expected.to respond_to(:update) }
|
11
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Tickets::BatchApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.tickets.batch_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:read) }
|
9
|
+
it { is_expected.to respond_to(:update) }
|
10
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Timeline::EventsApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.timeline.events_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:create) }
|
7
|
+
it { is_expected.to respond_to(:create_batch) }
|
8
|
+
it { is_expected.to respond_to(:get_by_id) }
|
9
|
+
it { is_expected.to respond_to(:get_detail_by_id) }
|
10
|
+
it { is_expected.to respond_to(:get_render_by_id) }
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Timeline::TemplatesApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.timeline.templates_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_all) }
|
9
|
+
it { is_expected.to respond_to(:get_by_id) }
|
10
|
+
it { is_expected.to respond_to(:update) }
|
11
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Crm::Timeline::TokensApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').crm.timeline.tokens_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:update) }
|
9
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Files::Files::FilesApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').files.files.files_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:archive_gdpr) }
|
8
|
+
it { is_expected.to respond_to(:check_import) }
|
9
|
+
it { is_expected.to respond_to(:do_search) }
|
10
|
+
it { is_expected.to respond_to(:get_by_id) }
|
11
|
+
it { is_expected.to respond_to(:get_signed_url) }
|
12
|
+
it { is_expected.to respond_to(:import_from_url) }
|
13
|
+
it { is_expected.to respond_to(:replace) }
|
14
|
+
it { is_expected.to respond_to(:update_properties) }
|
15
|
+
it { is_expected.to respond_to(:upload) }
|
16
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Files::Files::FoldersApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').files.files.folders_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:archive_by_path) }
|
8
|
+
it { is_expected.to respond_to(:check_update_status) }
|
9
|
+
it { is_expected.to respond_to(:create) }
|
10
|
+
it { is_expected.to respond_to(:do_search) }
|
11
|
+
it { is_expected.to respond_to(:get_by_id) }
|
12
|
+
it { is_expected.to respond_to(:get_by_path) }
|
13
|
+
it { is_expected.to respond_to(:update_properties) }
|
14
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Marketing::Transactional::PublicSmtpTokensApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').marketing.transactional.public_smtp_tokens_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive_token) }
|
7
|
+
it { is_expected.to respond_to(:get_token_by_id) }
|
8
|
+
it { is_expected.to respond_to(:get_tokens_page) }
|
9
|
+
it { is_expected.to respond_to(:create_token) }
|
10
|
+
it { is_expected.to respond_to(:reset_password) }
|
11
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::OAuth::RefreshTokensApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').o_auth.refresh_tokens_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive_refresh_token) }
|
7
|
+
it { is_expected.to respond_to(:get_refresh_token) }
|
8
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Webhooks::SettingsApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').webhooks.settings_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:clear) }
|
7
|
+
it { is_expected.to respond_to(:configure) }
|
8
|
+
it { is_expected.to respond_to(:get_all) }
|
9
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hubspot::Discovery::Webhooks::SubscriptionsApi' do
|
4
|
+
subject(:api) { Hubspot::Client.new(api_key: 'test').webhooks.subscriptions_api }
|
5
|
+
|
6
|
+
it { is_expected.to respond_to(:archive) }
|
7
|
+
it { is_expected.to respond_to(:create) }
|
8
|
+
it { is_expected.to respond_to(:get_all) }
|
9
|
+
it { is_expected.to respond_to(:get_by_id) }
|
10
|
+
it { is_expected.to respond_to(:update) }
|
11
|
+
it { is_expected.to respond_to(:update_batch) }
|
12
|
+
end
|
@@ -11,7 +11,7 @@ describe 'Hubspot::Cms::AuditLogs::AuditLogsApi' do
|
|
11
11
|
let(:params) { { auth_names: 'ouath2' } }
|
12
12
|
|
13
13
|
before do
|
14
|
-
api.api_client.
|
14
|
+
allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
|
15
15
|
end
|
16
16
|
|
17
17
|
it { is_expected.to eq params[:auth_names] }
|
@@ -20,7 +20,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
|
|
20
20
|
let(:input_string) { 'test_input_string' }
|
21
21
|
|
22
22
|
before do
|
23
|
-
api.api_client.
|
23
|
+
allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
|
24
24
|
end
|
25
25
|
|
26
26
|
it 'sets auth names from params' do
|
@@ -47,7 +47,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
|
|
47
47
|
let(:object_id) { 'test_object_id' }
|
48
48
|
|
49
49
|
before do
|
50
|
-
api.api_client.
|
50
|
+
allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
|
51
51
|
end
|
52
52
|
|
53
53
|
it 'sets auth names from params' do
|
@@ -74,7 +74,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
|
|
74
74
|
let(:blog_author) { 'test_blog_author' }
|
75
75
|
|
76
76
|
before do
|
77
|
-
api.api_client.
|
77
|
+
allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
|
78
78
|
end
|
79
79
|
|
80
80
|
it 'sets auth names from params' do
|
@@ -101,7 +101,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
|
|
101
101
|
let(:blog_author) { 'test_blog_author' }
|
102
102
|
|
103
103
|
before do
|
104
|
-
api.api_client.
|
104
|
+
allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
|
105
105
|
end
|
106
106
|
|
107
107
|
it 'sets auth names from params' do
|
@@ -128,7 +128,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
|
|
128
128
|
let(:object_id) { 'test_object_id' }
|
129
129
|
|
130
130
|
before do
|
131
|
-
api.api_client.
|
131
|
+
allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
|
132
132
|
end
|
133
133
|
|
134
134
|
it 'sets auth names from params' do
|
@@ -154,7 +154,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
|
|
154
154
|
let(:params) { { auth_names: 'ouath2' } }
|
155
155
|
|
156
156
|
before do
|
157
|
-
api.api_client.
|
157
|
+
allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
|
158
158
|
end
|
159
159
|
|
160
160
|
it { is_expected.to eq params[:auth_names] }
|
@@ -173,7 +173,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
|
|
173
173
|
let(:input_string) { 'test_input_string' }
|
174
174
|
|
175
175
|
before do
|
176
|
-
api.api_client.
|
176
|
+
allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
|
177
177
|
end
|
178
178
|
|
179
179
|
it 'sets auth_names from params' do
|
@@ -200,7 +200,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
|
|
200
200
|
let(:input_json_node) { 'test_input_json_node' }
|
201
201
|
|
202
202
|
before do
|
203
|
-
api.api_client.
|
203
|
+
allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
|
204
204
|
end
|
205
205
|
|
206
206
|
it 'sets auth_names from params' do
|
@@ -228,7 +228,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
|
|
228
228
|
let(:input_json_node) { 'test_input_json_node' }
|
229
229
|
|
230
230
|
before do
|
231
|
-
api.api_client.
|
231
|
+
allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
|
232
232
|
end
|
233
233
|
|
234
234
|
it 'sets auth names from params' do
|
File without changes
|