Our documentation has moved!

You are currently viewing a legacy version of our help articles.
For the most up-to-date version, please use the new Chargify Help & Support Site.
Follow

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

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

6 Comments

  • 0
    Avatar
    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.

  • 0
    Avatar
    Bob 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

  • 0
    Avatar
    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?

  • 0
    Avatar
    Bob 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.

  • 0
    Avatar
    Bob 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.

  • 0
    Avatar
    Raghu Kumar

    Can u please provide me a sample piece of code for using chargify in java

Please sign in to leave a comment.
Powered by Zendesk