ApiConnection class

Handles all API Connections and Requests

Constructors

ApiConnection()

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

createGET(String url, Map<String, String> headers, Map<String, String>? queryParameters) → Future<Response>
Create GET Request
createPOST(String url, Map<String, String> headers, Map<String, String>? queryParameters, String? request) → Future<Response>
Create POST Request
generateToken(GenerateToken obj, String authToken, dynamic onSuccess(String onSuccess), dynamic onError(CometChatCallsException excep)) → void
Generate Token API Call
getApiUrl(String url) → String
Get API URL
getCallDetails(String sessionID, String authToken, dynamic onSuccess(String onSuccess), dynamic onError(CometChatCallsException excep)) → void
Get Call Details
getCallLogList(CallLogFilterParams params, String authToken, dynamic onSuccess(String onSuccess), dynamic onError(CometChatCallsException excep)) → void
Get Call Logs List
getDefaultHeaders(String? authToken, String? callToken) → Map<String, String>
Get Default Headers
handleResponse(Response response, dynamic onSuccess(String onSuccess), dynamic onError(CometChatCallsException excep)) → void
Handle API Response
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

callAppSettings ↔ CallAppSettings?
getter/setter pair