Forums/Getting Started/Tips & Tricks from Chargify

Sample code in PHP, Ruby, .Net, Python, ColdFusion, Java

Michael O Klett
posted this on May 10, 2011 08:41 pm

 

Comments

User photo
Dave Parsons

In case anybody is wondering which Python library is the easiest to use, it's chargify-python. Although the doc calls it "simple" and lists it last, it's actually more powerful and easier to use than pychargify. I tried pychargify, but it didn't even work for one of the calls I needed. I've got no affiliation with either library. Just trying to save people some time.

June 09, 2011 08:08 pm.
User photo
Robert Hopwood

The link to the one Java example is 404. https://github.com/IntroSpectrum/chargify-scala 

If anyone is looking to use Java and wold like a hint, we are using a little bit of Jersey (http://jersey.java.net/)  and JAXB (http://jaxb.java.net/) to integrate to Chargify

January 05, 2012 10:11 pm.
User photo
Jeff Schneller

Robert - I have been trying to use Java with Restlet.org to integrate to Chargify.  It is becoming a pain to do.  Do you have a full integration or partial running?  How has Jersey and JAXB to work with?  Would you be contributing your integration back to Chargify at some point or making open source?

January 07, 2012 01:12 am.
User photo
Robert Hopwood

Hi Jeff,

The code is not really at the level of quality (IMO) to publish.  But perhaps at some point...  I do have things running fully using these technologies.  We call into the API, plus receive Web Hooks as well.  I don't know if what I did is any less of a pain than restlet! But who knows?  All-in-all, once I had the JAXB marshalling working, things started falling together nicely.  Attached is a ChargifyUtil class that might help give an idea.

January 13, 2012 12:05 pm.
User photo
Robert Hopwood

PS.  The JAXB with annotations depends on Java 1.6.  Here is another file that is an example of a Chargify object represented as a annotated POJO.

January 13, 2012 12:11 pm.