qbittorrent_api 1.1.0 copy "qbittorrent_api: ^1.1.0" to clipboard
qbittorrent_api: ^1.1.0 copied to clipboard

This package provides methods for making requests to qBittorrent Web API using Dart.

example/example.dart

import 'package:qbittorrent_api/qbittorrent_api.dart';

Future<void> main() async {
  final qbittorrent = QBittorrentApiV2(
    baseUrl: 'http://localhost:8090',
    cookiePath: '.',
    logger: true,
  );

  // Login
  await qbittorrent.auth.login(username: 'admin', password: 'adminadmin');

  // Add torrents by urls
  const torrents = NewTorrents.urls(
    urls: ['https://example.torrent', 'https://example-2.torrent'],
  );
  await qbittorrent.torrents.addNewTorrents(torrents: torrents);

  // Subscribe to torrent list
  qbittorrent.sync.subscribeMainData().listen((data) {
    print(data.rid);
  });
}
7
likes
0
points
185
downloads

Publisher

unverified uploader

Weekly Downloads

This package provides methods for making requests to qBittorrent Web API using Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cookie_jar, dio, dio_cookie_manager, http_parser, json_annotation, path

More

Packages that depend on qbittorrent_api