GoogleClientPlugin
GoogleClientPlugin copied to clipboard
How to interact with Google Drive after log in?
Thank you for your great Plugin! How to interact with Google Drive after log in?
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!
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!