get-domain-statistics-report doen't work

0

Hi, I'm trying to make pinpointemail.getDomainStatisticsReport JS API method work but I'm getting an error

pinpoint
    .getDomainStatisticsReport({
      Domain: 'microapps.com ',
      StartDate: 1550059328,
      EndDate: 1550404838
    })
    .promise()
    .then(result => {
      console.log(result);
    });

Always returns BadRequestException: Start date must be specified.

I'v tried with ISO dates and unix timestamps.

AWS CLI method doesn't work either

aws pinpoint-email get-domain-statistics-report --domain microapps.com  --start-date 1547812823 --end-date 1550404838

Returns: An error occurred (500) when calling the GetDomainStatisticsReport operation (reached max retries: 4): Internal Server Error

已提問 5 年前檢視次數 210 次
1 個回答
0

Hello,

The domain statistics report is part of the Deliverability Dashboard feature of Amazon Pinpoint. Have you enabled the Deliverability Dashboard feature?

It's not clear from our documentation, but you have to enable the Deliverability Dashboard feature in order to run getDomainStatisticsReport. You can learn more about the Deliverability Dashboard at https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-deliverability-dashboard.html.

By the way, the API expects a Unix timestamp, but it appears that the CLI will accept an ISO 8601 formatted string and convert it appropriately.

I apologize for the omission. I'll make sure we get our documentation updated as soon as possible.

Thank you for using Amazon Pinpoint.

Brent @ AWS

AWS
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南