/** * Get sends for a campaign * @param string $accessToken - Constant Contact OAuth2 access token * @param mixed $emailCampaign - Campaign id or Campaign object itself * @param mixed $param - either the next link from a previous request, or a limit or restrict the page size of * an initial request * @return TrackingActivity - Containing a results array of {@link Ctct\Components\CampaignTracking\SendActivity} */ public function getEmailCampaignSends($accessToken, $campaign, $param = null) { $campaignId = $this->getArgumentId($campaign, 'Campaign'); $param = $this->determineParam($param); return $this->campaignTrackingService->getSends($accessToken, $campaignId, $param); }
/** * Get sends for a campaign * @param string $accessToken - Constant Contact OAuth2 access token * @param mixed $campaign - Campaign id or Campaign object itself * @param mixed $params - associative array of query parameters and values to append to the request. * Allowed parameters include: * limit - Specifies the number of results displayed per page of output, from 1 - 500, default = 50. * created_since - Used to retrieve a list of events since the date and time specified (in ISO-8601 format). * next - the next link returned from a previous paginated call. May only be used by itself. * @return ResultSet - Containing a results array of {@link Ctct\Components\Tracking\SendActivity} */ public function getEmailCampaignSends($accessToken, $campaign, array $params = array()) { $campaignId = $this->getArgumentId($campaign, 'Campaign'); return $this->campaignTrackingService->getSends($accessToken, $campaignId, $params); }