getAccountReports method

Future<Map> getAccountReports({
  1. String? last,
  2. String? from_date,
  3. String? to_date,
  4. String? apiKey,
})

Get reports of your account (default last 7 days)

DOCS: https://doodstream.com/api-docs#account-reports

Implementation

Future<Map> getAccountReports({
  String? last,
  String? from_date,
  String? to_date,
  String? apiKey,
}) async {
  Map result = await invoke(
    uriPath: "account/stats",
    apiKey: apiKey,
    uriQueryParameters: {
      "last": last,
      "from_date": from_date,
      "to_date": to_date,
    },
    statusCodes: [200],
    specialTypeName: "accountStats",
  );

  return result;
}