v1.0.0-alpha003
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 ownMastodonHttpClient
instance (might even be a sub class ofMastodonHttpClient
), which then will be wrapped by theMastodonHttpService
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 theMastodonHttpException
class (see c19123c)
The response body may contain a JSON object with anerror
property that explains the error that triggered the exception.