src/XQueue/Maileon/API/MarketingAutomation/MarketingAutomationService.php
public function startMarketingAutomationProgram($programId, $emails) {
		$urlProgramId = urlencode($programId);

		if (!empty($emails)) {
			if (is_array($emails)) {
				$bodyContent['emails'] = $emails;
			} else {
				$bodyContent['emails'] = array($emails);
			}
		}


		return $this->post("marketing-automation/$urlProgramId", json_encode($bodyContent), array(), "application/json");
	}
public function startMarketingAutomationProgram($programId, $emails) {
		$urlProgramId = urlencode($programId);

		if (!empty($emails)) {
			if (is_array($emails)) {
				$bodyContent['emails'] = $emails;
			} else {
				$bodyContent['emails'] = array($emails);
			}
		}


		return $this->post("marketing-automation/$urlProgramId", json_encode($bodyContent), array(), "application/json");
	}
Creates a new mailing.
@param int $programId

@param string $email

@return \em com_maileon_api_MaileonAPIResult
the result of the operation