Skip to content

v1.0.0-alpha003

Compare
Choose a tag to compare
@abjerner abjerner released this 17 Oct 10:39
· 20 commits to v1/main since this release

Installation

Install via NuGet - either via the .NET CLI:

dotnet add package Skybrud.Social.Mastodon --version 1.0.0-alpha003

or the NuGet package manager:

Install-Package Skybrud.Social.Mastodon -Version 1.0.0-alpha003

Changelog

  • Introduced new static MastodonHttpService.CreateFromClient method (see 8f8ca8e)
    This allows developers to specify their own MastodonHttpClient instance (might even be a sub class of MastodonHttpClient), which then will be wrapped by the MastodonHttpService instance.

  • Updated the MastodonHttpClient.PrepareHttpRequest method to set the "Authorization" HTTP header when an access token has been specified (see c1d1356)
    This was overlooked in previous releases, but will allow authenticated requests to the Mastodon API.

  • Added Error property to the MastodonHttpException class (see c19123c)
    The response body may contain a JSON object with an error property that explains the error that triggered the exception.