using Google.GData.Contacts; using Google.GData.Client; using Google.GData.Extensions; using Google.Contacts;
public static DataSet GetGmailContacts(string App_Name, string Uname, string UPassword) { DataSet ds = new DataSet(); DataTable dt = new DataTable(); DataColumn C2 = new DataColumn(); C2.DataType = Type.GetType("System.String"); C2.ColumnName = "EmailID"; dt.Columns.Add(C2); RequestSettings rs = new RequestSettings(App_Name, Uname, UPassword); rs.AutoPaging = true; ContactsRequest cr = new ContactsRequest(rs); Feed<contact> f = cr.GetContacts(); foreach (Contact t in f.Entries) { foreach (EMail email in t.Emails) { DataRow dr1 = dt.NewRow(); dr1["EmailID"] = email.Address.ToString(); dt.Rows.Add(dr1); } } ds.Tables.Add(dt); return ds; }
<br /> Execution of request returned unexpected result: http://www.google.com/m8/feeds/contacts/default/fullMovedPermanently</contact>
Quote:You need to update Google DLL. Only https:// (SSL) works from 01/march/2014
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)