mastodon_dart 0.1.0+4 mastodon_dart: ^0.1.0+4 copied to clipboard
Unofficial Mastodon API.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add mastodon_dart
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
mastodon_dart: ^0.1.0+4
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:mastodon_dart/mastodon.dart';
import 'package:mastodon_dart/mock/endpoints/accounts.dart';
import 'package:mastodon_dart/mock/endpoints/apps.dart';
import 'package:mastodon_dart/mock/endpoints/blocks.dart';
import 'package:mastodon_dart/mock/endpoints/custom_emojis.dart';
import 'package:mastodon_dart/mock/endpoints/domain_blocks.dart';
import 'package:mastodon_dart/mock/endpoints/endorsements.dart';
import 'package:mastodon_dart/mock/endpoints/favourites.dart';
import 'package:mastodon_dart/mock/endpoints/filters.dart';
import 'package:mastodon_dart/mock/endpoints/follow_requests.dart';
import 'package:mastodon_dart/mock/endpoints/follow_suggestions.dart';
import 'package:mastodon_dart/mock/endpoints/instances.dart';
import 'package:mastodon_dart/mock/endpoints/lists.dart';
import 'package:mastodon_dart/mock/endpoints/media_attachments.dart';
import 'package:mastodon_dart/mock/endpoints/mutes.dart';
import 'package:mastodon_dart/mock/endpoints/notifications.dart';
import 'package:mastodon_dart/mock/endpoints/reports.dart';
import 'package:mastodon_dart/mock/endpoints/scheduled_statuses.dart';
import 'package:mastodon_dart/mock/endpoints/search.dart';
import 'package:mastodon_dart/mock/endpoints/statuses.dart';
import 'package:mastodon_dart/mock/endpoints/timelines.dart';
import 'package:mastodon_dart/mock/mock_mastodon.dart';
import 'package:mastodon_dart/mock/properties.dart';