Skip to contents

This function retrieves a file from Mattermost based on its file ID.

Usage

get_mattermost_file(file_id, auth = authenticate_mattermost())

Arguments

file_id

The ID of the file to be retrieved.

auth

A list containing `base_url` and `headers` for authentication.

Value

The response from the Mattermost API, which may contain the file data.

Examples

if (FALSE) { # \dontrun{
# Assuming you have already authenticated and obtained the file_id
file_id <- "your_file_id_here"
file_response <- get_mattermost_file(file_id = file_id)
print(file_response)

file_response <- get_mattermost_file(file_id = "i5rb43jei787jxcud7ekyyyyhc")
} # }