module Devto::Connection
Direct including types
Defined in:
devto/connection.crConstant Summary
-
HOST =
"dev.to"
Instance Method Summary
- #download(endpoint : String)
- #get(endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil)
- #get_pagination(endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil, &)
- #http(host : String | Nil = HOST) : HTTP::Client
- #request(method, endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil)
Instance Method Detail
def get(endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil)
#
def get_pagination(endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil, &)
#
def request(method, endpoint, params : Hash(String, String) | Nil = nil, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil)
#