Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransactionalEmailsApi.getEmailEventReport returns missing_parameter for EndDate even though no StartDate was given #18

Open
LiFaytheGoblin opened this issue Apr 4, 2024 · 2 comments

Comments

@LiFaytheGoblin
Copy link

I am calling this function: https://github.com/getbrevo/brevo-node/blob/07cc1ff8d503a93f17c62535df61da4d1d42796a/api/transactionalEmailsApi.ts#L726C18-L726C37

Like this:
transactionalEmailsApi.getEmailEventReport(1, 0, null, null, 1, EMAIL, 'delivered', null, null, 21);

As such, I am leaving out some params that I don't need for the query. However, I receive {"code":"missing_parameter","message":"Start date is missing"}

Expected behavior: Since neither start date nor end date is given, I should not receive an error.

Node v20.11.1

@LiFaytheGoblin
Copy link
Author

Oh, when I provide start and end date, it next tells me that the message id is missing!

@LiFaytheGoblin
Copy link
Author

It looks like I can get what I want with getTransacEmailsList(email, templateId)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant