What I want to do:
What I have done so far:
Problem:
I'm having a hard time to figure this out.
Well this seems to be quite impossible as the credentials and access token are obtained from the user always and the new Google Drive SDK does not support to what you want. And O-Auth will also not support you as its against their policy of User Data Protection.
You could try a call like this, following the same process as in the Google Example commenting out the part where the viewController is pushed to the front
[webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('Email').value='ur.email@gmail.com';"];
[webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('Passwd').value='urPass';"];
[webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('signIn).click();"];
I glanced at the code for the google signin page and it gave these names for the text fields and for the "go" button
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.