1
我想在将文件更新到驱动器时检测到冲突。要做到这一点,it seems I have to set the If-Match
header。在驱动器请求中设置HTTP标头
目前,我与这一个班轮更新文档到谷歌驱动器:
mDriveFile = mService.files().update(mDriveFile.getId(), mDriveFile, byteContent).execute();
什么是添加If-Match
头在请求中最简单的方法是什么? Example in Files: update documentation不会告诉如何设置HTTP标头。