GoogleClientPlugin icon indicating copy to clipboard operation
GoogleClientPlugin copied to clipboard

How to interact with Google Drive after log in?

Open nguyenthanhliemfc opened this issue 6 years ago • 2 comments

Thank you for your great Plugin! How to interact with Google Drive after log in?

nguyenthanhliemfc avatar Mar 24 '19 09:03 nguyenthanhliemfc

please give me sample parameter to access Drive API public static void Initialize( Activity activity, string serverClientId = null, string clientId = null, Api[] apis = null, string[] scopes = null) How to Download and Upload a file!

nguyenthanhliemfc avatar Mar 24 '19 09:03 nguyenthanhliemfc

Hello @nguyenthanhliemfc, I am using this login successfully for accessing data from Google Calendar API. I am not sure exactly how the Google Drive API works, but you need to pass in the your scopes into the string[] scopes as parameter so the sign in option will ask user for permission. As for requesting data from Drive API, please use accessToken from the CrossGoogleClient.Current.AccessToken. Please note that this accessToken disappears after logged in, so you best save it into the app parameter or something. Let me know if this helps!

wenjunsun avatar Jul 26 '20 21:07 wenjunsun