This project implements a REST API for seamless integration with the HubSpot CRM platform. The API enables contact creation, OAuth authentication, and webhook processing for HubSpot events. Built with Java and Maven.
- Create and manage contacts in HubSpot CRM
- OAuth 2.0 authentication flow with HubSpot
- Webhook processing for real-time HubSpot events
- RESTful API design for easy integration
- Java 21
- Spring Boot
- Spring Security
- Maven
# Clone the repository
git clone https://github.com/yourusername/hubspot-integration.git
# Navigate to the project directory
cd hubspot-integration
# Build with Maven
mvn clean installModify the application.properties file in the src/main/resources directory:
# HubSpot Configuration
hubspot.client-id=your_client_id
hubspot.client-secret=your_client_secret
hubspot.redirect-uri=your_redirect_uri
# Server Configuration
server.port=8080
# Database Configuration
spring.datasource.url=jdbc:h2:mem:hubspotdb
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=user
spring.datasource.password=password
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.h2.console.enabled=true
spring.h2.console.path=/h2-consoleRun the application:
mvn spring-boot:runGET /api/auth/url- Initiate OAuth flow with HubSpotGET /api/auth/callback- Handle OAuth callback from HubSpot
POST /api/contacts- Create a new contact
POST /api/webhooks/contacts- Process incoming HubSpot events (contatcs)
For detailed documentation, motivations for the technology and possible future enhancements, see Documentation.