Permalink
Browse files

Adding some more examples.

  • Loading branch information...
1 parent 11afa64 commit 52fa55283be854d50d31e4138c909137b6e4448f @stevenwei committed Apr 22, 2010
Showing with 15 additions and 1 deletion.
  1. +15 −1 README.md
View
@@ -6,6 +6,9 @@ See the test cases for a full list of examples for all supported API calls.
chargify = Chargify('api_key','subdomain')
+ # List products
+ result = chargify.products()
+
# List customers
result = chargify.customers()
@@ -55,4 +58,15 @@ See the test cases for a full list of examples for all supported API calls.
# Migrate a subscription
result = chargify.subscriptions.migrations.create(subscription_id=123,data={
'product_id':1234
- })
+ })
+
+ # Add a one time charge to a subscription
+ result = chargify.subscriptions.charges.create(subscription_id=123,data={
+ 'charge':{
+ 'amount':'1.00',
+ 'memo':'This is the description of the one time charge.'
+ }
+ })
+
+ # List transactions for a subscription
+ result = chargify.subscriptions.transactions(subscription_id=123)

0 comments on commit 52fa552

Please sign in to comment.