private static void GetContactsExample() { int pageNumber = 1; int pageSize = 15; ContactService contactService = new ContactService(Credentials); try { PagedContactCollection collection = contactService.GetContacts(pageNumber, pageSize); foreach (Contact item in collection.Contacts) { Console.WriteLine("Contact Id:{0}\nQuickname:{1}\n\n", item.Id, item.QuickName); } } catch (WebException ex) { Console.Write(ex.Message); } }
private static void GetContactsExample(EsendexCredentials credentials) { var contactService = new ContactService(credentials); try { var collection = contactService.GetContacts(_accountReference, PageIndex, PageSize); foreach (var item in collection.Contacts) { Console.WriteLine("\tContact Id:{0}\tQuickname:{1}", item.Id, item.QuickName); } } catch (WebException ex) { Console.Write(ex.Message); } }