예제 #1
0
            $statusResponse = $startImport->status();
            print_r('Status Status: ' . ($statusResponse->status ? 'true' : 'false') . "\n");
            print 'Code: ' . $statusResponse->code . "\n";
            print 'Message: ' . $statusResponse->message . "\n";
            print 'Results Length: ' . count($statusResponse->results) . "\n";
            print 'Results: ' . "\n";
            print_r($statusResponse->results);
            print "\n---------------\n";
            $importStatus = $statusResponse->results[0]->ImportStatus;
        }
    }
    print "Delete Import\n";
    $deleteImport = new ET_Import();
    $deleteImport->authStub = $myclient;
    $deleteImport->props = array("CustomerKey" => $NewImportName);
    $deleteResponse = $deleteImport->delete();
    print_r('Delete Status: ' . ($deleteResponse->status ? 'true' : 'false') . "\n");
    print 'Code: ' . $deleteResponse->code . "\n";
    print 'Message: ' . $deleteResponse->message . "\n";
    print 'Results Length: ' . count($deleteResponse->results) . "\n";
    print 'Results: ' . "\n";
    print_r($deleteResponse->results);
    print "\n---------------\n";
} catch (Exception $e) {
    echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>