post method

Future post(
  1. String endPoint,
  2. Map data
)

Make a custom post request to DepositsApi, using DepositsApi SDK.

Implementation

Future<dynamic> post( String endPoint, Map data) async {
  await setBaseUrl();
  await setSdkApiKey();

  var url = "$baseUrl$endPoint";
  var httpResponse = await httpRequest("POST", url, data);
  return httpResponse;
}