From 920407b3e23bf2dbc648e55cb766e72a8ba26c90 Mon Sep 17 00:00:00 2001 From: Eduardo Braga Date: Mon, 6 May 2024 22:26:23 -0300 Subject: [PATCH] Add GetMediaAttachment method --- Mastonet/MastodonClient.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Mastonet/MastodonClient.cs b/Mastonet/MastodonClient.cs index cea31b1..0cb1cd0 100644 --- a/Mastonet/MastodonClient.cs +++ b/Mastonet/MastodonClient.cs @@ -332,7 +332,15 @@ public Task RemoveAccountsFromList(string listId, IEnumerable accounts) #endregion #region Media - + /// + /// Get a media attachment, before it is attached to a status and posted, but after it is accepted for processing. Use this method to check that the full-sized media has finished processing. + /// + /// The ID of the MediaAttachment in the database + /// + public Task GetMediaAttachment(string attachmentId) + { + return Get($"/api/v1/media/{attachmentId}"); + } /// /// Uploading a media attachment ///