API Code Samples & Libraries
The following sample code has been contributed by our community of developers to help you get started with Chargify faster. The code they’ve given back to everyone represents a lot of time & work that you can benefit from as you implement Chargify with your app!
If you have usage examples or code libraries in other languages, please let us know.
Please note that these samples were graciously given to us by our users, so we don’t offer official support for them. Of course, we help where we can, but our internal knowledge is Ruby. Most of the people who made the code are happy to help, and some of them can easily be reached on Twitter.
PHP
- http://www.crucialwebstudio.com/made/chargify-sample-app Sample PHP app based on Zend Framework and Zend_Service_Chargify by Crucial Web Studio
- http://github.com/abraham/chargify Sample PHP app by Abraham Williams. http://abrah.am, @abraham
- http://github.com/jforrest/Chargify-PHP-Client: A PHP API wrapper from Jason at RigBooks
- http://github.com/lewsid/chargify_api_php: A PHP API wrapper by one of our active beta testers.
- http://chargeigniter.com: CodeIgniter PHP code by Kyle Anderson
Ruby/Rails
- http://github.com/chargify/chargify_api_ares: This is the “official” gem by the Chargify team. It uses ActiveResource, which is built into Rails, and is a good option for easy integration.
- http://github.com/pengwynn/chargify: This is a Chargify gem that uses HTTParty. It was created by @pengwynn, who is one of our active beta testers. It has tests by using a Chargify “mock”.
- http://github.com/jsmestad/chargify: This is a Chargify gem by @jsmestad, another of our active users.
Python / Django
- http://github.com/gdoermann/django-chargify: A Django wrapper for Chargify by @gdoermann
- http://github.com/getyouridx/pychargify: A Python API wrapper by one of our active beta testers.
- http://github.com/hindsightlabs/chargify-python: A simple Python API wrapper.
.Net
- http://chargify.codeplex.com: A .Net API wrapper and complete sample app by one of our active beta testers (Kori Francis, @djbyter)
ColdFusion
- https://github.com/GenuinePartsLLC/Chargify-Coldfusion-Component: A simple ColdFusion cfc by Jordan Sitkin (@specifyApp). He says (as of Aug 23, 2010): “At the moment it only includes the basic functionality of the Customers and Subscriptions parts of the API, but can easily be extended to handle the rest.”
Java / Scala
- http://github.com/IntroSpectrum/chargify-scala: A Scala API wrapper by one of our active beta testers.
Javascript
- https://github.com/andyet/node-chargify: A simple node.js wrapper for the Chargify REST API, by (Nathan Vander Wilt, @natevw)