class Medium::Client

Included Modules

Defined in:

medium/client.cr
medium/client/collections.cr
medium/client/media.cr
medium/client/posts.cr
medium/client/publications.cr
medium/client/users.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Medium::Connection

download(endpoint : String) download, download_image(endpoint : String, name : String) download_image, get(endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil) get, http(host : String | Nil = HOST, format : String = "json") : HTTP::Client http, http_exec(uri, method, headers, body, format = "json") http_exec, request(method, endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil, format : String = "json") request, request_json(method, endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil) request_json

Instance methods inherited from module Medium::Client::Users

user user

Instance methods inherited from module Medium::Client::Publications

publication publication

Instance methods inherited from module Medium::Client::Posts

collection_archive(year : String = "", month : String = "", day : String = "") : Array(String) collection_archive, collection_stream collection_stream, normalize_urls(urls : Array(String)) : Array(String) normalize_urls, post_by_id(post_id : String) post_by_id, post_by_url(url : String) : Medium::Post post_by_url, post_id_from_url(url : String) post_id_from_url, posts(source = "overview") posts, streams(source = "overview") streams

Instance methods inherited from module Medium::Client::Media

fetch_gist(id : String | Nil, skip_token = false) fetch_gist, media(id : String) media, media_image(id : String) media_image

Constructor Detail

def self.new(user : String | Nil = nil, publication : String | Nil = nil, ctx : Medup::Context = ::Medup::Context.new) #

Class Method Detail

def self.default #

def self.default=(client : Medium::Client) #

Instance Method Detail

def close #

def post_urls_by_author(author : String) #