Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 642 Bytes

README.rdoc

File metadata and controls

26 lines (15 loc) · 642 Bytes

Rubiverse

Talk to a Universe of Things! \o/

For more information see: www.thingiverse.com/developers

This gem should be considered beta and doesn’t yet implement all of the Thingiverse API.

Installation

sudo gem install thingiverse

Ruby gem usage

This will take a temp code and do the oauth to access_token for you.

require 'thingiverse'
tv = Thingiverse::Connection.new(client_id, client_secret, code)
puts tv.things.newest.first.name

If you already have an access_token you can just do this.

tv = Thingiverse::Connection.new
tv.access_token = my_access_token
puts tv.things.find(thing_id).files.first.name