I am writing a Google app app app that stores data and has a web interface. I want ableto dump this data in a C # program. This means that I need to authenticate from the site (users must log in to view the data). How can I authenticate as follows? I tried to set credentials in WebClient, but I keep getting google login page.
WebClient client = new WebClient(); client.Credentials = new NetworkCredential("username", "password"); //should it be username@gmail.com ?? client.BaseAddress = "http://nosoperor-internal.appspot.com"; String s = client.DownloadString("/bank"); //s now contains the google login page, unfortunately
source share