Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link

Description

@lucasfen
Issue body actions

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.

When utilizing the code it reproduces this url:

https://api.sendgrid.com/v3/categories/stats?start_date=2021-09-01&categories=Promotions%26Survey&limit=500&aggregated_by=day

When it should be producing this url:

https://api.sendgrid.com/v3/categories/stats?start_date=2021-09-01&categories=Promotions&categories=Survey&limit=500&aggregated_by=day

And I found the same problem mentioned in below issue had been fixed in python client
sendgrid/sendgrid-python#186.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.