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

account = response.get_item(0)

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

plan = Billing_Plan()
plan.set_plan_type(2)

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

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

Ejemplo n.º 2
0
    raw_input('press enter for next test')

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

account = response.get_item(0)

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

plan = Billing_Plan()
plan.set_plan_type(2)

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

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