With a few articles (Vue Twitter Bot & React Twitter Bot) recently talking about creating automated Twitter bots for posting articles for a particular topic, I thought I would chip in and write a basic library for any .NET clients. It is a fully async library using .NET Standard.
.NET API interface for Forem apps. Forem is the platform which powers DEV and other online communities.
Forem API for .NET
We attempt to support all the API endpoints per the Forem/DEV API, which includes:
Where available, the library supports pagination and page size controls If there is an API endpoint that isn't currently supported, feel free to open an issue or create a PR.
To install the library run the below on Nuget Manager Console:
Install-Package Forem.Api -Version 0.4.0
For Some of the methods, DEV API key
apiKeyis required to be passed to authenticate you as a user To obtain one, check the authentication section GET API KEY
Using DI, Add the service to the container just by doing the below:
HttpClientDI by adding…
It is early days as the API is likely going to change a bit and probably will need an API key at some point but might help some people get started easier.
You can grab it on NuGet here.
Happy to work with the DEV team to make sure this library supports the current and future APIs for the site. 🙂