Skip to content

Commit

Permalink
qsStringifyOptions example in USAGE.md doesn't work. Use the qs packa…
Browse files Browse the repository at this point in the history
…ge together with the paramsSerializer option instead.
  • Loading branch information
AmoseCP authored Dec 4, 2024
1 parent 0bb5970 commit 50a9148
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 50a9148

Please sign in to comment.