getAccountNote function

Future<ApiResponse<AccountNote>> getAccountNote(
  1. ExsitedClient client,
  2. Object accountId,
  3. Object noteId, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/v4/accounts/{account_id}/notes/{note_id} - one note.

Implementation

Future<ApiResponse<AccountNote>> getAccountNote(
  ExsitedClient client,
  Object accountId,
  Object noteId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(AccountsUrls.accountNote,
        pathParams: {'account_id': accountId, 'note_id': noteId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: AccountNote.fromMap);