Date | 2023-10-17 (432 days ago) |
---|---|
Downloads | 219 downloads |
NuGet | View on NuGet |
GitHub | View on GitHub |
Target Frameworks | .NET Standard 2.0 .NET 6 .NET 7 |
#installation
">InstallationInstall 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
">ChangelogIntroduced 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.