Sha256: 1a0fd400b829a049c758467c804088027f965b14b766db2df239d512107b502a

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

= Zinc Ruby Bindings

== Introduction
Ruby bindings for the {Zinc}[https://zinc.io] API

Heavily inspired by the {Stripe Ruby Bindings}[https://github.com/stripe/stripe-ruby]

By Julian Simioni

== Usage

   Zinc.api_key = "your-api-key" # set the API key first

   new_order = Zinc::Order.create({:address => {
        :name =>"Tim Beaver",
        :address_line1 => "77 Massachusetts Avenue",
        :zip_code => "02139",
        :city": "Cambridge",
        :state": "MA",
        :country": "US"
     },
     :address_suggestion_choice => "suggested",
     :products => [
        {
           :pid => "B003L1ZYYM",
           :pid_type => "ASIN",
        },
        {
           :pid => "0833030477",
           :pid_type => "ASIN",
        }
     ]})


     # all parameters returned by the {Zinc API}[https://zinc.io/docs] can be used as accessors
     puts new_order.ship_date_estimate # => 1336120454

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zinc-0.1.0 README.rdoc