src/Services/CampaignDraftService.php
public function getAllCampaignDrafts(array $filters = null)
    {
        $response = $this->mailjet->get(Resources::$Campaigndraft,
            ['filters' => $filters]);
        if (!$response->success()) {
            $this->throwError("CampaignDraftService :getAllCampaignDrafts() failed",
                $response);
        }

        return $response->getData();
    }
public function getAllCampaignDrafts(array $filters = null)
    {
        $response = $this->mailjet->get(Resources::$Campaigndraft,
            ['filters' => $filters]);
        if (!$response->success()) {
            $this->throwError("CampaignDraftService :getAllCampaignDrafts() failed",
                $response);
        }

        return $response->getData();
    }
public function getAllCampaignDrafts ( array $ filters = null ) { $ response = $ this -> mailjet -> get ( Resources :: $ Campaigndraft , [ 'filters' => $ filters ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "CampaignDraftService :getAllCampaignDrafts() failed" , $ response ) ; } return $ response -> getData ( ) ; }
List campaigndraft resources available for this apikey
@return array
List campaigndraft resources available for this apikey