printful_client
A Ruby client for the Printful.com API
generated using their OpenAPI/Swagger spec and the OpenAPI Generator tool.
Installation
To use the client as-is, add it to your project's Gemfile:
gem 'printful_client'
If you're not using a Gemfile, you can install the gem directly:
gem install printful_client
You can also build it from source:
gem build printful_client.gemspec
Usage
See the README in docs/ for
detailed usage documentation generated from the Swagger spec for this client.
Contributing
Generating a client for the latest spec
- Install Docker: https://docs.docker.com/engine/install/
- Open https://developers.printful.com/docs/
- Click the "Download" button next to "Download the OpenAPI specification"
- Save the downloaded file to
swagger.json
in this directory - Run the following script to generate the ruby client:
./generate.sh
- Commit all changes and open a pull request