Using mastodon-api with mastodon.local

PHP integration

Install
composer require mastodon-api
OEmbed as JSON
curl \
  -H "Authorization: Bearer $API_KEY" \
  http://mastodon.local/api/oembed
View identity proof
curl \
  -H "Authorization: Bearer $API_KEY" \
  http://mastodon.local/api/proofs
Fetch all lists that the user owns.
curl \
  -H "Authorization: Bearer $API_KEY" \
  http://mastodon.local/api/v1/lists
SDK on GitHub 📄 API Docs
SDK
mastodon-api
PHP
API
mastodon.local
mastodon.local
Other SDKs for mastodon.local
universal-social-sdk TootSDK Trunk ivory_cpp
At a glance
Language PHP
Endpoints127
Base URLhttp://mastodon.local