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

  1. Install Docker: https://docs.docker.com/engine/install/
  2. Open https://developers.printful.com/docs/
  3. Click the "Download" button next to "Download the OpenAPI specification"
  4. Save the downloaded file to swagger.json in this directory
  5. Run the following script to generate the ruby client: sh ./generate.sh
  6. Commit all changes and open a pull request