Currently, this app focuses on demonstrating the rate limit mechanism. It will be useful for you if you often reach rate limit (429 http error).
Please see the documentation on Creating an app in HubSpot
Make sure you have Docker Compose installed.
-
Copy .env.template to .env
-
Specify authorization data in .env:
- Paste HUBSPOT_CLIENT_ID and HUBSPOT_CLIENT_SECRET for OAuth
The best way to run this project (with the least configuration), is using docker compose. Change to the webroot and start it
docker-compose up -d --build
You should now be able to navigate to http://localhost:8999. Firstly you will need to authorize via OAuth there. Than you can to go to the terminal window and start the following command in the application root
docker-compose exec web php /app/src/console/example.php
Please note this app starts a few workers in order to reach rate limit faster.