https://github.com/xmas7/printnode-ruby
PrintNode is a cloud printing service which allows you to connect any printer to your applicatino using our PrintNode Client and easy to use JSON API.
https://github.com/xmas7/printnode-ruby
api node print printnode ruby
Last synced: about 1 month ago
JSON representation
PrintNode is a cloud printing service which allows you to connect any printer to your applicatino using our PrintNode Client and easy to use JSON API.
- Host: GitHub
- URL: https://github.com/xmas7/printnode-ruby
- Owner: xmas7
- License: mit
- Created: 2022-09-26T14:21:57.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-26T14:22:46.000Z (over 2 years ago)
- Last Synced: 2025-02-12T08:40:49.167Z (3 months ago)
- Topics: api, node, print, printnode, ruby
- Language: Ruby
- Homepage:
- Size: 146 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# PrintNode-Ruby [](http://badge.fury.io/rb/printnode)
PrintNode is a cloud printing service which allows you to connect any printer to your applicatino using our PrintNode Client and easy to use JSON API.
This quick start guide covers using the Ruby API Library. There are examples to show how to use the API Library. It assumes that you have a [PrintNode](https://www.printnode.com) account.
##Installation
###Prerequisites
* Ruby 1.9.x or Ruby 2.x.x
* rubygems###Installing from rubygems
Simply install via `gem install printnode` with root privileges.###Building and installing from gemspec
Firstly, you need to build the gem via:
```bash
gem build printnode.gemspec
```
Then install it via `gem install printnode-x.x.x.gem` with root privileges.##Quick Start
Firstly, make sure you require the library when using the code:
```Ruby
require 'printnode'
```Then, you can start using the code:
```Ruby
auth = PrintNode::Auth.new("MyApiKey")
client = PrintNode::Client.new(auth)myComputers = client.computers
myPrinters = client.printers
```##Docs
a Ruby *yardoc* is included in PrintNode-Ruby/doc/ and are also available [online.](http://www.rubydoc.info/github/PrintNode/PrintNode-Ruby)