getTaskNoteFile function

Future<ApiResponse<Object?>> getTaskNoteFile(
  1. ExsitedClient client,
  2. Object taskCode,
  3. Object noteId,
  4. Object fileId, {
  5. bool? raiseOnError,
  6. String? responseFormat,
})

GET /api/{api_version}/tasks/{task_code}/notes/{note_id}/files/{file_id}

Get one attachment, the uuid the files listing gives; a JSON descriptor under file, not the bytes.

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> getTaskNoteFile(
  ExsitedClient client,
  Object taskCode,
  Object noteId,
  Object fileId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(TasksUrls.taskNoteFile,
        pathParams: {
          'task_code': taskCode,
          'note_id': noteId,
          'file_id': fileId
        },
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);