我必须实现一个将文件上传到Google云端硬盘的功能。如QuickStart指导。首先,我调用generateLinkAuth来生成链接以获取代码。然后会执行generateCode获取token。一切都很好。ListSCOPES=Arrays.asList("https://www.googleapis.com/auth/drive.file","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile",DriveScopes.DRIVE);pu