Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hubs3d

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubs3d

  • 1.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Ruby gem to access 3D Hubs' API

Configuration

Hubs3D.configure do |c|
  c.oauth_key = "YOUR_API_KEY_HERE"
  c.oauth_secret = "YOUR_API_SECRET_HERE"
end

Usage

Upload a model and get its id back

model = Hubs3D::Model.new(path: "/path/to/example.stl",
                          name: "example.stl")
model.id # => 42

Create a cart and get its url to redirect to

cart = Hubs3D::Cart.new
cart << model
cart.url # => "https://www.3dhubs.com/…"

A cart can also take a third_party_id and a designer_tip

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
)

Install

Add the following line to your Gemfile if you are using the bundler gem:

gem "hubs3d"

Development

To launch specs:

$ rake

License

Created by Sunny Ripert for Cults., licensed under the MIT License.

See also

FAQs

Package last updated on 04 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc