google-signin / GoogleCredential

27 views
Skip to first unread message

pithon.philip...@gmail.com

unread,
Dec 7, 2015, 3:55:10 PM12/7/15
to Polymer
Hi!

I want to use signin for drive API


To work with Drive, I must have GoogleCredential object

If I use google-signin with offline propertie, it's ok :

example :
public String getRefreshToken(String code) throws IOException {
GoogleTokenResponse response = new GoogleAuthorizationCodeTokenRequest(new NetHttpTransport(),
new JacksonFactory(), clientid, clientsecret, code, redirectUrl).execute();
return response.getRefreshToken();
}


BUT... how get GoogleCredential without offline... for web applications ????
I can't find documentation

thank you in advance for your ideas !
Reply all
Reply to author
Forward
0 new messages