get<T> method

Future<T> get<T>(
  1. PayMongoOptions options
)

make GET response

Implementation

Future<T> get<T>(PayMongoOptions options) async {
  final _http = http ?? PayMongoHttp(secret);
  final uri = Uri.https(_apiUrl, "v1${options.path}", options.params);
  final response = await _http.get(uri);
  _http.close();
  return _request(response, options.path);
}