limingxinleo / baidu-tieba-sign-library
baidu tieba sign library
0.1.2
2017-10-14 04:31 UTC
Requires
- php: >=5.6
- limingxinleo/support-collection: ^1.0
- pimple/pimple: ^3.0
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-12-17 20:04:59 UTC
README
百度贴吧 签到扩展包
安装
composer require limingxinleo/baidu-tieba-sign-library
使用
<?php use Yi\Baidu\Application; $client = new Application([ 'bduss' => $bduss, 'nickname' => 'Your Nick Name' ]); $result = $client->user->flushTiebas(); $this->assertTrue(count($result) > 0); /** @var \Yi\Baidu\User\Tieba $item */ foreach ($result as $item) { $res = $item->sign(); $this->assertTrue($res['no'] === 0 || $res['no'] === 1101); }
配置
bduss: 登录百度贴吧网页,打开F12,从cookies中找到BDUSS
nickname:就是你的昵称