APIv3-nodejs-library icon indicating copy to clipboard operation
APIv3-nodejs-library copied to clipboard

GetEmailCampaign with empty recipients and statistics

Open maxbraeutigam opened this issue 3 years ago • 3 comments

Hi all, if I am calling get_email_campaign() I am expecting an instance of GetEmailCampaign with recipients and statistics. According to the mentioned docs these should be of type GetSmsCampaignRecipients, which has no properties at all. Before, it had a property lists, which was an array of list ids associated with the campaign.

Where do I get an array of list ids for a CampaignId from?

maxbraeutigam avatar Apr 21 '22 14:04 maxbraeutigam

This is the same bug as already reported and not fixed for the Ruby API. https://github.com/sendinblue/APIv3-ruby-library/issues/54

maxbraeutigam avatar Apr 21 '22 14:04 maxbraeutigam

Minimal example:

console.log(`Get campaignId: 649`);
let emailCampaignsApi = new SibApiV3Sdk.EmailCampaignsApi();
let ret = await emailCampaignsApi.getEmailCampaign(649);
console.log(ret.recipients);

Returns:

Get campaignId: 649
exports {}

maxbraeutigam avatar Apr 21 '22 14:04 maxbraeutigam

Hi @maxbraeutigam We are close to releasing a new version of our SDKs and we would try to fix this issue as well. We will keep you updated.

shubhamUpadhyayInBlue avatar Apr 05 '23 11:04 shubhamUpadhyayInBlue