Esempio n. 1
0
print '[test] remove_contacts'
for i in range(len(import_data)):
    import_data[i].pop('first_name', None)
response = constantcontact.remove_contacts(import_data, test_list)
if printout and response:
    print json.dumps(response, indent = 4, sort_keys = True)
    raw_input('press enter for next test')

print '[test] clear_contact_lists'
response = constantcontact.clear_contact_lists(test_list)
if printout and response:
    print json.dumps(response, indent = 4, sort_keys = True)
    raw_input('press enter for next test')

print '[test] export_contacts'
response = constantcontact.export_contacts(columns, general_interest)
if printout and response:
    print json.dumps(response, indent = 4, sort_keys = True)
    raw_input('press enter for next test')

export_activity_id = response.get_id()

print '[test] activity_status_report'
response = constantcontact.activities_status_report()
if printout and response:
    print json.dumps(response, indent = 4, sort_keys = True)
    raw_input('press enter for next test')

print '[test] individual_activity_status'
response = constantcontact.individual_activity_status(export_activity_id)
if printout and response: