Shopify/active_shipping — pull request #35 by isaac (2011-11-07 02:42:18+00:00)
Title: NZ Post: Add International API and switch to JSON

Hey Guys,

Here are the high level changes introduced with this pull request:

* Add support for the New Zealand Post International Rate Finder JSON API:
* Documentation here: http://api.nzpost.co.nz/ratefinder/international/documentation

* Update the existing New Zealand Domestic Rate Finder API integration:
* Switch from the XML to the JSON API
* Support returning multiples rates for packages
* Support all packaging types returned by the API

To support the JSON API integration I have added the JSON gem to the gemspec for Ruby 1.8 - I have just copied the way it was handled in ActiveMerchant: https://github.com/Shopify/active_merchant/blob/master/activemerchant.gemspec#L26

Please let me know if you would like me to make any changes or additions to this pull request.

Cheers,
Isaac