module Medium::Connection

Direct including types

Defined in:

medium/connection.cr

Constant Summary

DEFAULT_PARAMS = {"format" => "json"}
HOST = "medium.com"

Instance Method Summary

Instance Method Detail

def download(endpoint : String) #

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

[View source]
def http(host : String | Nil = HOST) : HTTP::Client #

[View source]
def request(method, endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil) #

[View source]