Skip to content

G-Bro/teemill-ruby-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub action results GitHub lint results CodeFactor Gem version Download count codecov

Ruby SDK for the Teemill API

Installation

To install with Bundler, add this to your Gemfile

gem 'gbro_teemill'

and then run bundle install

or install globally with

gem install gbro_teemill

Usage

As an example, here is how you can create a custom product

require 'gbro_teemill'

# authenticate using bearer token method
Teemill.legacy_api_key = '...'

# create a custom product
custom_product = Teemill::CustomProduct.create({image_url: '...' })

Authentication

For most requests, all you need to provide is an API key

Teemill.api_key = '<your api key>'

For some legacy requests you must instead provide a legacy API key

Teemill.legacy_api_key = '<your bearer token api key>'

Custom Products

custom_product = Teemill::CustomProduct.create({
    image_url: 'https://domain.com/path/to/image.png'
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages