Medium API Ruby Client
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
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
README.md Match renamed (fixed) repository. Jan 4, 2017
Rakefile Run tests with `rake`. Jun 30, 2016
medium.gemspec

README.md

Medium API Ruby Client

Build Status

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

Example

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

API

Medium::Client.new(access_token)

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