2

i am trying the command line demo application of google drive available at here. i have followed all the steps for creating a new project in google api console, and then downloaded client_secret.json file. after importing and running the project i got the nullpointer exception. after few hours of research i realize that exeption occurs because there is no client_secret available in client_secret.json file.

here is the image of my client_secret.json that i've downloaded. in which client_secret field is missing.

enter image description here

and i got the exception at

enter image description here

can someone please help me what mistake i've done here. from where do i get the client_secret. any help will be appreciated. thanks.

4

1 に答える 1

2

Google ドライブ SDK ドキュメントの Java クイックスタート サンプルに従って、ドライブにファイルをアップロードするコマンドライン Java アプリを作成してみてください。

https://developers.google.com/drive/quickstart-java

于 2013-02-20T21:30:16.160 に答える