libpttea 1.0.1 copy "libpttea: ^1.0.1" to clipboard
libpttea: ^1.0.1 copied to clipboard

The LibPttea library implemented in Dart.

LibPttea-dart

The LibPttea library implemented in Dart.

Pub Version GitHub License

📖 Description #

LibPttea-dart 是 LibPttea 的 Dart 版本,目的在封裝各種 PTT 功能操作,旨在輔助開發 PTTea APP 專案的 PTT 功能函式庫。

📦 Installation #

LibPttea is available on Pub:

pub add libpttea

🎨 Usage #

import 'package:libpttea/libpttea.dart' as libpttea;

const pttAccount = "PTT ID";
const pttPassword = "PTT 密碼";

Future<void> main() async {
  final libPttea =
      await libpttea.login(pttAccount, pttPassword, delDuplicate: true);

  final systemInfo = await libPttea.getSystemInfo();
  print(systemInfo);
  // [您現在位於 批踢踢實業坊 (140.112.172.11),
  // 系統負載: 輕輕鬆鬆,
  // 線上人數: 59384/175000,
  // ClientCode: 02000023,
  // 起始時間: 11/10/2024 05:17:51,
  // 編譯時間: Sun Jun  4 23:41:30 CST 2023,
  // 編譯版本: https://github.com/ptt/pttbbs.git 0447b25c 8595c8b4 M]

  await libPttea.logout();
}

📜 License #

GitHub License

1
likes
140
points
54
downloads

Publisher

unverified uploader

Weekly Downloads

The LibPttea library implemented in Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

LGPL-3.0 (license)

Dependencies

ansiparser, big5_utf8_converter, logging

More

Packages that depend on libpttea