從意義上說,我想上傳一些文件驅動器。授權谷歌API客戶端使用電子郵件和密碼,而不是帳戶電話彈出
現在上傳東西,通過Android應用程序開車,我需要授權與應用程序的谷歌帳戶。 Google API客戶端提供彈出式選項,並存儲在手機中。
現在我想授權使用恆定電子郵件ID和密碼的應用程序,用戶可以不同,但上傳的文件會上傳到我的帳戶。
谷歌的API彈出客戶端代碼片段:
GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(Drive.API)
.addScope(Drive.SCOPE_FILE)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
我想用電子郵件ID和密碼授權。
請幫助我通過這個,因爲我是新的谷歌驅動器應用程序。
類似問題http://stackoverflow.com/questions/27659723/how-to-upload-xlsx-files-to-my-own-google-drive-then-convert-them-to-google- spr/27662555#27662555和http://stackoverflow.com/questions/27541574/how-to-make-the-google-drive-java-sdk-read-from-write-to-my-drive-and-not-一些/ 27545330#27545330 – pinoyyid