Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an application that is used for logging the employees to the vmware desktop. Our company uses Google mail for email with our company domain name. Now , what I want to do is grab the username and password from that application (which was written in C#) and use it to login to google drive without interfering the user experience. So far, I tried using Process() class to open google drive and SendKeys() method to fill the email and password form for them. However, I have not been able to do this whole process in a background. Is there any way to open google drive and run it in background and fill the form? Any help will be greatly appreciated. Thanks.
Posted
Comments
joshrduncan2012 6-Aug-13 14:56pm    
Have you checked for a google api on their website?
Ashley_H 8-Aug-13 2:36am    
As far as I know Google removed the ability to pragmatically log into their web services using a username and password in a previous version of the API (I may be wrong however). You now have to use .NET OAuth2 access tokens in conjunction with the GoogleDrive API to access to a users account.

https://developers.google.com/drive/examples/dotnet

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900