hubspot-api-client 3.1.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/lib/hubspot-api-client.rb +73 -1
- data/lib/hubspot/codegen/cms/audit-logs/api/default_api.rb +106 -0
- data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +422 -0
- data/lib/hubspot/codegen/cms/audit-logs/api_error.rb +61 -0
- data/lib/hubspot/codegen/cms/audit-logs/configuration.rb +265 -0
- data/lib/hubspot/codegen/cms/audit-logs/models/collection_response_public_audit_log.rb +226 -0
- data/lib/hubspot/codegen/cms/audit-logs/models/error.rb +292 -0
- data/lib/hubspot/codegen/cms/audit-logs/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/cms/audit-logs/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/cms/audit-logs/models/paging.rb +210 -0
- data/lib/hubspot/codegen/cms/audit-logs/models/public_audit_log.rb +352 -0
- data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +183 -0
- data/lib/hubspot/codegen/cms/domains/api_client.rb +422 -0
- data/lib/hubspot/codegen/cms/domains/api_error.rb +61 -0
- data/lib/hubspot/codegen/cms/domains/configuration.rb +265 -0
- data/lib/hubspot/codegen/cms/domains/models/collection_response_with_total_domain.rb +240 -0
- data/lib/hubspot/codegen/cms/domains/models/domain.rb +1091 -0
- data/lib/hubspot/codegen/cms/domains/models/domain_cdn_config.rb +497 -0
- data/lib/hubspot/codegen/cms/domains/models/domain_setup_info.rb +231 -0
- data/lib/hubspot/codegen/cms/domains/models/error.rb +292 -0
- data/lib/hubspot/codegen/cms/domains/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/cms/domains/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/cms/domains/models/paging.rb +210 -0
- data/lib/hubspot/codegen/cms/performance/api/default_api.rb +186 -0
- data/lib/hubspot/codegen/cms/performance/api_client.rb +422 -0
- data/lib/hubspot/codegen/cms/performance/api_error.rb +61 -0
- data/lib/hubspot/codegen/cms/performance/configuration.rb +265 -0
- data/lib/hubspot/codegen/cms/performance/models/error.rb +292 -0
- data/lib/hubspot/codegen/cms/performance/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/cms/performance/models/performance_view.rb +528 -0
- data/lib/hubspot/codegen/cms/performance/models/public_performance_response.rb +332 -0
- data/lib/hubspot/codegen/cms/site-search/api/default_api.rb +225 -0
- data/lib/hubspot/codegen/cms/site-search/api_client.rb +422 -0
- data/lib/hubspot/codegen/cms/site-search/api_error.rb +61 -0
- data/lib/hubspot/codegen/cms/site-search/configuration.rb +265 -0
- data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +427 -0
- data/lib/hubspot/codegen/cms/site-search/models/error.rb +292 -0
- data/lib/hubspot/codegen/cms/site-search/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +279 -0
- data/lib/hubspot/codegen/cms/site-search/models/public_search_results.rb +282 -0
- data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +259 -0
- data/lib/hubspot/codegen/cms/url-redirects/api/redirects_api.rb +368 -0
- data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +422 -0
- data/lib/hubspot/codegen/cms/url-redirects/api_error.rb +61 -0
- data/lib/hubspot/codegen/cms/url-redirects/configuration.rb +265 -0
- data/lib/hubspot/codegen/cms/url-redirects/models/collection_response_with_total_url_mapping.rb +242 -0
- data/lib/hubspot/codegen/cms/url-redirects/models/error.rb +292 -0
- data/lib/hubspot/codegen/cms/url-redirects/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/cms/url-redirects/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/cms/url-redirects/models/paging.rb +210 -0
- data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping.rb +596 -0
- data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb +306 -0
- data/lib/hubspot/codegen/crm/associations/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/companies/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/deals/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/imports/api/core_api.rb +41 -41
- data/lib/hubspot/codegen/crm/imports/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +0 -2
- data/lib/hubspot/codegen/crm/owners/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/products/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/products/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +30 -18
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +20 -12
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +20 -12
- data/lib/hubspot/codegen/crm/properties/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +18 -18
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +29 -23
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +14 -4
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +14 -4
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +1 -157
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +2 -190
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +11 -187
- data/lib/hubspot/codegen/crm/quotes/api/default_api.rb +426 -0
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +11 -7
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +20 -12
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +40 -24
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +10 -6
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +7 -0
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +20 -20
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +29 -38
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +15 -15
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +18 -18
- data/lib/hubspot/codegen/crm/timeline/configuration.rb +7 -0
- data/lib/hubspot/codegen/oauth/configuration.rb +7 -0
- data/lib/hubspot/codegen/webhooks/api/subscriptions_api.rb +70 -0
- data/lib/hubspot/codegen/webhooks/configuration.rb +7 -0
- data/lib/hubspot/codegen/webhooks/models/batch_input_subscription_batch_update_request.rb +215 -0
- data/lib/hubspot/codegen/webhooks/models/batch_response_subscription_response.rb +331 -0
- data/lib/hubspot/codegen/webhooks/models/subscription_batch_update_request.rb +227 -0
- data/lib/hubspot/exceptions.rb +11 -0
- data/lib/hubspot/helpers/webhooks_helper.rb +31 -0
- data/lib/hubspot/version.rb +1 -1
- data/sample-apps/imports-contacts-app/.env.template +2 -0
- data/sample-apps/imports-contacts-app/.env.test.template +3 -0
- data/sample-apps/imports-contacts-app/.gitignore +37 -0
- data/sample-apps/imports-contacts-app/.rspec +1 -0
- data/sample-apps/imports-contacts-app/.ruby-version +1 -0
- data/sample-apps/imports-contacts-app/Dockerfile +22 -0
- data/sample-apps/imports-contacts-app/Gemfile +33 -0
- data/sample-apps/imports-contacts-app/Gemfile.lock +271 -0
- data/sample-apps/imports-contacts-app/README.md +27 -0
- data/sample-apps/imports-contacts-app/Rakefile +6 -0
- data/sample-apps/imports-contacts-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/imports-contacts-app/app/assets/images/.keep +0 -0
- data/sample-apps/imports-contacts-app/app/assets/javascripts/application.js +15 -0
- data/sample-apps/imports-contacts-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/imports-contacts-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/imports-contacts-app/app/assets/stylesheets/application.css +87 -0
- data/sample-apps/imports-contacts-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/imports-contacts-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/imports-contacts-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/imports-contacts-app/app/controllers/imports_controller.rb +24 -0
- data/sample-apps/imports-contacts-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/imports-contacts-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/{webhooks-contacts-app → imports-contacts-app}/app/lib/services/authorization/authorize_hubspot.rb +0 -0
- data/sample-apps/{webhooks-contacts-app → imports-contacts-app}/app/lib/services/authorization/get_authorization_uri.rb +1 -1
- data/sample-apps/{webhooks-contacts-app → imports-contacts-app}/app/lib/services/authorization/tokens/base.rb +0 -0
- data/sample-apps/{webhooks-contacts-app → imports-contacts-app}/app/lib/services/authorization/tokens/generate.rb +2 -2
- data/sample-apps/{webhooks-contacts-app → imports-contacts-app}/app/lib/services/authorization/tokens/refresh.rb +3 -4
- data/sample-apps/imports-contacts-app/app/lib/services/hubspot/imports/create.rb +52 -0
- data/sample-apps/imports-contacts-app/app/models/application_record.rb +3 -0
- data/sample-apps/imports-contacts-app/app/models/concerns/.keep +0 -0
- data/sample-apps/imports-contacts-app/app/views/imports/index.html.erb +70 -0
- data/sample-apps/imports-contacts-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/imports-contacts-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/imports-contacts-app/app/views/shared/_header.html.erb +15 -0
- data/sample-apps/imports-contacts-app/bin/bundle +3 -0
- data/sample-apps/imports-contacts-app/bin/rails +9 -0
- data/sample-apps/imports-contacts-app/bin/rake +9 -0
- data/sample-apps/imports-contacts-app/bin/setup +36 -0
- data/sample-apps/imports-contacts-app/bin/spring +17 -0
- data/sample-apps/imports-contacts-app/bin/update +31 -0
- data/sample-apps/imports-contacts-app/bin/yarn +11 -0
- data/sample-apps/imports-contacts-app/config.ru +5 -0
- data/sample-apps/imports-contacts-app/config/application.rb +19 -0
- data/sample-apps/imports-contacts-app/config/boot.rb +3 -0
- data/sample-apps/imports-contacts-app/config/cable.yml +10 -0
- data/sample-apps/imports-contacts-app/config/database.yml +25 -0
- data/sample-apps/imports-contacts-app/config/environment.rb +5 -0
- data/sample-apps/imports-contacts-app/config/environments/development.rb +61 -0
- data/sample-apps/imports-contacts-app/config/environments/production.rb +94 -0
- data/sample-apps/imports-contacts-app/config/environments/test.rb +46 -0
- data/sample-apps/imports-contacts-app/config/initializers/assets.rb +14 -0
- data/sample-apps/imports-contacts-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/imports-contacts-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/imports-contacts-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/imports-contacts-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/imports-contacts-app/config/locales/en.yml +33 -0
- data/sample-apps/imports-contacts-app/config/puma.rb +34 -0
- data/sample-apps/imports-contacts-app/config/routes.rb +11 -0
- data/sample-apps/imports-contacts-app/config/spring.rb +6 -0
- data/sample-apps/imports-contacts-app/db/seeds.rb +7 -0
- data/sample-apps/imports-contacts-app/docker-compose.yml +11 -0
- data/sample-apps/imports-contacts-app/docker-entrypoint.sh +8 -0
- data/sample-apps/imports-contacts-app/lib/assets/.keep +0 -0
- data/sample-apps/imports-contacts-app/lib/tasks/.keep +0 -0
- data/sample-apps/imports-contacts-app/log/.keep +0 -0
- data/sample-apps/imports-contacts-app/package.json +5 -0
- data/sample-apps/imports-contacts-app/public/404.html +67 -0
- data/sample-apps/imports-contacts-app/public/422.html +67 -0
- data/sample-apps/imports-contacts-app/public/500.html +66 -0
- data/sample-apps/imports-contacts-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/imports-contacts-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/imports-contacts-app/public/examples/example.csv +2 -0
- data/sample-apps/imports-contacts-app/public/favicon.ico +0 -0
- data/sample-apps/imports-contacts-app/public/robots.txt +1 -0
- data/sample-apps/imports-contacts-app/tmp/.keep +0 -0
- data/sample-apps/search-result-paging-app/.env.template +4 -0
- data/sample-apps/search-result-paging-app/.gitignore +35 -0
- data/sample-apps/search-result-paging-app/.rspec +1 -0
- data/sample-apps/search-result-paging-app/.ruby-version +1 -0
- data/sample-apps/search-result-paging-app/Dockerfile +22 -0
- data/sample-apps/search-result-paging-app/Gemfile +35 -0
- data/sample-apps/search-result-paging-app/Gemfile.lock +279 -0
- data/sample-apps/search-result-paging-app/README.md +0 -0
- data/sample-apps/search-result-paging-app/Rakefile +6 -0
- data/sample-apps/search-result-paging-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/search-result-paging-app/app/assets/images/.keep +0 -0
- data/sample-apps/search-result-paging-app/app/assets/javascripts/application.js +25 -0
- data/sample-apps/search-result-paging-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/search-result-paging-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/search-result-paging-app/app/assets/stylesheets/application.css +77 -0
- data/sample-apps/search-result-paging-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/search-result-paging-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/search-result-paging-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/search-result-paging-app/app/controllers/home_controller.rb +14 -0
- data/sample-apps/search-result-paging-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/search-result-paging-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/authorize.rb +17 -0
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/get_authorization_uri.rb +35 -0
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/tokens/base.rb +21 -0
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/tokens/generate.rb +28 -0
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/tokens/refresh.rb +35 -0
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/contacts/get_page.rb +26 -0
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/contacts/search.rb +35 -0
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb +23 -0
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/destroy.rb +16 -0
- data/sample-apps/search-result-paging-app/app/models/application_record.rb +3 -0
- data/sample-apps/search-result-paging-app/app/models/concerns/.keep +0 -0
- data/sample-apps/search-result-paging-app/app/views/home/index.html.erb +13 -0
- data/sample-apps/search-result-paging-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/search-result-paging-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/search-result-paging-app/app/views/shared/_header.html.erb +18 -0
- data/sample-apps/search-result-paging-app/bin/bundle +3 -0
- data/sample-apps/search-result-paging-app/bin/rails +9 -0
- data/sample-apps/search-result-paging-app/bin/rake +9 -0
- data/sample-apps/search-result-paging-app/bin/setup +36 -0
- data/sample-apps/search-result-paging-app/bin/spring +17 -0
- data/sample-apps/search-result-paging-app/bin/update +31 -0
- data/sample-apps/search-result-paging-app/bin/yarn +11 -0
- data/sample-apps/search-result-paging-app/config.ru +5 -0
- data/sample-apps/search-result-paging-app/config/application.rb +19 -0
- data/sample-apps/search-result-paging-app/config/boot.rb +3 -0
- data/sample-apps/search-result-paging-app/config/cable.yml +10 -0
- data/sample-apps/search-result-paging-app/config/database.yml +25 -0
- data/sample-apps/search-result-paging-app/config/environment.rb +5 -0
- data/sample-apps/search-result-paging-app/config/environments/development.rb +61 -0
- data/sample-apps/search-result-paging-app/config/environments/production.rb +94 -0
- data/sample-apps/search-result-paging-app/config/environments/test.rb +46 -0
- data/sample-apps/search-result-paging-app/config/initializers/assets.rb +14 -0
- data/sample-apps/search-result-paging-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/search-result-paging-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/search-result-paging-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/search-result-paging-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/search-result-paging-app/config/locales/en.yml +33 -0
- data/sample-apps/search-result-paging-app/config/puma.rb +34 -0
- data/sample-apps/search-result-paging-app/config/routes.rb +7 -0
- data/sample-apps/search-result-paging-app/config/spring.rb +6 -0
- data/sample-apps/search-result-paging-app/db/seeds.rb +7 -0
- data/sample-apps/search-result-paging-app/docker-compose.yml +11 -0
- data/sample-apps/search-result-paging-app/docker-entrypoint.sh +8 -0
- data/sample-apps/search-result-paging-app/lib/assets/.keep +0 -0
- data/sample-apps/search-result-paging-app/lib/tasks/.keep +0 -0
- data/sample-apps/search-result-paging-app/lib/tasks/search_contacts.rake +36 -0
- data/sample-apps/search-result-paging-app/log/.keep +0 -0
- data/sample-apps/search-result-paging-app/package.json +5 -0
- data/sample-apps/search-result-paging-app/public/404.html +67 -0
- data/sample-apps/search-result-paging-app/public/422.html +67 -0
- data/sample-apps/search-result-paging-app/public/500.html +66 -0
- data/sample-apps/search-result-paging-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/search-result-paging-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/search-result-paging-app/public/favicon.ico +0 -0
- data/sample-apps/search-result-paging-app/public/robots.txt +1 -0
- data/sample-apps/search-result-paging-app/tmp/.keep +0 -0
- data/sample-apps/trello-integration-app/.env +13 -0
- data/sample-apps/webhooks-contacts-app/.env.template +3 -1
- data/sample-apps/webhooks-contacts-app/Gemfile.lock +1 -1
- data/sample-apps/webhooks-contacts-app/README.md +24 -21
- data/sample-apps/webhooks-contacts-app/app/assets/stylesheets/application.css +7 -55
- data/sample-apps/webhooks-contacts-app/app/controllers/events_controller.rb +8 -10
- data/sample-apps/webhooks-contacts-app/app/controllers/home_controller.rb +44 -0
- data/sample-apps/webhooks-contacts-app/app/controllers/oauth/authorization_controller.rb +6 -6
- data/sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb +1 -1
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/authorization/authorize.rb +17 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/authorization/get_authorization_uri.rb +35 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/authorization/tokens/base.rb +21 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/authorization/tokens/generate.rb +28 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/authorization/tokens/refresh.rb +35 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb +25 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/create_or_activate_subscription.rb +44 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/handle.rb +13 -1
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/pause_active_subscriptions.rb +39 -0
- data/sample-apps/webhooks-contacts-app/app/models/event.rb +3 -0
- data/sample-apps/webhooks-contacts-app/app/views/events/index.html.erb +14 -16
- data/sample-apps/webhooks-contacts-app/app/views/home/index.html.erb +47 -0
- data/sample-apps/webhooks-contacts-app/app/views/oauth/authorization/login.html.erb +6 -6
- data/sample-apps/webhooks-contacts-app/app/views/shared/_header.html.erb +3 -0
- data/sample-apps/webhooks-contacts-app/config/database.yml +9 -9
- data/sample-apps/webhooks-contacts-app/config/routes.rb +2 -0
- data/sample-apps/webhooks-contacts-app/db/schema.rb +2 -5
- data/sample-apps/webhooks-contacts-app/docker-compose.yml +13 -10
- metadata +618 -7
data/lib/hubspot/exceptions.rb
CHANGED
@@ -1,3 +1,14 @@
|
|
1
1
|
module Hubspot
|
2
2
|
class ConfigurationError < StandardError; end
|
3
|
+
|
4
|
+
class InvalidSignatureError < StandardError
|
5
|
+
def initialize(msg: nil, signature: nil, signature_version: nil, hash_result: nil)
|
6
|
+
@signature = signature
|
7
|
+
@signature_version = signature_version
|
8
|
+
@hash_result = hash_result
|
9
|
+
msg = "Invalid signature passed to request" if msg.nil?
|
10
|
+
|
11
|
+
super(msg)
|
12
|
+
end
|
13
|
+
end
|
3
14
|
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Hubspot
|
2
|
+
module Helpers
|
3
|
+
class WebhooksHelper
|
4
|
+
def self.validate_signature(
|
5
|
+
signature:,
|
6
|
+
client_secret:,
|
7
|
+
http_uri:,
|
8
|
+
request_body:,
|
9
|
+
http_method: 'POST',
|
10
|
+
signature_version: 'v2'
|
11
|
+
)
|
12
|
+
|
13
|
+
if signature_version == 'v1'
|
14
|
+
source_string = client_secret + request_body.to_s
|
15
|
+
else
|
16
|
+
source_string = client_secret + http_method + http_uri + request_body.to_s
|
17
|
+
end
|
18
|
+
|
19
|
+
hash_result = Digest::SHA2.hexdigest(source_string.encode('utf-8'))
|
20
|
+
|
21
|
+
if hash_result != signature
|
22
|
+
raise InvalidSignatureError.new(
|
23
|
+
signature: signature,
|
24
|
+
signature_version: signature_version,
|
25
|
+
hash_result: hash_result
|
26
|
+
)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/hubspot/version.rb
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
+
|
7
|
+
# Ignore bundler config.
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
# Ignore the default SQLite database.
|
11
|
+
/db/*.sqlite3
|
12
|
+
/db/*.sqlite3-journal
|
13
|
+
|
14
|
+
# Ignore all logfiles and tempfiles.
|
15
|
+
/log/*
|
16
|
+
/tmp/*
|
17
|
+
!/log/.keep
|
18
|
+
!/tmp/.keep
|
19
|
+
|
20
|
+
# Ignore uploaded files in development
|
21
|
+
/storage/*
|
22
|
+
!/storage/.keep
|
23
|
+
|
24
|
+
/node_modules
|
25
|
+
/yarn-error.log
|
26
|
+
|
27
|
+
/public/assets
|
28
|
+
.byebug_history
|
29
|
+
|
30
|
+
# Ignore master key for decrypting credentials and more.
|
31
|
+
/config/master.key
|
32
|
+
|
33
|
+
.rubocop.yml
|
34
|
+
.env
|
35
|
+
.env.test
|
36
|
+
|
37
|
+
/public/uploads
|
@@ -0,0 +1 @@
|
|
1
|
+
--require spec_helper
|
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.6.3
|
@@ -0,0 +1,22 @@
|
|
1
|
+
FROM ruby:2.6.3
|
2
|
+
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
|
3
|
+
RUN mkdir /hubspot-api-client
|
4
|
+
|
5
|
+
COPY ./lib /hubspot-api-client/lib
|
6
|
+
COPY ./sample-apps /hubspot-api-client/sample-apps
|
7
|
+
COPY ./spec /hubspot-api-client/spec
|
8
|
+
COPY ./Gemfile /hubspot-api-client/Gemfile
|
9
|
+
COPY ./Gemfile.lock /hubspot-api-client/Gemfile.lock
|
10
|
+
COPY ./hubspot-api-client.gemspec /hubspot-api-client/hubspot-api-client.gemspec
|
11
|
+
|
12
|
+
WORKDIR /hubspot-api-client/sample-apps/imports-contacts-app
|
13
|
+
RUN bundle install
|
14
|
+
|
15
|
+
# Add a script to be executed every time the container starts.
|
16
|
+
COPY ./sample-apps/imports-contacts-app/docker-entrypoint.sh /usr/bin/
|
17
|
+
RUN chmod +x /usr/bin/docker-entrypoint.sh
|
18
|
+
ENTRYPOINT ["docker-entrypoint.sh"]
|
19
|
+
EXPOSE 3000
|
20
|
+
|
21
|
+
# Start the main process.
|
22
|
+
CMD ["rails", "server", "-b", "0.0.0.0"]
|
@@ -0,0 +1,33 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
|
+
|
4
|
+
ruby '2.6.3'
|
5
|
+
|
6
|
+
gem 'rails', '~> 5.2.3'
|
7
|
+
gem 'sqlite3'
|
8
|
+
gem 'puma', '~> 4.3'
|
9
|
+
gem 'sass-rails', '~> 5.0'
|
10
|
+
gem 'uglifier', '>= 1.3.0'
|
11
|
+
gem 'jbuilder', '~> 2.5'
|
12
|
+
gem 'csv'
|
13
|
+
|
14
|
+
gem 'hubspot-api-client', path: '../../'
|
15
|
+
|
16
|
+
group :development, :test do
|
17
|
+
gem 'dotenv-rails', require: 'dotenv/rails-now'
|
18
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
19
|
+
gem 'rspec-rails', '~> 3.5'
|
20
|
+
gem 'capybara'
|
21
|
+
gem 'capybara-mechanize', '~> 1.11'
|
22
|
+
gem 'selenium-webdriver', '3.4.3'
|
23
|
+
gem 'geckodriver-helper'
|
24
|
+
gem 'pry'
|
25
|
+
gem 'pry-byebug'
|
26
|
+
end
|
27
|
+
|
28
|
+
group :development do
|
29
|
+
gem 'web-console', '>= 3.3.0'
|
30
|
+
gem 'listen', '>= 3.0.5', '< 3.2'
|
31
|
+
end
|
32
|
+
|
33
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
@@ -0,0 +1,271 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
hubspot-api-client (3.2.0)
|
5
|
+
faraday (>= 0.14.0)
|
6
|
+
json (~> 2.1, >= 2.1.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actioncable (5.2.3)
|
12
|
+
actionpack (= 5.2.3)
|
13
|
+
nio4r (~> 2.0)
|
14
|
+
websocket-driver (>= 0.6.1)
|
15
|
+
actionmailer (5.2.3)
|
16
|
+
actionpack (= 5.2.3)
|
17
|
+
actionview (= 5.2.3)
|
18
|
+
activejob (= 5.2.3)
|
19
|
+
mail (~> 2.5, >= 2.5.4)
|
20
|
+
rails-dom-testing (~> 2.0)
|
21
|
+
actionpack (5.2.3)
|
22
|
+
actionview (= 5.2.3)
|
23
|
+
activesupport (= 5.2.3)
|
24
|
+
rack (~> 2.0)
|
25
|
+
rack-test (>= 0.6.3)
|
26
|
+
rails-dom-testing (~> 2.0)
|
27
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
+
actionview (5.2.3)
|
29
|
+
activesupport (= 5.2.3)
|
30
|
+
builder (~> 3.1)
|
31
|
+
erubi (~> 1.4)
|
32
|
+
rails-dom-testing (~> 2.0)
|
33
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
34
|
+
activejob (5.2.3)
|
35
|
+
activesupport (= 5.2.3)
|
36
|
+
globalid (>= 0.3.6)
|
37
|
+
activemodel (5.2.3)
|
38
|
+
activesupport (= 5.2.3)
|
39
|
+
activerecord (5.2.3)
|
40
|
+
activemodel (= 5.2.3)
|
41
|
+
activesupport (= 5.2.3)
|
42
|
+
arel (>= 9.0)
|
43
|
+
activestorage (5.2.3)
|
44
|
+
actionpack (= 5.2.3)
|
45
|
+
activerecord (= 5.2.3)
|
46
|
+
marcel (~> 0.3.1)
|
47
|
+
activesupport (5.2.3)
|
48
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
49
|
+
i18n (>= 0.7, < 2)
|
50
|
+
minitest (~> 5.1)
|
51
|
+
tzinfo (~> 1.1)
|
52
|
+
addressable (2.7.0)
|
53
|
+
public_suffix (>= 2.0.2, < 5.0)
|
54
|
+
archive-zip (0.12.0)
|
55
|
+
io-like (~> 0.3.0)
|
56
|
+
arel (9.0.0)
|
57
|
+
bindex (0.8.1)
|
58
|
+
builder (3.2.3)
|
59
|
+
byebug (11.0.1)
|
60
|
+
capybara (3.29.0)
|
61
|
+
addressable
|
62
|
+
mini_mime (>= 0.1.3)
|
63
|
+
nokogiri (~> 1.8)
|
64
|
+
rack (>= 1.6.0)
|
65
|
+
rack-test (>= 0.6.3)
|
66
|
+
regexp_parser (~> 1.5)
|
67
|
+
xpath (~> 3.2)
|
68
|
+
capybara-mechanize (1.11.0)
|
69
|
+
capybara (>= 2.4.4, < 4)
|
70
|
+
mechanize (~> 2.7.0)
|
71
|
+
childprocess (0.9.0)
|
72
|
+
ffi (~> 1.0, >= 1.0.11)
|
73
|
+
coderay (1.1.2)
|
74
|
+
concurrent-ruby (1.1.5)
|
75
|
+
connection_pool (2.2.2)
|
76
|
+
crass (1.0.5)
|
77
|
+
csv (3.1.2)
|
78
|
+
diff-lcs (1.3)
|
79
|
+
domain_name (0.5.20190701)
|
80
|
+
unf (>= 0.0.5, < 1.0.0)
|
81
|
+
dotenv (2.7.5)
|
82
|
+
dotenv-rails (2.7.5)
|
83
|
+
dotenv (= 2.7.5)
|
84
|
+
railties (>= 3.2, < 6.1)
|
85
|
+
erubi (1.9.0)
|
86
|
+
execjs (2.7.0)
|
87
|
+
faraday (1.0.1)
|
88
|
+
multipart-post (>= 1.2, < 3)
|
89
|
+
ffi (1.11.1)
|
90
|
+
geckodriver-helper (0.24.0)
|
91
|
+
archive-zip (~> 0.7)
|
92
|
+
globalid (0.4.2)
|
93
|
+
activesupport (>= 4.2.0)
|
94
|
+
http-cookie (1.0.3)
|
95
|
+
domain_name (~> 0.5)
|
96
|
+
i18n (1.7.0)
|
97
|
+
concurrent-ruby (~> 1.0)
|
98
|
+
io-like (0.3.0)
|
99
|
+
jbuilder (2.9.1)
|
100
|
+
activesupport (>= 4.2.0)
|
101
|
+
json (2.3.0)
|
102
|
+
listen (3.1.5)
|
103
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
104
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
105
|
+
ruby_dep (~> 1.2)
|
106
|
+
loofah (2.3.1)
|
107
|
+
crass (~> 1.0.2)
|
108
|
+
nokogiri (>= 1.5.9)
|
109
|
+
mail (2.7.1)
|
110
|
+
mini_mime (>= 0.1.1)
|
111
|
+
marcel (0.3.3)
|
112
|
+
mimemagic (~> 0.3.2)
|
113
|
+
mechanize (2.7.6)
|
114
|
+
domain_name (~> 0.5, >= 0.5.1)
|
115
|
+
http-cookie (~> 1.0)
|
116
|
+
mime-types (>= 1.17.2)
|
117
|
+
net-http-digest_auth (~> 1.1, >= 1.1.1)
|
118
|
+
net-http-persistent (>= 2.5.2)
|
119
|
+
nokogiri (~> 1.6)
|
120
|
+
ntlm-http (~> 0.1, >= 0.1.1)
|
121
|
+
webrobots (>= 0.0.9, < 0.2)
|
122
|
+
method_source (0.9.2)
|
123
|
+
mime-types (3.3)
|
124
|
+
mime-types-data (~> 3.2015)
|
125
|
+
mime-types-data (3.2019.1009)
|
126
|
+
mimemagic (0.3.3)
|
127
|
+
mini_mime (1.0.2)
|
128
|
+
mini_portile2 (2.4.0)
|
129
|
+
minitest (5.13.0)
|
130
|
+
multipart-post (2.1.1)
|
131
|
+
net-http-digest_auth (1.4.1)
|
132
|
+
net-http-persistent (3.1.0)
|
133
|
+
connection_pool (~> 2.2)
|
134
|
+
nio4r (2.5.2)
|
135
|
+
nokogiri (1.10.5)
|
136
|
+
mini_portile2 (~> 2.4.0)
|
137
|
+
ntlm-http (0.1.1)
|
138
|
+
pry (0.12.2)
|
139
|
+
coderay (~> 1.1.0)
|
140
|
+
method_source (~> 0.9.0)
|
141
|
+
pry-byebug (3.7.0)
|
142
|
+
byebug (~> 11.0)
|
143
|
+
pry (~> 0.10)
|
144
|
+
public_suffix (4.0.1)
|
145
|
+
puma (4.3.1)
|
146
|
+
nio4r (~> 2.0)
|
147
|
+
rack (2.2.2)
|
148
|
+
rack-test (1.1.0)
|
149
|
+
rack (>= 1.0, < 3)
|
150
|
+
rails (5.2.3)
|
151
|
+
actioncable (= 5.2.3)
|
152
|
+
actionmailer (= 5.2.3)
|
153
|
+
actionpack (= 5.2.3)
|
154
|
+
actionview (= 5.2.3)
|
155
|
+
activejob (= 5.2.3)
|
156
|
+
activemodel (= 5.2.3)
|
157
|
+
activerecord (= 5.2.3)
|
158
|
+
activestorage (= 5.2.3)
|
159
|
+
activesupport (= 5.2.3)
|
160
|
+
bundler (>= 1.3.0)
|
161
|
+
railties (= 5.2.3)
|
162
|
+
sprockets-rails (>= 2.0.0)
|
163
|
+
rails-dom-testing (2.0.3)
|
164
|
+
activesupport (>= 4.2.0)
|
165
|
+
nokogiri (>= 1.6)
|
166
|
+
rails-html-sanitizer (1.3.0)
|
167
|
+
loofah (~> 2.3)
|
168
|
+
railties (5.2.3)
|
169
|
+
actionpack (= 5.2.3)
|
170
|
+
activesupport (= 5.2.3)
|
171
|
+
method_source
|
172
|
+
rake (>= 0.8.7)
|
173
|
+
thor (>= 0.19.0, < 2.0)
|
174
|
+
rake (13.0.0)
|
175
|
+
rb-fsevent (0.10.3)
|
176
|
+
rb-inotify (0.10.0)
|
177
|
+
ffi (~> 1.0)
|
178
|
+
regexp_parser (1.6.0)
|
179
|
+
rspec-core (3.9.0)
|
180
|
+
rspec-support (~> 3.9.0)
|
181
|
+
rspec-expectations (3.9.0)
|
182
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
183
|
+
rspec-support (~> 3.9.0)
|
184
|
+
rspec-mocks (3.9.0)
|
185
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
186
|
+
rspec-support (~> 3.9.0)
|
187
|
+
rspec-rails (3.9.0)
|
188
|
+
actionpack (>= 3.0)
|
189
|
+
activesupport (>= 3.0)
|
190
|
+
railties (>= 3.0)
|
191
|
+
rspec-core (~> 3.9.0)
|
192
|
+
rspec-expectations (~> 3.9.0)
|
193
|
+
rspec-mocks (~> 3.9.0)
|
194
|
+
rspec-support (~> 3.9.0)
|
195
|
+
rspec-support (3.9.0)
|
196
|
+
ruby_dep (1.5.0)
|
197
|
+
rubyzip (1.3.0)
|
198
|
+
sass (3.7.4)
|
199
|
+
sass-listen (~> 4.0.0)
|
200
|
+
sass-listen (4.0.0)
|
201
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
202
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
203
|
+
sass-rails (5.1.0)
|
204
|
+
railties (>= 5.2.0)
|
205
|
+
sass (~> 3.1)
|
206
|
+
sprockets (>= 2.8, < 4.0)
|
207
|
+
sprockets-rails (>= 2.0, < 4.0)
|
208
|
+
tilt (>= 1.1, < 3)
|
209
|
+
selenium-webdriver (3.4.3)
|
210
|
+
childprocess (~> 0.5)
|
211
|
+
rubyzip (~> 1.0)
|
212
|
+
sprockets (3.7.2)
|
213
|
+
concurrent-ruby (~> 1.0)
|
214
|
+
rack (> 1, < 3)
|
215
|
+
sprockets-rails (3.2.1)
|
216
|
+
actionpack (>= 4.0)
|
217
|
+
activesupport (>= 4.0)
|
218
|
+
sprockets (>= 3.0.0)
|
219
|
+
sqlite3 (1.4.1)
|
220
|
+
thor (0.20.3)
|
221
|
+
thread_safe (0.3.6)
|
222
|
+
tilt (2.0.10)
|
223
|
+
tzinfo (1.2.5)
|
224
|
+
thread_safe (~> 0.1)
|
225
|
+
uglifier (4.2.0)
|
226
|
+
execjs (>= 0.3.0, < 3)
|
227
|
+
unf (0.1.4)
|
228
|
+
unf_ext
|
229
|
+
unf_ext (0.0.7.6)
|
230
|
+
web-console (3.7.0)
|
231
|
+
actionview (>= 5.0)
|
232
|
+
activemodel (>= 5.0)
|
233
|
+
bindex (>= 0.4.0)
|
234
|
+
railties (>= 5.0)
|
235
|
+
webrobots (0.1.2)
|
236
|
+
websocket-driver (0.7.1)
|
237
|
+
websocket-extensions (>= 0.1.0)
|
238
|
+
websocket-extensions (0.1.4)
|
239
|
+
xpath (3.2.0)
|
240
|
+
nokogiri (~> 1.8)
|
241
|
+
|
242
|
+
PLATFORMS
|
243
|
+
ruby
|
244
|
+
|
245
|
+
DEPENDENCIES
|
246
|
+
byebug
|
247
|
+
capybara
|
248
|
+
capybara-mechanize (~> 1.11)
|
249
|
+
csv
|
250
|
+
dotenv-rails
|
251
|
+
geckodriver-helper
|
252
|
+
hubspot-api-client!
|
253
|
+
jbuilder (~> 2.5)
|
254
|
+
listen (>= 3.0.5, < 3.2)
|
255
|
+
pry
|
256
|
+
pry-byebug
|
257
|
+
puma (~> 4.3)
|
258
|
+
rails (~> 5.2.3)
|
259
|
+
rspec-rails (~> 3.5)
|
260
|
+
sass-rails (~> 5.0)
|
261
|
+
selenium-webdriver (= 3.4.3)
|
262
|
+
sqlite3
|
263
|
+
tzinfo-data
|
264
|
+
uglifier (>= 1.3.0)
|
265
|
+
web-console (>= 3.3.0)
|
266
|
+
|
267
|
+
RUBY VERSION
|
268
|
+
ruby 2.6.3p62
|
269
|
+
|
270
|
+
BUNDLED WITH
|
271
|
+
1.17.3
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# HubSpot Ruby Imports Contacts App
|
2
|
+
|
3
|
+
This is a sample app for the [hubspot-ruby SDK](../../../../). Currently, this app focuses on demonstrating the functionality of [Imports API](https://developers.hubspot.com/docs/api/crm/imports) endpoints and their related actions.
|
4
|
+
|
5
|
+
Please see the documentation on [Creating an app in HubSpot](https://developers.hubspot.com/docs-beta/creating-an-app)
|
6
|
+
|
7
|
+
### HubSpot Public API endpoints used in this application
|
8
|
+
|
9
|
+
- [Imports](https://developers.hubspot.com/docs/api/crm/imports)
|
10
|
+
|
11
|
+
### Setup App
|
12
|
+
|
13
|
+
Make sure you have [Docker Compose](https://docs.docker.com/compose/) installed.
|
14
|
+
|
15
|
+
### Configure
|
16
|
+
|
17
|
+
1. Copy .env.template to .env
|
18
|
+
2. Paste your HUBSPOT_CLIENT_ID and HUBSPOT_CLIENT_SECRET
|
19
|
+
|
20
|
+
### Running
|
21
|
+
|
22
|
+
The best way to run this project (with the least configuration), is using docker compose. Change to the webroot and start it
|
23
|
+
|
24
|
+
```bash
|
25
|
+
docker-compose up --build
|
26
|
+
```
|
27
|
+
You should now be able to navigate to [http://localhost:3000](http://localhost:3000) and use the application.
|