androidthings / sample-googleassistant

Google Assistant API sample for Android Things
Apache License 2.0
467 stars 147 forks source link

How to get R.raw.credentials #19

Closed yatindeokar closed 7 years ago

yatindeokar commented 7 years ago

How to get Credentials file ;

JonathanNakhla commented 7 years ago

Follow these steps: https://github.com/androidthings/sample-googleassistant#run-the-sample

proppy commented 7 years ago

I believe @JonathanNakhla answered the question, let us know if you have any issues generate the credential resource.

AlexKorovyansky commented 7 years ago

Got the same confusion for a second, because --credentials looks as an input parameter, while it's used for output and credentials.json will be generated within res/raw folder by that command:

google-oauthlib-tool --client-secrets client_secret_NNNN.json \
                     --credentials app/src/main/res/raw/credentials.json \
                     --scope https://www.googleapis.com/auth/assistant-sdk-prototype \
                     --save
proppy commented 7 years ago

@AlexKorovyansky yep, it'd be better to rename/alias the parameter to --save-credentials, can you file an issue in https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib ?

proppy commented 7 years ago

@AlexKorovyansky Done :)