struct Packlink::Client
- Packlink::Client
- Struct
- Value
- Object
Defined in:
packlink/client.crConstant Summary
-
API_VERSION =
"v1"
-
METHODS =
["GET", "POST"] of ::String
Constructors
Class Method Summary
- .instance
- .instance_without_api_key
- .with_api_key(api_key : String?)
- .with_api_key(api_key : String?, &)
Instance Method Summary
- #api_key : String?
- #api_path(path : String, id : String? = nil)
- #endpoint
- #get(path : String, query : Hash | NamedTuple = A::HS2.new, headers : Hash | NamedTuple = A::HS2.new)
- #perform_http_call(method : String, path : String, body : Hash | NamedTuple = A::HS2.new, query : Hash | NamedTuple = A::HS2.new, headers : Hash | NamedTuple = A::HS2.new)
- #post(path : String, body : Hash | NamedTuple, query : Hash | NamedTuple = A::HS2.new, headers : Hash | NamedTuple = A::HS2.new)
Constructor Detail
Class Method Detail
Instance Method Detail
def get(path : String, query : Hash | NamedTuple = A::HS2.new, headers : Hash | NamedTuple = A::HS2.new)
#
def perform_http_call(method : String, path : String, body : Hash | NamedTuple = A::HS2.new, query : Hash | NamedTuple = A::HS2.new, headers : Hash | NamedTuple = A::HS2.new)
#
def post(path : String, body : Hash | NamedTuple, query : Hash | NamedTuple = A::HS2.new, headers : Hash | NamedTuple = A::HS2.new)
#