Skip to content

Commit

Permalink
Add campaign stats endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlapi authored May 18, 2020
1 parent fef78f8 commit 9ce713b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Ecomail.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,17 @@ public function sendCampaign($campaign_id){
$url = $this->joinString('campaign/', $campaign_id, '/send');
return $this->get($url);
}

/**
* Získejte statistiku odeslané kampaně.
*
* @param int $campaign_id ID kampaně
* @return array|stdClass|string
*/
public function getCampaignStats($campaign_id){
$url = $this->joinString('campaigns/', $campaign_id, '/stats');
return $this->get($url);
}


// === Reports ===
Expand Down

0 comments on commit 9ce713b

Please sign in to comment.