You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API response seems to behave counterintuitively. According to the documentation, providing the parameter "statistics" is optional. I guess this means everything should be included, or nothing.
However, when excluded, the response will include entries for all the statistics, but the data will be 0 (see below).
Additionally, if you include one of the "statistics parameters", for example url = "https://api.brevo.com/v3/emailCampaigns/263?statistics=globalStats", those statistics will be correct.
However, the keys for "linkStats" (including the correct links), "statsByDevice", and "statsByBrowser" are still included, but show the value 0. Conversely, "statsByDomain" is empty.
That means that if I wanted to grab all available statistics on a campaign, I would have to loop through the 5 parameters globalStats, linkStats, statsByDomain, statsByDevice, and statsByBrowser, and reassemble the data.
pasted from the "Try it!" segment on the referenced page above, no parameter for "statistics" selected:
I am trying to retrieve statistics on our Campaigns using the GetEmailCampaigns model, and I am trying to follow the example provided here: https://developers.brevo.com/reference/getemailcampaign
The API response seems to behave counterintuitively. According to the documentation, providing the parameter "statistics" is optional. I guess this means everything should be included, or nothing.
However, when excluded, the response will include entries for all the statistics, but the data will be 0 (see below).
Additionally, if you include one of the "statistics parameters", for example
url = "https://api.brevo.com/v3/emailCampaigns/263?statistics=globalStats"
, those statistics will be correct.However, the keys for "linkStats" (including the correct links), "statsByDevice", and "statsByBrowser" are still included, but show the value 0. Conversely, "statsByDomain" is empty.
That means that if I wanted to grab all available statistics on a campaign, I would have to loop through the 5 parameters globalStats, linkStats, statsByDomain, statsByDevice, and statsByBrowser, and reassemble the data.
pasted from the "Try it!" segment on the referenced page above, no parameter for "statistics" selected:
The response looks like this:
The text was updated successfully, but these errors were encountered: