Skip to content

Sample App demonstrating the use of leaky bucket rate limiting for HubSpot API

License

Notifications You must be signed in to change notification settings

HubSpot/sample-apps-leaky-bucket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HubSpot Leaky bucket sample app

This is a sample app for the HubSpot client libraries. This app focuses on demonstrating the mechanism (Leaky Bucket) of avoiding of rate limits. It will be useful for you if you don't want to reach rate limit (429 http error).

How to run locally

  1. The first step is to create a HubSpot developer account. This is where you will create and manage HubSpot apps.
  2. Next create an app. On the "App info" tab, You will be prompted to fill out some basic information about your app. This includes name, description, logo, etc.
  3. Copy the .env.template file into a file named .env in the folder of the language you want to use. For example:
cp node/.env.template node/.env
  1. Paste your HubSpot API Key as the value for HUBSPOT_API_KEY in .env

  2. Follow the language instructions on how to run. For example, if you want to run the Node server:

cd node # there's a README in this folder with instructions
npm install
./bin/cli.js

Supported languages

About

Sample App demonstrating the use of leaky bucket rate limiting for HubSpot API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages