Imaterialise.configure do |c|
c.tool_id = "YOUR-TOOL-ID-HERE"
# Use the sandbox environment during development
c.sandbox = true
end
connection = Imaterialise::Connection.new(file_url: "/path/to/example.stl",
currency: "eur")
connection.upload
connection.url # => "http://i.materialise.com/UploadRouter?modelID=1234-5678-1…"
You can redirect your users to the given URL.
Add the following lines to your Gemfile if you are using bundler:
# Send 3D files to i.materialise's API
gem "imaterialise"
To launch specs:
$ rake
Created by Sunny Ripert for Cults., licensed under the MIT License.