![]() | 1 zythum 2013-03-01 22:59:34 +08:00 ![]() 微博来源 是写死的不能自定义。根据微博给他们的appkey定的 |
![]() | 3 tarsier 2013-03-01 23:07:25 +08:00 定是脚本倒没多难,用weibo sdk + api key很好写 (有相关接口) 只不过来源没法定制 |
![]() | 4 dotbuddle 2013-03-01 23:10:34 +08:00 配合corn使用 <?php //header("Content-type:application/x-www-form-urlencoded"); //header("Accept:text/vnd.wap.wml,text/html,text/plain,image/*,*/*"); function sendWeibo($cont){ $cOntent=$cont; $url="http://weibo.cn/mblog/sendmblog?st=8cea&vt=4&gsid=填写你的"; $post_data="rl=0&cOntent=".$content; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // 我们在POST数据哦! curl_setopt($ch, CURLOPT_POST, 1); // 把post的变量加上 curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); $output = curl_exec($ch); curl_close($ch); } ?> |