0.1.2 • Published 2 years ago

mastodon-posts v0.1.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Mastodon Timeline

A react package to access Mastodon timelines.

Introduction Mastodon is a free, open-source, decentralized microblogging network. This package provides an easy way to access Mastodon timelines using React. With Mastodon Timeline, you can retrieve the latest toots (posts) from a Mastodon instance or a user's timeline.

Installation You can install the Mastodon Timeline package by running the following command in your terminal:

npm install mastodon-timeline

Usage To use Mastodon Timeline, you'll need to have a Mastodon account and create an application on the instance you want to access. After you've created your application, you can use the following code to retrieve the latest toots from a Mastodon instance:

client_id='your_client_id',  

client_secret='your_client_secret',  

access_token='your_access_token',  

api_base_url='https://your_instance.com/'