src/Services/CampaignDraftService.php
public function createDetailContent($id, $contentData)
    {
        $response = $this->mailjet->post(Resources::$CampaigndraftDetailcontent,
            ['id' => $id, 'body' => $contentData]);
        if (!$response->success()) {
            $this->throwError("CampaignDraftService:createDetailContent failed",
                $response);
        }

        return $response->getData();
    }
public function createDetailContent($id, $contentData)
    {
        $response = $this->mailjet->post(Resources::$CampaigndraftDetailcontent,
            ['id' => $id, 'body' => $contentData]);
        if (!$response->success()) {
            $this->throwError("CampaignDraftService:createDetailContent failed",
                $response);
        }

        return $response->getData();
    }
public function createDetailContent ( $ id , $ contentData ) { $ response = $ this -> mailjet -> post ( Resources :: $ CampaigndraftDetailcontent , [ 'id' => $ id , 'body' => $ contentData ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "CampaignDraftService:createDetailContent failed" , $ response ) ; } return $ response -> getData ( ) ; }
Creates the content of a  campaigndraft
@param string $id
@return array
Creates the content of a campaigndraft