Esempio n. 1
0
    raw_input('press enter for next test')

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

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

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

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

print '[test] delete_contact'
response = constantcontact.delete_contact(contact_id)
if printout and response:
    print response