Skip to content

Commit 50a9148

Browse files
authored
qsStringifyOptions example in USAGE.md doesn't work. Use the qs package together with the paramsSerializer option instead.
1 parent 0bb5970 commit 50a9148

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/client/USAGE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,8 @@ client
12081208

12091209
```javascript
12101210
const client = require('@sendgrid/client')
1211-
client.setDefaultRequest('qsStringifyOptions', {arrayFormat: 'repeat'});
1211+
const qs = require('qs')
1212+
client.setDefaultRequest('paramsSerializer', (params) => qs.stringify(params, {arrayFormat: 'repeat'}));
12121213

12131214
const request = {}
12141215
const queryParams = {

0 commit comments

Comments
 (0)