hubspot-api-client 7.1.0 → 8.0.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 +18 -0
- data/README.md +41 -0
- data/lib/hubspot/codegen/cms/hubdb/api/default_api.rb +2090 -0
- data/lib/hubspot/codegen/cms/hubdb/api_client.rb +422 -0
- data/lib/hubspot/codegen/cms/hubdb/api_error.rb +61 -0
- data/lib/hubspot/codegen/cms/hubdb/configuration.rb +251 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_hub_db_table_row_v3.rb +217 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +215 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +217 -0
- data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +333 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3.rb +240 -0
- data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3.rb +240 -0
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +388 -0
- data/lib/hubspot/codegen/cms/hubdb/models/column_input.rb +288 -0
- data/lib/hubspot/codegen/cms/hubdb/models/error.rb +292 -0
- data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +243 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +241 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +291 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_input.rb +243 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +383 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_input.rb +295 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +241 -0
- data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +263 -0
- data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/cms/hubdb/models/option.rb +257 -0
- data/lib/hubspot/codegen/cms/hubdb/models/paging.rb +219 -0
- data/lib/hubspot/codegen/cms/hubdb/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +257 -0
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +278 -0
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +405 -0
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +309 -0
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +96 -0
- data/lib/hubspot/codegen/crm/objects/api_client.rb +424 -0
- data/lib/hubspot/codegen/crm/objects/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/objects/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/objects/models/associated_id.rb +229 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +242 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +313 -0
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object_with_errors.rb +333 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_associated_id.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +226 -0
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +272 -0
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +217 -0
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +219 -0
- data/lib/hubspot/codegen/crm/objects/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +286 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +288 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +231 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +215 -0
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +217 -0
- data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +478 -0
- data/lib/hubspot/codegen/crm/schemas/api/default_api.rb +84 -0
- data/lib/hubspot/codegen/crm/schemas/api_client.rb +424 -0
- data/lib/hubspot/codegen/crm/schemas/api_error.rb +61 -0
- data/lib/hubspot/codegen/crm/schemas/configuration.rb +258 -0
- data/lib/hubspot/codegen/crm/schemas/models/association_definition.rb +350 -0
- data/lib/hubspot/codegen/crm/schemas/models/association_definition_egg.rb +315 -0
- data/lib/hubspot/codegen/crm/schemas/models/collection_response_object_schema.rb +226 -0
- data/lib/hubspot/codegen/crm/schemas/models/error.rb +292 -0
- data/lib/hubspot/codegen/crm/schemas/models/error_detail.rb +258 -0
- data/lib/hubspot/codegen/crm/schemas/models/next_page.rb +224 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_schema.rb +389 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_schema_egg.rb +325 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition.rb +364 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_labels.rb +221 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_definition_patch.rb +265 -0
- data/lib/hubspot/codegen/crm/schemas/models/object_type_property_create.rb +356 -0
- data/lib/hubspot/codegen/crm/schemas/models/option.rb +266 -0
- data/lib/hubspot/codegen/crm/schemas/models/option_input.rb +271 -0
- data/lib/hubspot/codegen/crm/schemas/models/paging.rb +219 -0
- data/lib/hubspot/codegen/crm/schemas/models/previous_page.rb +224 -0
- data/lib/hubspot/codegen/crm/schemas/models/property.rb +465 -0
- data/lib/hubspot/codegen/crm/schemas/models/property_modification_metadata.rb +252 -0
- data/lib/hubspot/version.rb +1 -1
- data/lib/hubspot-api-client.rb +86 -0
- data/sample-apps/companies-app/.env +4 -0
- data/sample-apps/companies-app/Gemfile.lock +2 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/create.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/delete.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/get_by_id.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/create.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/search.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb +1 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/companies-app/db/development.sqlite3 +0 -0
- data/sample-apps/companies-app/log/development.log +9651 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/05/053IomYcNFTvqinXbDGqg6suuCpMwg3_qV12AK4ccx8.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/0B/0BGoINhViZ8xxoxODKNlHCXeopOIVGkZv9GAbzCCrZA.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/1J/1JnNlMoorvDaAcLChcV1QOiqJyanmoUydnfe5-TPuXM.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/1m/1mRwQeI_697SJNgSakVyU5vtV9tpeQ3aUvIyW2cHhMs.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/2N/2NtH32KGXJ77tP3Eqh6uLR51KNm1OVXMHhMmPwFdosI.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/2h/2hVm3bNa9JCxAsLCxbvspAtiL4VOtRTjXMSPw8eT9xk.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/3-/3-EQcCNxYxUGN8o8H9QP_4IuaSB9GPsR0C-PObnR7s8.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/41/41_29mpjEGapjHdofSi36OnnO3-eBNYbCe5nzHnIKwY.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/4r/4rc8SkywVdYO98mj9mHirVzuhN_EeOMM3Lt3rugoOJs.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/61/61XTQQp3JN2SQH4_rfFy4gSk4pMiTt8me_AumxnvBNw.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/9V/9VF8D3PaGXBXsH74TVS8KHuWDA_6IiSdXMilLhBQisM.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/A4/A4dS-Tck_QocRHBsc08nLD48snD4G6ewTLWwpkgdMOQ.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Du/DuRFhtIpu9n_mgamwyOra33hIUFOga8HYS-GSeWds9E.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/EC/EC2j6BCJ8TnspQFZeViwqN9QJH0fdqH7HvaNE6RzBxc.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Fp/FprMIwFBZYrEWraVY7BWLI8zyHb9bwBIcAGNdpYm1Qo.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/HP/HPdtqZdA1TM-sHs8oqrhAtNiPhPcRT9eX9Ol7MnE_Bw.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Hc/Hcu6WwbYbe7vdpSCb0xXIKhaJsPWI3ClhXNHSX7tDGI.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/JS/JSG-U0jab1xh5XD7sVL6JOKyu09pfMxV-xrBJe_JO74.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/LZ/LZDNDSBrMmCeKXHrWTWu3KifeJk8ttcNGuQa4fHLxeA.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Lh/LhI9Ge3PcQ_C89Ur42bKAIpIRT8TiDpipKToFBtEQeE.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/NF/NFP_eGmF5C6AoAtwpzQ--fUDgWzSatMkmaOg6MIZRsQ.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/NO/NOuX3u7ZLUewXKk_nPmLL5J6VkswjP1ZmCyZ1BzJXw4.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Oy/OyUbp1l8zWzyp-bagPDb2l_Q7vp5qVbtWwVFV0hBbbM.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/QM/QMyYX6f-edvoA70P385xdnqFw26fL-P9OtifvwXojp8.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/U4/U466McG48IRBn70OWh5BO3nYPsXgKrEXHkrftg0xCLQ.cache +3 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Up/Upbt8ro5KXzYO6uyhFdI4KEXO-PUKaMitXFMEKCsfWA.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Vr/Vr4UNxcDzlkx9ESuVbgI_Mb-fZcsczNERjGUj7FX7Io.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/Wh/WhFvj_7aBvrXx2AKx8-AVa6XnrEDLW1hRtQ7l08Ln58.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/ZU/ZUKJTVw3DLZSVGlveWzrhvo4GduUbQScJeICRDN8tdo.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/a3/a3AG-gARa2g-lIPGvcOkQvEfuvwICCxJd8zgE1bzLhE.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/c1/c17XEWohQCmDJUizcCXxGsOyG46k1SwuJghS8WDTpTw.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/dB/dB924pSiDrX_NqB-BmfdpToGXDZV6PINJB0ZDvM3tdg.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/dg/dg8xDUB026KlWVbRE1h_SZ6gEPR6g81HrTkUIimQzqc.cache +3 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/gv/gvq1z6PDRE8gMtaUq2in1i3UzX2ALHQQDyu4rktAnlM.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/kX/kXwRD1nb3DhVhF7hOQ5XyWT3MbPg9czHAQgVjCGZ4mc.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/nF/nFSeMjJCygNSOQ27hdJwySwUPyh3vBaiXljrHxeQCfc.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/pF/pFK-AXLRfIZQbNkoSeGwKVKqJtkz_-WxAlFUbspYW3o.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/sb/sbdra4MXru4fxHN_jrd3o4d3VFPFyG3lI247mddfTUk.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/tK/tKCKU24QLnDe4Wb5ytXkeZ42k7bpBNPmmTRcnTqC18o.cache +1 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/up/upaGCA7w36yB4Tws-rJDm6zL9b8MvnhZ0TUcpzwH_vg.cache +0 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/x2/x2sUH1UpS_RN1OlRKq_HmaXualaBizKVLTALZBT5VKo.cache +2 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/yL/yLiDuY3PPQgAmxWaulR4bejdG-_VXuSIqbmkWlntOys.cache +3 -0
- data/sample-apps/companies-app/tmp/cache/assets/sprockets/v3.0/zQ/zQQ-w-Xtu6gctPGaSXSDgmkcLte6siHhFoXxmJX9-0E.cache +1 -0
- data/sample-apps/companies-app/tmp/development_secret.txt +1 -0
- data/sample-apps/companies-app/tmp/restart.txt +0 -0
- data/sample-apps/contacts-app/.env +1 -3
- data/sample-apps/contacts-app/.env.test +3 -0
- data/sample-apps/contacts-app/Gemfile.lock +2 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/update.rb +1 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb +1 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/update.rb +1 -2
- data/sample-apps/contacts-app/db/test.sqlite3 +0 -0
- data/sample-apps/contacts-app/log/development.log +366 -0
- data/sample-apps/contacts-app/log/test.log +81 -0
- data/sample-apps/contacts-app/tmp/cache/assets/sprockets/v3.0/1Y/1YZtqickyeZ_JcII96hylY6lF7sxNkbgA85xfEwrRiI.cache +0 -0
- data/sample-apps/contacts-app/tmp/cache/assets/sprockets/v3.0/2l/2lwE97im5rEyOKzkyeiXzzKA4wJvO1a-4bRF4jVlcfc.cache +1 -0
- data/sample-apps/contacts-app/tmp/cache/assets/sprockets/v3.0/HQ/HQOePM7-Xd6f4RPYUzU9DhU7j7x58rgm9Ji25xcZqfs.cache +0 -0
- data/sample-apps/contacts-app/tmp/cache/assets/sprockets/v3.0/Kq/KqqfCu7F4dbV5xwLoXZcLoIgZKbHa_QnB1AwY0F_sw4.cache +0 -0
- data/sample-apps/contacts-app/tmp/cache/assets/sprockets/v3.0/qP/qPZh8f6IbfC6CMuapwQb1TgwVDd0LGY42KwWM1dMHdk.cache +1 -1
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/update.rb +1 -2
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/archive_batch.rb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/create_batch.rb +1 -1
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/contacts/search.rb +1 -1
- data/sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb +1 -2
- data/sample-apps/timeline-events-app/.env +6 -0
- data/sample-apps/timeline-events-app/.env.template +5 -0
- data/sample-apps/timeline-events-app/.gitignore +35 -0
- data/sample-apps/timeline-events-app/.rspec +1 -0
- data/sample-apps/timeline-events-app/.ruby-version +1 -0
- data/sample-apps/timeline-events-app/Dockerfile +22 -0
- data/sample-apps/timeline-events-app/Gemfile +33 -0
- data/sample-apps/timeline-events-app/Gemfile.lock +271 -0
- data/sample-apps/timeline-events-app/README.md +30 -0
- data/sample-apps/timeline-events-app/Rakefile +6 -0
- data/sample-apps/timeline-events-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/timeline-events-app/app/assets/images/.keep +0 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/application.js +15 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/timeline-events-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/timeline-events-app/app/assets/stylesheets/application.css +171 -0
- data/sample-apps/timeline-events-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/timeline-events-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/timeline-events-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/timeline-events-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/timeline-events-app/app/controllers/timeline_events_controller.rb +37 -0
- data/sample-apps/timeline-events-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/timeline-events-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/contacts/search.rb +37 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/timeline/create_event.rb +20 -0
- data/sample-apps/timeline-events-app/app/lib/services/hubspot/timeline/create_template.rb +39 -0
- data/sample-apps/timeline-events-app/app/models/application_record.rb +3 -0
- data/sample-apps/timeline-events-app/app/models/concerns/.keep +0 -0
- data/sample-apps/timeline-events-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/timeline-events-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/timeline-events-app/app/views/shared/_header.html.erb +12 -0
- data/sample-apps/timeline-events-app/app/views/timeline_events/index.html.erb +53 -0
- data/sample-apps/timeline-events-app/bin/bundle +3 -0
- data/sample-apps/timeline-events-app/bin/rails +9 -0
- data/sample-apps/timeline-events-app/bin/rake +9 -0
- data/sample-apps/timeline-events-app/bin/setup +36 -0
- data/sample-apps/timeline-events-app/bin/spring +17 -0
- data/sample-apps/timeline-events-app/bin/update +31 -0
- data/sample-apps/timeline-events-app/bin/yarn +11 -0
- data/sample-apps/timeline-events-app/config/application.rb +19 -0
- data/sample-apps/timeline-events-app/config/boot.rb +3 -0
- data/sample-apps/timeline-events-app/config/database.yml +25 -0
- data/sample-apps/timeline-events-app/config/environment.rb +5 -0
- data/sample-apps/timeline-events-app/config/environments/development.rb +61 -0
- data/sample-apps/timeline-events-app/config/environments/production.rb +94 -0
- data/sample-apps/timeline-events-app/config/environments/test.rb +46 -0
- data/sample-apps/timeline-events-app/config/initializers/assets.rb +14 -0
- data/sample-apps/timeline-events-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/timeline-events-app/config/initializers/hubspot-api-client.rb +3 -0
- data/sample-apps/timeline-events-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/timeline-events-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/timeline-events-app/config/locales/en.yml +33 -0
- data/sample-apps/timeline-events-app/config/puma.rb +34 -0
- data/sample-apps/timeline-events-app/config/routes.rb +7 -0
- data/sample-apps/timeline-events-app/config/spring.rb +6 -0
- data/sample-apps/timeline-events-app/config.ru +5 -0
- data/sample-apps/timeline-events-app/db/development.sqlite3 +0 -0
- data/sample-apps/timeline-events-app/db/seeds.rb +7 -0
- data/sample-apps/timeline-events-app/docker-compose.yml +11 -0
- data/sample-apps/timeline-events-app/docker-entrypoint.sh +8 -0
- data/sample-apps/timeline-events-app/lib/assets/.keep +0 -0
- data/sample-apps/timeline-events-app/lib/tasks/.keep +0 -0
- data/sample-apps/timeline-events-app/log/.keep +0 -0
- data/sample-apps/timeline-events-app/log/development.log +233 -0
- data/sample-apps/timeline-events-app/package.json +5 -0
- data/sample-apps/timeline-events-app/public/404.html +67 -0
- data/sample-apps/timeline-events-app/public/422.html +67 -0
- data/sample-apps/timeline-events-app/public/500.html +66 -0
- data/sample-apps/timeline-events-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/timeline-events-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/timeline-events-app/public/favicon.ico +0 -0
- data/sample-apps/timeline-events-app/public/robots.txt +1 -0
- data/sample-apps/timeline-events-app/spec/rails_helper.rb +42 -0
- data/sample-apps/timeline-events-app/spec/spec_helper.rb +11 -0
- data/sample-apps/timeline-events-app/tmp/.keep +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/-4/-4csb8XcQONHVcyTGO-F2TBp5f38ghhZHcLg3cqyqGo.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/-s/-sz9D51o9Mpd_omN4pJY1EYoyEa63QWgr9CkNp-jtps.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/1J/1JnNlMoorvDaAcLChcV1QOiqJyanmoUydnfe5-TPuXM.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/1m/1mRwQeI_697SJNgSakVyU5vtV9tpeQ3aUvIyW2cHhMs.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/2N/2NtH32KGXJ77tP3Eqh6uLR51KNm1OVXMHhMmPwFdosI.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/2h/2hVm3bNa9JCxAsLCxbvspAtiL4VOtRTjXMSPw8eT9xk.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/41/41_29mpjEGapjHdofSi36OnnO3-eBNYbCe5nzHnIKwY.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/60/609vj6Xv1ogaZ1W1H_oBuo-3NqC3UqbKAXw2ekEcehU.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/61/61XTQQp3JN2SQH4_rfFy4gSk4pMiTt8me_AumxnvBNw.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/6p/6pPimSDuw-hEAZW4CkGVIt9wjYiTMaCD2XPuKQoiI4Q.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/7J/7JspjJWUyNJySsbLlEs8anll3WiAM20dZ2sYA0gAhMI.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/9N/9NrK08Zz2zuDH5uff0al0ZhRW0kOe3KP7KSyfZDcWfg.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/9V/9VF8D3PaGXBXsH74TVS8KHuWDA_6IiSdXMilLhBQisM.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/9c/9cJSDPxEgTHO5-B9Ln7Tmok9fbsxmk1HYf-W-gkEg_I.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/AE/AE-AZVyOjAgA1j71HRmlDGNdoT6aOAMNrvEsZxDVMzU.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/AF/AFacZJ15zJm8o8Bwesmpsw2GC-o4mNEAhT87cuTM_wE.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/B6/B6MZ8qg-mV5hZWBQ5HB80eAXCr4gyrJR5Yrm4BiSTdU.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/D0/D01xXzz6r1DGdB4yVwcPaLEp7-mpzCd2m3enZVNJtFU.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Du/DuRFhtIpu9n_mgamwyOra33hIUFOga8HYS-GSeWds9E.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/EC/EC2j6BCJ8TnspQFZeViwqN9QJH0fdqH7HvaNE6RzBxc.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Ey/EyQsquE_D1TCQQbh-3vmLjQzYO7w9ZRqo7tDg5VpC7Q.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Fp/FprMIwFBZYrEWraVY7BWLI8zyHb9bwBIcAGNdpYm1Qo.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/JS/JSG-U0jab1xh5XD7sVL6JOKyu09pfMxV-xrBJe_JO74.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Lh/LhI9Ge3PcQ_C89Ur42bKAIpIRT8TiDpipKToFBtEQeE.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Mv/MvRTlknGa6_mRdF7m9I2jPIPCQ9a-RyzBwkgecBbZQ8.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/OF/OFMeLotCkEst9CGQgQZtf5RZNaVhcrLOPJeSWszn-aw.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/RJ/RJ-ZWnzIrbCdeg0pVWbccBZiePyfi50zo0xb1Tbhh80.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/RU/RUOojm-aD-XrIy-K6cbUI9czQdjnW9_Bt45wId068iM.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Tx/TxdcnqzvySOuWPXZfaIYX0TOpCy44repbAScKtV2niE.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/U4/U466McG48IRBn70OWh5BO3nYPsXgKrEXHkrftg0xCLQ.cache +3 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/UW/UWFYTnxz4EWqiz0LkhxInMLo36CdlVg3x9SyzAnLiBU.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Up/Upbt8ro5KXzYO6uyhFdI4KEXO-PUKaMitXFMEKCsfWA.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/V8/V8wr1RK4MTLGwxThiZIb0G-SrIusNzCMhJeHGGHT72Q.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Wh/WhFvj_7aBvrXx2AKx8-AVa6XnrEDLW1hRtQ7l08Ln58.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Wt/WtCfdoaaBC0aPmNgc57xHk8dbNRqZcP5zOpcLpiGzoc.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Wz/WzRw7cbmE45MrdG0W25ZAT-Nz0glf7xBkB2nI0M7z7A.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/Xi/XiZmZbrcb0M-y7EJZkx1ft177jFiZCL7pbpp6cRZaTA.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/ZU/ZUKJTVw3DLZSVGlveWzrhvo4GduUbQScJeICRDN8tdo.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/_w/_w2qaD3e5UPMGQeZYpP481jnQLVeIXIVH2vQx2856QY.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/dg/dg8xDUB026KlWVbRE1h_SZ6gEPR6g81HrTkUIimQzqc.cache +3 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/eX/eXRXZi-sk9Oy17fc94B24coFT6Jn93gCZI0SahPx7U4.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/ey/eyQx5cIdM2CoBrdF3izBgEAY4OxjhcWr4O4xz132au8.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/fW/fWunpu-z9IEGhI1uwayT47VSyYTtQkphog4WkrSKAiw.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/gB/gBgBWy2c1z2A2HykdtIz7OYGnHIRDzbk092kh5b6jaE.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/gv/gvq1z6PDRE8gMtaUq2in1i3UzX2ALHQQDyu4rktAnlM.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/hA/hAQloq4iFKlI32gRuBj7Qw-S3_fk622RHC7B3bKQcGM.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/j3/j3r-jelmETDRd-G19KKXI0QM5g991nlcbUwXBnRnNQE.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/k1/k1S4UmDyDiVdoVjxFVnT7PjryGZlRLlg6Rbiv263PC8.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/kX/kXwRD1nb3DhVhF7hOQ5XyWT3MbPg9czHAQgVjCGZ4mc.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/kb/kbxkYCk1EgNiJrtaLBYcKjpLawXPyY26vtsvLwAGuRs.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/lG/lGngG8GuW7NOMaJJjbCUpaUmPukNz5qTAuDFKUeQGD8.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/mE/mE5ux5CqyC__7A31roQaIrItQDaC4e3O1ccQpHEzf3A.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/mf/mfGViGcXdNxYP-Fj1h1q2YL8V4R9hdRw-pbcz44ykGo.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/n_/n_AnmncFkjyQrNIMt47ODfSQL8Ah5cY4UKW1IThyYyg.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/ne/nehoEMwTN_YXNZspteBmbCj-55v4o0wq_nnFJCPVtUk.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/nf/nfLIHBgXq65X45t_2QaQM3smByR8wIxjzXL0A1bb9NU.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/pF/pFK-AXLRfIZQbNkoSeGwKVKqJtkz_-WxAlFUbspYW3o.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/q8/q8cA8tJbgodCWeH8qLt9pac6Ig-wK4v5aiJ6VV6-bHw.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/sD/sDQm06qCaywVxzpOwjngjtCXxSMXqwixf0n0xD0IHHw.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/sb/sbdra4MXru4fxHN_jrd3o4d3VFPFyG3lI247mddfTUk.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/w7/w7U6DzTbVwmZ8JqXhirzDvr-HGtiCEIpNHRQtLc7M68.cache +2 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/wd/wdx03MG0LBtOSdemZvED30U1i-V5s75E7207MC6TGTI.cache +0 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/yL/yLiDuY3PPQgAmxWaulR4bejdG-_VXuSIqbmkWlntOys.cache +3 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/yb/ybRqqIyo6H-rkIwoBZp14cENSoSgyZqa1XAUKLV1zpk.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/cache/assets/sprockets/v3.0/yj/yjlHOIhrAzNkiA_SiyRZKIkEwaC0rktB1TVequSKqjc.cache +1 -0
- data/sample-apps/timeline-events-app/tmp/development_secret.txt +1 -0
- data/sample-apps/timeline-events-app/tmp/restart.txt +0 -0
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +1 -4
- metadata +283 -2
@@ -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 (7.3.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.1)
|
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,30 @@
|
|
1
|
+
# HubSpot-ruby sample app
|
2
|
+
|
3
|
+
# HubSpot-ruby timeline-events sample app
|
4
|
+
|
5
|
+
This is a sample app for the [hubspot-ruby SDK](../../../../../). Currently, this app focuses on demonstrating the functionality of [Timeline Events API](https://developers.hubspot.com/docs-beta/crm/timeline) endpoints and their related actions.
|
6
|
+
|
7
|
+
Please see the documentation on [Creating an app in HubSpot](https://developers.hubspot.com/docs-beta/creating-an-app)
|
8
|
+
### HubSpot Public API links used in this application
|
9
|
+
|
10
|
+
- [Search for contacts](https://developers.hubspot.com/docs-beta/crm/contacts)
|
11
|
+
- [Create event template](https://developers.hubspot.com/docs-beta/crm/timeline)
|
12
|
+
- [Create timeline event](https://developers.hubspot.com/docs-beta/crm/timeline)
|
13
|
+
|
14
|
+
|
15
|
+
### Setup App
|
16
|
+
|
17
|
+
Make sure you have [Docker Compose](https://docs.docker.com/compose/) installed.
|
18
|
+
|
19
|
+
### Configure
|
20
|
+
|
21
|
+
1. Copy .env.template to .env
|
22
|
+
2. Specify authorization data in .env:
|
23
|
+
- Paste HUBSPOT_CLIENT_ID and HUBSPOT_CLIENT_SECRET for OAuth
|
24
|
+
|
25
|
+
### Running
|
26
|
+
|
27
|
+
The best way to run this project (with the least configuration), is using docker compose. Change to the webroot and start it
|
28
|
+
|
29
|
+
```bash docker-compose up --build web```
|
30
|
+
You should now be able to navigate to [http://localhost:3000](http://localhost:3000) and use the application.
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
|
5
|
+
// vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require rails-ujs
|
14
|
+
//= require activestorage
|
15
|
+
//= require_tree .
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// Action Cable provides the framework to deal with WebSockets in Rails.
|
2
|
+
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
|
3
|
+
//
|
4
|
+
//= require action_cable
|
5
|
+
//= require_self
|
6
|
+
//= require_tree ./channels
|
7
|
+
|
8
|
+
(function() {
|
9
|
+
this.App || (this.App = {});
|
10
|
+
|
11
|
+
App.cable = ActionCable.createConsumer();
|
12
|
+
|
13
|
+
}).call(this);
|
File without changes
|
@@ -0,0 +1,171 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
6
|
+
* vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
16
|
+
|
17
|
+
.wrapper .container {
|
18
|
+
padding-bottom: 2rem;
|
19
|
+
padding-top: 2rem;
|
20
|
+
}
|
21
|
+
|
22
|
+
.navigation {
|
23
|
+
background: #f4f5f6;
|
24
|
+
border-bottom: .1rem solid #d1d1d1;
|
25
|
+
display: block;
|
26
|
+
height: 5.2rem;
|
27
|
+
left: 0;
|
28
|
+
max-width: 100%;
|
29
|
+
width: 100%;
|
30
|
+
}
|
31
|
+
|
32
|
+
.navigation .container {
|
33
|
+
padding-bottom: 0;
|
34
|
+
padding-top: 0
|
35
|
+
}
|
36
|
+
|
37
|
+
.navigation .navigation-list {
|
38
|
+
list-style: none;
|
39
|
+
margin-bottom: 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
.navigation .navigation-item {
|
43
|
+
float: left;
|
44
|
+
margin-bottom: 0;
|
45
|
+
margin-left: 2.5rem;
|
46
|
+
position: relative
|
47
|
+
}
|
48
|
+
|
49
|
+
.navigation .navigation-title, .navigation .title {
|
50
|
+
color: #606c76;
|
51
|
+
position: relative
|
52
|
+
}
|
53
|
+
|
54
|
+
.navigation .navigation-link, .navigation .navigation-title, .navigation .title {
|
55
|
+
display: inline;
|
56
|
+
font-size: 1.6rem;
|
57
|
+
line-height: 5.2rem;
|
58
|
+
padding: 0;
|
59
|
+
text-decoration: none
|
60
|
+
}
|
61
|
+
|
62
|
+
.navigation .navigation-link.active {
|
63
|
+
color: #606c76
|
64
|
+
}
|
65
|
+
|
66
|
+
.error-wrapper .result {
|
67
|
+
color: white;
|
68
|
+
background-color: red;
|
69
|
+
}
|
70
|
+
|
71
|
+
input[type=datetime-local] {
|
72
|
+
width: 100%;
|
73
|
+
height: 3.8rem;
|
74
|
+
padding: .6rem 1.0rem;
|
75
|
+
}
|
76
|
+
|
77
|
+
h3.alert-success {
|
78
|
+
text-align: center;
|
79
|
+
}
|
80
|
+
|
81
|
+
.delete-button {
|
82
|
+
margin-bottom: 0;
|
83
|
+
float: right;
|
84
|
+
margin-right: 20px;
|
85
|
+
}
|
86
|
+
|
87
|
+
.delete-button input {
|
88
|
+
margin-bottom: 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
pre {
|
92
|
+
line-height: 0.7;
|
93
|
+
}
|
94
|
+
|
95
|
+
pre p {
|
96
|
+
margin: 0;
|
97
|
+
margin-left: 5px;
|
98
|
+
}
|
99
|
+
|
100
|
+
.alert {
|
101
|
+
padding: 20px;
|
102
|
+
background-color: #f7786f;
|
103
|
+
color: white;
|
104
|
+
margin-bottom: 15px;
|
105
|
+
}
|
106
|
+
|
107
|
+
.closebtn {
|
108
|
+
margin-left: 15px;
|
109
|
+
color: white;
|
110
|
+
font-weight: bold;
|
111
|
+
float: right;
|
112
|
+
font-size: 22px;
|
113
|
+
line-height: 20px;
|
114
|
+
cursor: pointer;
|
115
|
+
transition: 0.3s;
|
116
|
+
}
|
117
|
+
|
118
|
+
.closebtn:hover {
|
119
|
+
color: black;
|
120
|
+
}
|
121
|
+
|
122
|
+
.template-form {
|
123
|
+
padding: 0 15%;
|
124
|
+
}
|
125
|
+
|
126
|
+
.textarea {
|
127
|
+
height: 150px;
|
128
|
+
}
|
129
|
+
|
130
|
+
.form-groups {
|
131
|
+
width: 580px;
|
132
|
+
}
|
133
|
+
|
134
|
+
#event_template_email, #event_template_header_template,
|
135
|
+
#event_template_detail_template, #event_template_target_record_type {
|
136
|
+
background-color: #f5f8fa;
|
137
|
+
}
|
138
|
+
|
139
|
+
.textarea:focus, #event_template_email:focus {
|
140
|
+
border-color: rgba(0,208,228,.5);
|
141
|
+
box-shadow: 0 0 4px 1px rgba(0,208,228,.3),0 0 0 1px #00d0e4;
|
142
|
+
}
|
143
|
+
|
144
|
+
.textarea::placeholder, #event_template_email::placeholder {
|
145
|
+
opacity: 1;
|
146
|
+
font-family: Helvetica, Arial, sans-serif;
|
147
|
+
font-weight: 400;
|
148
|
+
color: #7c98b6;
|
149
|
+
}
|
150
|
+
|
151
|
+
.contacts-iframe {
|
152
|
+
height: 700px;
|
153
|
+
width: 100%;
|
154
|
+
position:relative;
|
155
|
+
}
|
156
|
+
|
157
|
+
.contacts-iframe iframe {
|
158
|
+
border: none;
|
159
|
+
position:absolute;
|
160
|
+
width:1080px;
|
161
|
+
height:900px;
|
162
|
+
}
|
163
|
+
|
164
|
+
pre {
|
165
|
+
border-left: 0.3rem solid #ff7a59;
|
166
|
+
}
|
167
|
+
|
168
|
+
input[type=submit] {
|
169
|
+
background-color: #ff7a59;
|
170
|
+
border-color: #ff7a59;
|
171
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class ApplicationController < ActionController::Base
|
2
|
+
include ExceptionHandler
|
3
|
+
|
4
|
+
before_action :check_env_variables
|
5
|
+
|
6
|
+
private
|
7
|
+
|
8
|
+
def check_env_variables
|
9
|
+
missing_vars = %w[HUBSPOT_CLIENT_ID HUBSPOT_CLIENT_SECRET].select { |var| ENV[var].blank? }
|
10
|
+
raise(ExceptionHandler::HubspotError.new, "Please specify #{missing_vars.join(', ')} in .env") if missing_vars.present?
|
11
|
+
end
|
12
|
+
end
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Oauth
|
2
|
+
class AuthorizationController < ApplicationController
|
3
|
+
def authorize
|
4
|
+
url = Services::Authorization::GetAuthorizationUri.new(request: request).call
|
5
|
+
redirect_to url
|
6
|
+
end
|
7
|
+
|
8
|
+
def callback
|
9
|
+
session[:tokens] = Services::Authorization::Tokens::Generate.new(
|
10
|
+
code: params[:code],
|
11
|
+
request: request
|
12
|
+
).call
|
13
|
+
Services::Authorization::AuthorizeHubspot.new(tokens: session[:tokens]).call
|
14
|
+
redirect_to root_path
|
15
|
+
end
|
16
|
+
|
17
|
+
def login;end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
class TimelineEventsController < ApplicationController
|
2
|
+
before_action :authorize
|
3
|
+
|
4
|
+
def index
|
5
|
+
return unless params[:contact_id]
|
6
|
+
|
7
|
+
@contacts_url = 'https://app.hubspot.com/contacts/' + ENV['HUBSPOT_PORTAL_ID'] +
|
8
|
+
'/contact/' + params[:contact_id]
|
9
|
+
end
|
10
|
+
|
11
|
+
def create
|
12
|
+
if email_valid?
|
13
|
+
template = Services::Hubspot::Timeline::CreateTemplate.new(template_params).call
|
14
|
+
event = Services::Hubspot::Timeline::CreateEvent.new(template_params[:email], template.id).call
|
15
|
+
redirect_to root_path(contact_id: event.object_id)
|
16
|
+
else
|
17
|
+
redirect_to root_path, flash: { error: "Error: we can't find this email in your contacts list." }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def email_valid?
|
24
|
+
Services::Hubspot::Contacts::Search.new(email: template_params[:email]).call.present?
|
25
|
+
end
|
26
|
+
|
27
|
+
def template_params
|
28
|
+
params.require(:event_template).permit(:email, :target_record_type, :header_template, :detail_template)
|
29
|
+
end
|
30
|
+
|
31
|
+
def authorize
|
32
|
+
redirect_to login_path and return if session['tokens'].blank?
|
33
|
+
|
34
|
+
session['tokens'] = Services::Authorization::Tokens::Refresh.new(tokens: session['tokens'], request: request).call
|
35
|
+
Services::Authorization::AuthorizeHubspot.new(tokens: session['tokens']).call
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Services
|
2
|
+
module Authorization
|
3
|
+
class GetAuthorizationUri
|
4
|
+
CALLBACK_PATH = '/oauth/callback'.freeze
|
5
|
+
|
6
|
+
def initialize(request:)
|
7
|
+
@request = request
|
8
|
+
end
|
9
|
+
|
10
|
+
def call
|
11
|
+
check_presence_of_credentials
|
12
|
+
|
13
|
+
::Hubspot::OAuthHelper.authorize_url(
|
14
|
+
client_id: ENV['HUBSPOT_CLIENT_ID'],
|
15
|
+
redirect_uri: redirect_uri,
|
16
|
+
scope: %w[contacts]
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def redirect_uri
|
23
|
+
@request.protocol + @request.host_with_port + CALLBACK_PATH
|
24
|
+
end
|
25
|
+
|
26
|
+
def check_presence_of_credentials
|
27
|
+
return if ENV['HUBSPOT_CLIENT_ID'].present?
|
28
|
+
|
29
|
+
raise(ExceptionHandler::HubspotError.new, 'Please specify HUBSPOT_CLIENT_ID in .env')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|