sendgrid / sendgrid-java

The Official Twilio SendGrid Led, Community Driven Java API Library
https://sendgrid.com
MIT License
485 stars 409 forks source link

Cannot submit multiple categories to Categories Statistics #701

Closed lucasfen closed 3 years ago

lucasfen commented 3 years ago

When using the client to get statistics for categories, it's not possible to submit multiple categories. Steps to Reproduce

SendGrid sg = new SendGrid(sendGridApiKey);
Request request = new Request();
request.setMethod(Method.GET);
request.setEndpoint("categories/stats");
request.addQueryParam("aggregated_by", "day");
request.addQueryParam("start_date", "2021-09-06");;
request.addQueryParam("categories", "category1&category2");
Response response = sg.api(request);

The above code makes a GET to this URL. Sendgrid returns a 404 for this request.

lucasfen commented 3 years ago

1631186291707_6017DA2E-223D-4a40-81DD-18D973F798CD

JenniferMah commented 3 years ago

Hi @lucasfen, Thanks for submitting a GitHub issue! We are very sorry that you are running into this problem. In order to better serve you, as this does not present itself as a library specific issue, we would like to ask that you reach out to our support team at support.sendgrid.com.

Thank you!