File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -172,18 +172,18 @@ Sheri(endpoint, options).then(r => console.log(r)) // Returns the response
172172
173173Additionally, each module allows you to pass in API options to customise your experience a tad more.
174174``` javascript
175- var options = {
176- // Allows you to pass in a token through the authorization header
177- token: " OGhZVFNVRms6OGhZVFNVRms=" ,
178- // The exact same as `token`
179- auth,
180- // Use your own custom user agent. User agent will always default to your Node.js version and OS name if no agent is provided
181- agent: ' My Progamme, contact@example.com' ,
182- // Allows you to apply your own axios options whenever axios is used.
183- axiosOptions: {
184- // Sets a specific amount of time in milliseconds that axios will wait until the requested server responds.
185- timeout: 1000
186- // You can find other axios options at https://github.com/axios/axios#request-config
187- }
175+ var options = {
176+ // Allows you to pass in a token through the authorization header
177+ token: " OGhZVFNVRms6OGhZVFNVRms=" ,
178+ // The exact same as `token`
179+ auth,
180+ // Use your own custom user agent. User agent will always default to your Node.js version and OS name if no agent is provided
181+ agent: ' My Progamme, contact@example.com' ,
182+ // Allows you to apply your own axios options whenever axios is used.
183+ axiosOptions: {
184+ // Sets a specific amount of time in milliseconds that axios will wait until the requested server responds.
185+ timeout: 1000
186+ // You can find other axios options at https://github.com/axios/axios#request-config
188187 }
188+ }
189189```
You can’t perform that action at this time.
0 commit comments