mastodon 0.2.3 copy "mastodon: ^0.2.3" to clipboard
mastodon: ^0.2.3 copied to clipboard

outdated

A simple API client for Mastodon access.

Mastodon #

A simple API for accessing Mastodon instances.

Usage #

A simple usage example:

import 'package:mastodon/mastodon.dart';

main() {
  // Create your instance. Doesn't actually log on until you call a method.
  var m = new Mastodon.usingAccessToken(
    'an OAuth access token for this instance', 
    instance: 'mastodon.somewhere',
  );
  for (Account a in m.findAccounts('myk')) {
    print(a);
  }
}

See mastodon_test.dart for more clues.

Features and bugs #

This package is intended to help with the building of simple bots.

Incomplete and not well tested, so it is full of them.

You might want to look at Luke Pighetti's (discontinued) https://pub.dev/packages/mastodon_dart for something richer and more reliable.

Fix them at https://github.com/mykdavies/Mastodon!

Todo #

  • Rate limiting mechanism not implemented.
4
likes
0
pub points
15%
popularity

Publisher

unverified uploader

A simple API client for Mastodon access.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

freezed_annotation, http, http_parser, json_annotation, mime, oauth2

More

Packages that depend on mastodon