Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunny/imaterialise
Ruby gem to access i.materialise's API
https://github.com/sunny/imaterialise
Last synced: 20 days ago
JSON representation
Ruby gem to access i.materialise's API
- Host: GitHub
- URL: https://github.com/sunny/imaterialise
- Owner: sunny
- License: mit
- Created: 2016-01-17T13:24:10.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2021-04-29T07:41:30.000Z (over 3 years ago)
- Last Synced: 2024-04-25T23:42:34.686Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
Ruby gem to access i.materialise's API
======================================Configuration
-------------```rb
Imaterialise.configure do |c|
c.tool_id = "YOUR-TOOL-ID-HERE"# Use the sandbox environment during development
c.sandbox = true
end
```Usage
-----### 3D Print Lab Connection
```rb
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.
Install
-------Add the following lines to your Gemfile if you are using bundler:
```rb
# Send 3D files to i.materialise's API
gem "imaterialise"
```Development
-----------To launch specs:
```sh
$ rake
```License
-------Created by Sunny Ripert for [Cults.](https://cults3d.com),
licensed under the MIT License.See also
--------- https://i.materialise.com/api/