# ohos_nntp_client **Repository Path**: Young-zhiqiang/ohos_nntp_client ## Basic Information - **Project Name**: ohos_nntp_client - **Description**: openharmony版nntp客户端。 - **Primary Language**: JavaScript - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2023-08-16 - **Last Updated**: 2023-09-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## newsie ### 介绍 newsie是一款实现了NNTP客户端协议的三方库 ### 下载 1丶安装 ``` ohpm install @ohos/newsie ``` 2丶导入 ``` import Client from '@ohos/newsie' ``` ### Demo样例 connect ```js this.client = new Client({ host: "124.221.182.182", port: 8084 }) await this.client.connect(); ``` list ```js await this.client.list() ``` group ```js await this.client.group(this.select_group) ``` newgroups ```js await this.client.newgroups(new Date()) ``` date ```js await this.client.date(); ``` 更多样例参照该Demo工程中[Index](./entry/src/main/ets/pages/Index.ets)页面 ### 软件架构 ``` |-entry |-ets | |-entryability | |-EntryAbility.ts | |-pages | |-Index.ets #主页demo |-newsie # newsie ``` ### 约束与限制 在下述版本验证通过: DevEco Studio: 4.0.1.400, SDK: API10 (4.0.0.24) ### 开源协议 本项目基于 [GNU AFFERO GENERAL](./LICENSE) ,请自由地享受和参与开源。 ### 贡献代码 使用过程中发现任何问题都可以提 [Issue](https://gitee.com/openharmony-tpc/openharmony_tpc_samples/issues) 给我们,当然,我们也非常欢迎你给我们发 [PR](https://gitee.com/openharmony-tpc/openharmony_tpc_samples/pulls) 。