Beispiel #1
0
 public HttpWebRequest UploadDataAsync(Uri address, FormBuilder form, RequestCompletedEventHandler complete)
 {
     return UploadDataAsync(address, form.ContentType, form.GetBytes(), complete);
 }
Beispiel #2
0
        public void Login(String email, String password)
        {
            Dictionary<String, String> fields = new Dictionary<String, String>
            {
                {"service", "sj"},
                {"Email",  email},
                {"Passwd", password},
            };

            FormBuilder form = new FormBuilder();
            form.AddFields(fields);
            form.Close();

            ConnectionClient.UploadDataAsync(new Uri("https://www.google.com/accounts/ClientLogin"), form.ContentType, form.GetBytes(),  GetAuthTokenComplete);
        }