google / java-photoslibrary

Java client library for the Google Photos Library API
http://developers.google.com/photos
Apache License 2.0
108 stars 59 forks source link

How to grant permission access data don't need confirm on web interface when run on server command? #14

Closed hoangdangduy closed 5 years ago

hoangdangduy commented 5 years ago

@jfschmakeit When I run my application on Window OS I will can interact with UI to grant permission but I want run it on server only have command. Do you have way to by pass it ? Thanks!

QA1 QA2

jfschmakeit commented 5 years ago

The Google Photos Library API requires user OAuth credentials. Service accounts or other non-interactive credenials are not supported. You can find more details on the Authentication and Authorization page in the developer documentation.

The only way to obtain these credentials is to prompt the user via a URL to authorize access.