public function create(ContactMetadata $contactMetadata)
    {
        $response = $this->mailjet->post(Resources::$Contactmetadata, ['body' => $contactMetadata->format()]);
        if (!$response->success()) {
            $this->throwError("ContactMetadataManager:create() failed", $response);
        }

        return $response->getData();
    }
public function create(ContactMetadata $contactMetadata)
    {
        $response = $this->mailjet->post(Resources::$Contactmetadata, ['body' => $contactMetadata->format()]);
        if (!$response->success()) {
            $this->throwError("ContactMetadataManager:create() failed", $response);
        }

        return $response->getData();
    }
public function create ( ContactMetadata $ contactMetadata ) { $ response = $ this -> mailjet -> post ( Resources :: $ Contactmetadata , [ 'body' => $ contactMetadata -> format ( ) ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "ContactMetadataManager:create() failed" , $ response ) ; } return $ response -> getData ( ) ; }
create a new fresh ContactMetadata
@param ContactMetadata $contactMetadata
create a new fresh ContactMetadata