Example #1
0
 public function getFollowers($uid)
 {
     $list = array();
     $uid = (int) $uid;
     if (!$uid) {
         return $list;
     }
     $user = FS('User')->getUserBindByType($uid, $this->type);
     //$client = new WeiboClient($this->config['app_key'],$this->config['app_secret'],$user['oauth_token'],$user['oauth_token_secret']);
     //$msg = $client->followers(0,20,$user['keyid']);
     $client = new WeiboClient($this->config['app_key'], $this->config['app_secret'], '2d2b2056e1a40f92d5c283a34298b1ff', '8e8da9e53e4c85a2625dab12272e9277');
     $msg = $client->followers(0, 20, 1085149703);
     print_r($msg);
     exit;
 }