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

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

        return $response->getData();
    }
public function update ( $ id , ContactMetadata $ contactMetadata ) { $ response = $ this -> mailjet -> put ( Resources :: $ Contactmetadata , [ 'id' => $ id , 'body' => $ contactMetadata -> format ( ) ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "ContactMetadataManager:update() failed" , $ response ) ; } return $ response -> getData ( ) ; }
Update one ContactMetadata
@param int $id
@param ContactMetadata $contactMetadata
Update one ContactMetadata