README.markdown in chargify-0.2.2 vs README.markdown in chargify-0.2.3
- old
+ new
@@ -6,9 +6,17 @@
sudo gem install gemcutter
gem tumble
sudo gem install chargify
+## Example Usage
+
+### Create, cancel, then reactivate subscription
+ attributes = { :product_handle => 'basic' ... }
+ @client = Chargify::Client.new('InDhcXAAAAAg7juDD', 'xxx-test')
+ subscription = @client.create_subscription(attributes)
+ @client.cancel_subscription(subscription[:id], "Canceled due to bad customer service.")
+ @client.reactivate_subscription(subscription[:id]) #Made him an offer he couldn't refuse!
## Note on Patches/Pull Requests
* Fork the project.
* Make your feature addition or bug fix.