ImgurNetworkingClient class
A general purpose networking client to interact with Imgur REST API
Use v3
constructor for latest API Version
- Inheritance
-
- Object
- NetworkingClient
- ImgurNetworkingClient
Constructors
- ImgurNetworkingClient({required String apiVersion, required String clientId})
-
ImgurNetworkingClient.custom({required Duration duration, required List<
Interceptor> interceptors, required String apiVersion, required String clientId}) - ImgurNetworkingClient.v3({required String clientId})
Properties
- baseUrl → Uri
-
finalinherited
- clientId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient → Client
-
finalinherited
-
interceptors
→ List<
Interceptor> -
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutDuration → Duration
-
finalinherited
Methods
-
delete(
{required String endpoint, Map< String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
inherited
-
get(
{required String endpoint, Map< String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
inherited
-
multipart(
{required String endpoint, Map< String, String> ? form, Map<String, Uint8List> ? files, Map<String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
Crafts and sends a multipart/form-data request.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patch(
{required String endpoint, ContentType contentType = ContentType.json, String? data, Map< String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
inherited
-
post(
{required String endpoint, ContentType contentType = ContentType.json, String? data, Map< String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
inherited
-
put(
{required String endpoint, ContentType contentType = ContentType.json, String? data, Map< String, String> ? headers, Map<String, String> ? queryParameters}) → Future<Either< RequestError, Response> > -
inherited
-
send(
{required Request request}) → Future< Either< RequestError, Response> > -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited