Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to interact with Google Drive after log in? #32

Open
nguyenthanhliemfc opened this issue Mar 24, 2019 · 2 comments
Open

How to interact with Google Drive after log in? #32

nguyenthanhliemfc opened this issue Mar 24, 2019 · 2 comments

Comments

@nguyenthanhliemfc
Copy link

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

@nguyenthanhliemfc
Copy link
Author

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!

@wenjunsun
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants