benpickles / medium

Medium API Ruby Client

Home Page:http://www.benpickles.com/articles/62-ruby-medium-api-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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

About

Medium API Ruby Client

http://www.benpickles.com/articles/62-ruby-medium-api-client

License:MIT License


Languages

Language:Ruby 100.0%