Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin Easier manual testing. Jul 11, 2016
lib Fix missing constant error. Oct 24, 2017
spec Raise an error for 400/401 responses. Jun 30, 2016
.gitignore Gemify. Jun 23, 2016
.rspec Initial commit. Jun 23, 2016
.travis.yml Travis CI config. Jul 11, 2016
Gemfile Gemify. Jun 23, 2016
LICENSE MIT licence. Oct 25, 2017
README.md Code Climate badge. Jul 7, 2017
Rakefile Run tests with `rake`. Jun 30, 2016
medium.gemspec Run tests with `rake`. Jun 30, 2016


Medium API Ruby Client

Build Status Code Climate

Requires a Medium access token, a self-issued access token is the easiest way to get started.


client = Medium::Client.new(access_token)
  canonicalUrl: 'http://example.com/hello-world',
  content: '<p>Some interesting words.</p>',
  contentFormat: 'html',
  publishStatus: 'draft',
  title: 'Hello World',



Medium::Client#create_post(params) - Medium API docs

Medium::Client#create_publication_post(publication_id, params) - Medium API docs

Medium::Client#me - Medium API docs

Medium::Client#publication_contributors(publication_id) - Medium API docs

Medium::Client#publications - Medium API docs