1. Go to this page and download the library: Download itisbean/weibohit library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
itisbean / weibohit example snippets
// 引入autoload.php(框架中使用不需要)
rname' => 'your account',
'password' => 'your password',
'doorImgPath' => 'if need door code, the door image would be saved here'
]);
// 發微博
$ret = $whitInstance->post('I am a robot');
// 評論
$whitInstance->comment($ret['data'], 'right');