for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File: CampaignDeleteHandler.php
*
* @author Maciej Sławik <[email protected]>
* Github: https://github.com/maciejslawik
*/
namespace MSlwk\FreshMail\Handler\Campaign;
use MSlwk\FreshMail\Handler\AbstractHandler;
* Class CampaignDeleteHandler
* @package MSlwk\FreshMail\Handler\Campaign
class CampaignDeleteHandler extends AbstractHandler
{
const API_ENDPOINT = '/rest/campaigns/delete';
* @param string $campaignHash
* @return null
public function deleteCampaign(
string $campaignHash
) {
$getParameters = [];
$postParameters = [
'hash' => $campaignHash
];
$this->processRequest($getParameters, $postParameters);
return null;
}
* @return string
protected function getApiEndpoint(): string
return self::API_ENDPOINT;