getResourceAnonymous method

Future<String?> getResourceAnonymous(
  1. String path, {
  2. Map<String, String>? headers,
  3. String? method,
  4. String? encoding,
  5. Map<String, String>? params,
  6. String? body,
})

Gets resources anonymously.

Method requires path parameter.

Implementation

Future<String?> getResourceAnonymous(
  String path, {
  Map<String, String>? headers,
  String? method,
  String? encoding,
  Map<String, String>? params,
  String? body,
}) async {
  var response;
  response = await Onegini.instance.channel
      .invokeMethod(Constants.getResourceAnonymous, <String, dynamic>{
    'path': path,
    'headers': headers,
    'method': method,
    'encoding': encoding,
    'parameters': params,
    'body': body
  });

  return response;
}