Hubs3D.configure do |c|
c.oauth_key = "YOUR_API_KEY_HERE"
c.oauth_secret = "YOUR_API_SECRET_HERE"
end
model = Hubs3D::Model.new(path: "/path/to/example.stl",
name: "example.stl")
model.id # => 42
cart = Hubs3D::Cart.new
cart << model
cart.url # => "https://www.3dhubs.com/…"
cart = Hubs3D::Cart.new(
designer_tip: Hubs3D::Tip.new(amount_cents: 42_00,
currency: "EUR",
uuid: "5-42-42",
mandatory: true),
third_party_id: 42
)
Add the following line to your Gemfile if you are using the bundler
gem:
gem 'hubs3d', github: 'YouMagine/hubs3d'
To launch specs:
$ rake
Originally created by Sunny Ripert for Cults., licensed under the MIT License.
Forked by Martijn Versluis for YouMagine.