did_plc 0.0.17 copy "did_plc: ^0.0.17" to clipboard
did_plc: ^0.0.17 copied to clipboard

Support for DID PLC Directory endpoints used by atproto and other services.

example/example.dart

// Copyright 2023 Shinya Kato. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided the conditions.

import 'package:did_plc/did_plc.dart' as plc;

Future<void> main(List<String> args) async {
  try {
    final client = plc.PLC();

    final document = await client.findDocument(
      did: 'did:plc:iijrtk7ocored6zuziwmqq3c',
    );

    print(document);
  } on plc.HttpException catch (e) {
    print(e);
  }
}
1
likes
140
pub points
0%
popularity

Publisher

verified publisheratprotodart.com

Support for DID PLC Directory endpoints used by atproto and other services.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#atproto #bluesky #plc

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

BSD-3-Clause (LICENSE)

Dependencies

atproto_core, freezed_annotation, json_annotation

More

Packages that depend on did_plc