Requires a Medium access token, a self-issued access token is the easiest way to get started.
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',
)
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