ApiRequester class

Base class for all API clients, offering generic methods for HTTP Requests to the API

Constructors

ApiRequester(Client _httpClient, String _rootUrl, String _basePath, Map<String, String> _requestHeaders)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(String requestUrl, String method, {String? body, Map<String, List<String>>? queryParams, Media? uploadMedia, UploadOptions? uploadOptions, DownloadOptions? downloadOptions = client_requests.DownloadOptions.metadata}) Future
Sends a HTTPRequest using method (usually GET or POST) to requestUrl using the specified queryParams. Optionally include a body and/or uploadMedia in the request.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited