sunny / all3dp

Ruby gem to send 3D files to Craftcloud, All3DP's 3D Printing Price Comparison Service API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

All3DP

Ruby gem to send 3D files to All3DP's Craftcloud 3D Printing Price Comparison Service API.

Installation

Add these line to your application's Gemfile:

# Send 3D files to the All3DP API.
gem "all3dp"

And then call:

$ bundle

Usage

Give URLs of STL files to the API:

configuration = All3DP::Configuration.create(
  model_urls: ["http://wtf.sunfox.org/cults-logo.stl"],
)

You can then redirect your users to the given URL:

configuration.url # => "https://app.craftcloud3d.com/configuration/f00b4r…"

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake to run the tests and linter. You can also run bin/console for an interactive prompt that will allow you to experiment with the API.

Release

To release a new version, update the version number in version.rb, update the CHANGELOG.md, commit with a message like "v42.0.0", and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the gem to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sunny/all3dp.

This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

Licensed under the MIT License.

About

Ruby gem to send 3D files to Craftcloud, All3DP's 3D Printing Price Comparison Service API

License:MIT License


Languages

Language:Ruby 99.4%Language:Shell 0.6%