ApiClient class

API client for making HTTP requests to the backend

Constructors

ApiClient(ApexKycConfig _config)

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

close() → void
Close the HTTP client
delete(String endpoint, {Map<String, String>? headers}) Future<Response>
Make DELETE request
get(String endpoint, {Map<String, String>? queryParameters, Map<String, String>? headers}) Future<Response>
Make GET request
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(String endpoint, {Map<String, dynamic>? body, Map<String, String>? headers}) Future<Response>
Make PATCH request with JSON body
post(String endpoint, {Map<String, dynamic>? body, Map<String, String>? headers}) Future<Response>
Make POST request with JSON body
postMultipart(String endpoint, {required dynamic file, String fieldName = 'file', Map<String, String>? fields, Map<String, String>? headers}) Future<Response>
Make POST request with multipart file upload Accepts File (mobile) or XFile (web)
postMultipartMultiple(String endpoint, {required Map<String, dynamic> files, Map<String, String>? fields, Map<String, String>? headers}) Future<Response>
Make POST request with multiple files (multipart) Accepts Map<String, dynamic> where keys are field names and values are files Example: {'front': file1, 'back': file2}
toString() String
A string representation of this object.
inherited

Operators

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