module Medium::Connection

Direct including types

Defined in:

medium/connection.cr

Constant Summary

ASSETS_FILENAME_SPECIAL_CHARACTERS_REGEXP = /[\*\>\<\|]+/
DEFAULT_PARAMS = {"format" => "json"}
HOST = "medium.com"

Instance Method Summary

Instance Method Detail

def download(endpoint : String) #

def download_image(endpoint : String, name : String) #

def get(endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil) #

def http(host : String | Nil = HOST, format : String = "json") : HTTP::Client #

def http_exec(uri, method, headers, body, format = "json") #

def request(method, endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil, format : String = "json") #

def request_json(method, endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil) #