Search code examples
asp.net-mvcparametersgoogle-contacts-api

Google contacts service Contact query OrderBy parameter values


I am using google contacts service with .net mvc and I want to load 100 most contacted persons with ContactQuery.NumberToRetrieve and ContactQuery.OrderBy. what should I set to OrderBy to make it work? thanks a lot


Solution

  • query.OrderBy = "lastmodified";
    query.SortOrder = "descending";
    query.NumberToRetrieve = 1000 //Convert.ToInt32(ConfigurationManager.AppSettings["NumberToRetrieve"]);