get method

Future get(
  1. String api, {
  2. Map<String, String?>? params,
  3. bool objectify = true,
  4. bool followRedirects = false,
})

Implementation

Future<dynamic> get(String api,
    {Map<String, String?>? params,
    bool objectify = true,
    bool followRedirects = false}) async {
  if (!_initialized) {
    throw DRAWAuthenticationError(
        'Cannot make requests using unauthenticated client.');
  }
  final path = Uri.https(defaultOAuthApiEndpoint, api);
  final response =
      await auth.get(path, params: params, followRedirects: followRedirects);
  return objectify ? _objector.objectify(response) : response;
}