JsonClient class
Methods
-
authenticate(AuthPayload payload, {dynamic url = '/api/login', bool captureAuthToken = false, String reCaptchaResp, List<Before> before = const [], List<After> after = const []})
→ AsyncJsonResponse
-
Authenticates using JSON body
-
authenticateBasic(AuthPayload payload, {dynamic url = '/api/login', bool captureAuthToken = false, String reCaptchaResp, List<Before> before = const [], List<After> after = const []})
→ AsyncJsonResponse
-
Authenticates using Basic Authentication
-
authenticateForm(AuthPayload payload, {dynamic url = '/api/login', bool captureAuthToken = false, String reCaptchaResp, List<Before> before = const [], List<After> after = const []})
→ AsyncJsonResponse
-
Authenticates using url-encoded-form
-
delete(dynamic url, List<Before> before = const [], List<After> after = const []})
→ AsyncJsonResponse
-
Issues a JSON DELETE request and returns decoded JSON response as
JsonResponse
-
get(dynamic url, List<Before> before = const [], List<After> after = const []})
→ AsyncJsonResponse
-
Issues a JSON GET request and returns decoded JSON response as JsonResponse
-
logout({dynamic url = '/api/logout', dynamic body, bool removeAuthToken = false, List<Before> before = const [], List<After> after = const []})
→ AsyncJsonResponse
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a non-existent method or property is accessed.
inherited
-
post(dynamic url, dynamic body, List<Before> before = const [], List<After> after = const []})
→ AsyncJsonResponse
-
Issues a JSON POST request and returns decoded JSON response as JsonResponse
-
postForm(dynamic url, dynamic body, List<Before> before = const [], List<After> after = const []})
→ AsyncJsonResponse
-
-
put(dynamic url, dynamic body, List<Before> before = const [], List<After> after = const []})
→ AsyncJsonResponse
-
Issues a JSON PUT request and returns decoded JSON response as
JsonResponse
-
putForm(dynamic url, dynamic body, List<Before> before = const [], List<After> after = const []})
→ AsyncJsonResponse
-
Issues a JSON PUT request with url-encoded-form body and returns decoded
JSON response as JsonResponse
-
toString()
→ String
-
A string representation of this object.
inherited
Constants
-
'jaguar-recaptcha'