Esempio n. 1
0
        static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += PrintUnhandledException;

            _client = GetSoapClient();

            byte[] contacts = GetContactsForImport();
            ApiContactImport contactImport = _client.ImportContactsToAddressBook(AddressBookId, true, contacts, "csv");
            ApiContactImport contactImportResult = WaitUntilImportFinishes(contactImport);
            PrintContactImport(contactImportResult);

            ApiContactImportReport contactImportReport = _client.GetContactImportReport(contactImportResult.Id);
            PrintContactImportReport(contactImportReport);

            string csvReport = GetContactImportFaults(contactImportResult.Id);
            PrintCsvReport(csvReport);
        }