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

Filtering activity by Recipient #64

Closed
Erikasc opened this issue Jan 27, 2023 · 1 comment
Closed

Filtering activity by Recipient #64

Erikasc opened this issue Jan 27, 2023 · 1 comment
Assignees

Comments

@Erikasc
Copy link

Erikasc commented Jan 27, 2023

Example from docs

const queryParams = {
  limit: 10, // Min: 10, Max: 100, Default: 25
  page: 2,
  date_from: 1443651141, // Unix timestamp
  date_to: 1443651141, // Unix timestamp
  event: [ActivityEventType.SENT, ActivityEventType.SOFT_BOUNCED]
}
mailerSend.email.activity.domain("domain_id", queryParams)
  .then((response) => console.log(response.body))
  .catch((error) => console.log(error));

possibilities of filtering

export interface ActivityQueryParams extends Pagination {
  date_from?: number;
  date_to?: number;
  event?: ActivityEventType[];
}
export interface Pagination {
  page?: number;
  limit?: number;
}

Would it be possible to filter through the api according to "Recipient" ?

@opheus2 opheus2 self-assigned this Feb 1, 2023
@opheus2
Copy link
Contributor

opheus2 commented Feb 2, 2023

Hey @Erikasc recipient filtering isn't available via the api.

@opheus2 opheus2 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2023
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

2 participants