Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bumi/kitely-ruby
(prototype) API wrapper for the kite.ly API
https://github.com/bumi/kitely-ruby
Last synced: 4 days ago
JSON representation
(prototype) API wrapper for the kite.ly API
- Host: GitHub
- URL: https://github.com/bumi/kitely-ruby
- Owner: bumi
- License: mit
- Created: 2019-08-12T17:28:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-06T06:28:01.000Z (about 2 years ago)
- Last Synced: 2023-04-10T23:12:47.996Z (over 1 year ago)
- Language: Ruby
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Kitely
Ruby API wrapper for [kite.ly](https://www.kite.ly) - the print on demand service
This is a prototype, pull requests welcome.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'kitely'
```Or install it yourself as:
$ gem install kitely
## Usage
```ruby
Kitely.secret_key = 'xxxx'
Kitely.public_key = 'yyyy'book = Kitely::Photobook.new
book.front_cover = 'https://s3.amazonaws.com/sdk-static/TestImages/1.png'
book.back_cover = 'https://s3.amazonaws.com/sdk-static/TestImages/1.png'[].each do |photo_url|
book.add_page(photo_url)
endcustomer = Kitely::Customer.new
customer.shipping_address = {recipient_name: 'Joe Kite'}
customer.phone = '+4917012345678'
customer.email = '[email protected]'order = Kitely::Order.new(customer: customer)
oder.add(book)response = order.order!
puts response.body.to_s```
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).