sharkey 0.2.0 copy "sharkey: ^0.2.0" to clipboard
sharkey: ^0.2.0 copied to clipboard

A Dart library to interact with Sharkey, a Mastodon alternative.

example/lib/main.dart

/*
SHARKEY.DART by Alexander Abraham, 
a.k.a. "Angel Dollface".
Licensed under the DSL v1.
*/

import 'package:sharkey/sharkey.dart';

Future<void> main() async {

  // Gets profile information
  // for the profile "angeldollface666"
  // on the Sharkey instance "blahaj.zone".
  Map<String,dynamic> userInfo = await getUserInfo(
    "angeldollface666", 
    "blahaj.zone", 
    "https://blahaj.zone", 
    "/api"
  );

  // Prints out this
  // information.
  print(userInfo);
  
}
0
likes
140
pub points
0%
popularity

Publisher

verified publisherangeldollface.boo

A Dart library to interact with Sharkey, a Mastodon alternative.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

dio

More

Packages that depend on sharkey