tindie_api
Description
tindie_api is a Ruby gem that provides a convenient interface for interacting with the Tindie API. This library simplifies the process of managing products, orders, and other Tindie-related operations programmatically.
Installation
Add this line to your application's Gemfile:
gem 'tindie_api'
Then execute:
bundle install
Or install it yourself as:
gem install tindie_api
Usage
Get unshipped orders
get "/orders" do
@username = ENV['TINDIE_USERNAME']
@api_key = ENV['TINDIE_API_KEY']
@api = TindieApi::TindieOrdersAPI.new(@username, @api_key)
# false means unshipped
orders = @api.get_orders_json(false)
puts orders.inspect
erb :orders, locals: { orders: orders }
end
Examples
See this git repo for additional examples