is there a t.sina.com.cn statusnet connector?

I am test statusnet, is there a t.sina.com.cn statusnet connector?

Comments

  • 貌似这是不太可能 - - -
    新浪这玩意对其他微博很感冒的
  • 我申请sina的api key, 3天过去了, 还没有任何回音。
    :(
  • 我也想知道,如果能推送到sina微博就好了。
  • 可以的,把那个twitter的扩展稍微改一下就行了。
    有时间,我把我用的整理一下,丢出来。
  • 也得从新浪申请一个API key吧。上次给discuz上安装连接插件的时候就申请了一个。
  • API key一定要自己去申请的,不过也不麻烦。
  • 嗯 申请那个好申请 就期待插件了 我对PHP完全不了解的
  • I'm working on the sinaBridge plugin
  • One-Way Sync is simple, here is a demo plugin~

    class SyncPlugin extends Plugin
    {
    function onEndNoticeSaveWeb($action,$notice){
    $this->toSina($notice);
    }

    function toSina($notice){

    //set your api key !!!
    $params = array('status'=>$notice->content,'source'=>'your api key');
    $request = HTTPClient::start();
    $request->setConfig(array(
    'follow_redirects' => true,
    'connect_timeout' => 120,
    'timeout' => 120,
    'ssl_verify_peer' => false,
    'ssl_verify_host' => false
    ));

    //set your sina username and password here !!!
    $request->setAuth('username', 'password');
    $headers = array();
    $response = $request->post('http://api.t.sina.com.cn/statuses/update.xml', $headers, $params);
    $code = $response->getStatus();
    }
    }
  • 这个还得要输入账号密码啊 那种授权认证的方式不好么?
  • that's just a demo
  • 那就期待一下了,你知道怎么修改让中文显示为宋体吗?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID