Esempio n. 1
0
attr_response.set_name('Alchemy')

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

print '[test] delete_event_item_attribute'
response = constantcontact.delete_event_item_attribute(event_response, item_response, attr_response)
if printout and response:
    print response
    raw_input('press enter for next test')

print '[test] delete_event_item'
response = constantcontact.delete_event_item(event_response, item_response)
if printout and response:
    print response
    raw_input('press enter for next test')

event_id_with_registrants = 'Insert an id for an event with registrants'

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

registrant = response.get_item(0)

print '[test] get_event_registrant'