piped_client 0.1.1 copy "piped_client: ^0.1.1" to clipboard
piped_client: ^0.1.1 copied to clipboard

API Client for piped.video

example/piped_client_example.dart

import 'package:piped_client/piped_client.dart';

void main() async {
  final client = PipedClient();

  final instances = await client.instanceList();

  for (final instance in instances) {
    print(
        'Instance: ${instance.name}${instance.locations} => ${instance.apiUrl}');
  }

  final result = await client.search('piped');

  for (final item in result.items) {
    if (item is PipedSearchItemStream) {
      print('Stream: ${item.title} => ${item.url}');
    } else if (item is PipedSearchItemChannel) {
      print('Channel: ${item.name} => ${item.url}');
    } else if (item is PipedSearchItemPlaylist) {
      print('Playlist: ${item.name} => ${item.url}');
    }
  }
}
3
likes
140
points
748
downloads

Publisher

verified publisherkrtirtho.dev

Weekly Downloads

API Client for piped.video

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, json_annotation

More

Packages that depend on piped_client