getAccountBalance method

Future<GetAccountBalanceResponse> getAccountBalance()

The GetAccountBalance operation retrieves the amount of money in your Amazon Mechanical Turk account.

May throw ServiceFault. May throw RequestError.

Implementation

Future<GetAccountBalanceResponse> getAccountBalance() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'MTurkRequesterServiceV20170117.GetAccountBalance'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );

  return GetAccountBalanceResponse.fromJson(jsonResponse.body);
}