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

Sendgrid java client not returning filtered results based on "to_email" query param #771

Open
schoolingtimes opened this issue Oct 25, 2024 · 0 comments

Comments

@schoolingtimes
Copy link

I need to fetch Email Activity using this Java client library. But in this particular case when I need to fetch email activity for "to_email" query param, it is not returning me the filtered results. Instead it is returning me results which are not filtered based on the "to_email" value. I have tried by adding extra params for time range query, etc. but no luck.
Same query when I try by calling directly the API (e.g. using curl or Postman) I get correct filtered results.
I am using the Jar file provided by Sendgrid in my Java 8 based project.

sg = new SendGrid(sendgridApiAccessKey)
request = new Request()
request.setMethod(Method.GET)
request.setEndpoint("messages")
request.addQueryParam("limit", "10")
request.addQueryParam("to_email", "[email protected]")
response = sg.api(request)
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