sendinblue / APIv3-nodejs-library

SendinBlue's API v3 Node.js Library
ISC License
101 stars 47 forks source link

Transactional Emails API limit #90

Closed HaydenMacDonald closed 3 years ago

HaydenMacDonald commented 3 years ago

Hi,

I am getting the following Bad Request error returned from the API when I try to set the limit option in getEmailEventReport(opts) in TransactionalEmailsApi:

text: '{"code":"out_of_range","message":"Limit exceeds max value"}'

The documentation here notes the default value of limit is 50, but does not say what the max value is. What is the max value of limit for this function?

HaydenMacDonald commented 3 years ago

After some testing, I've found that the max value is 100.

shubhamUpadhyayInBlue commented 3 years ago

Hi @HaydenMacDonald

You got it right the max value is 100. Sorry, the max value was not mentioned in the api-doc. I will forward it as documentation improvement.

Thanks!