Esempio n. 1
0
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:
    print json.dumps(response, indent = 4, sort_keys = True)
    raw_input('press enter for next test')
 
file_name = 'Put a completed export files activity url here'

print '[test] get_export_file'
response = constantcontact.get_export_file(file_name)
if printout and response: