From 50a9148d71b6cf2149a65da00deaede5114e194e Mon Sep 17 00:00:00 2001 From: Amose <110259363+AmoseCP@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:35:41 -0500 Subject: [PATCH] qsStringifyOptions example in USAGE.md doesn't work. Use the qs package together with the paramsSerializer option instead. --- packages/client/USAGE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/USAGE.md b/packages/client/USAGE.md index 3994d2e3b..3cdb50cae 100644 --- a/packages/client/USAGE.md +++ b/packages/client/USAGE.md @@ -1208,7 +1208,8 @@ client ```javascript const client = require('@sendgrid/client') -client.setDefaultRequest('qsStringifyOptions', {arrayFormat: 'repeat'}); +const qs = require('qs') +client.setDefaultRequest('paramsSerializer', (params) => qs.stringify(params, {arrayFormat: 'repeat'})); const request = {} const queryParams = {