Retrieving Subscriptions By ID
import sys
import chargeover
import pprint
# For authentication, fill in these values from your ChargeOver
# server information under "Configuraion->API and Webhooks"
endpoint =
username =
password =
# Set this to True to use "COv1 Signature" authorization
key_auth = False
co = chargeover.ChargeOver(
endpoint,
username,
password,
key_auth = key_auth)
id = 24
# Find a subcription by id
subscription = co.find_by_id("package", id)
print "Subscription from specified id"
pprint.pprint(subscription)