Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find a way (or documentation) to add custom middleware #560

Open
nicolasmondain opened this issue Nov 14, 2024 · 1 comment
Open

Comments

@nicolasmondain
Copy link

Hello,
By using the hubspot-api-nodejs, is there any way to add our own middleware (when initializing the hubspot Client)? I cannot find any answer by reading the documentation
By reading and testing the code, it seems that the property config.middleware (IConfiguration parameter used when creating a new Client) will be always overwritten by ApiClientConfigurator.getParams... (static getMiddleware creates an array fromgetHeaderMiddleware and getHttpAgentMiddleware) without our config.middleware option.
Do I miss something? :(
Thanks!

nicolasmondain added a commit to nicolasmondain/hubspot-api-nodejs that referenced this issue Nov 14, 2024
nicolasmondain added a commit to nicolasmondain/hubspot-api-nodejs that referenced this issue Nov 14, 2024
@nicolasmondain
Copy link
Author

Pull request: #561

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant