# tieba-api **Repository Path**: scientificworld/tieba-api ## Basic Information - **Project Name**: tieba-api - **Description**: The unofficial API of Tieba - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-03 - **Last Updated**: 2022-02-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tieba-api ## 初始化 ```javascript var tieba = require('tieba-api'); var tb = new tieba('BDUSS'); // 此处填入你的bduss,用户密码登录功能未完成 ``` ## API ### tbs() 获取贴吧tbs。 `tb.tbs().then(msg => { console.log(msg); });` ### sign(bar) 在指定贴吧签到。 `tb.sign('贴吧').then(() => {}).catch(msg => { console.log(msg); })` ## 注意事项 除构造函数外的所有函数均返回一个Promise对象。