request method

Future<bool> request(
  1. HttpMethod method,
  2. String url,
  3. ApiVersion apiVersion,
  4. {Map<String, dynamic>? parameters,
  5. String? rootElement}
)

Implementation

Future<bool> request(HttpMethod method, String url, ApiVersion apiVersion,
    {Map<String, dynamic>? parameters, String? rootElement}) async {
  try {
    await EasyPostRequest.executeRequest(config, method, url, apiVersion,
        parameters: parameters);
    return true;
  } catch (e) {
    return false;
  }
}