示例#1
0
 public static function parse_list($response)
 {
     $result = array();
     $res = Text::parse_json($response);
     if (!empty($res)) {
         foreach ($res as $re) {
             $obj = new self();
             $obj->user(WassrUser::parse($re["user"]));
             unset($re["user"]);
             $obj->channel(WassrChannel::parse($re["channel"]));
             unset($re["channel"]);
             $result[] = $obj->cp($re);
         }
     }
     return $result;
 }
示例#2
0
文件: WassrAPI.php 项目: hisaboh/w2t
 public function user_channel($login_id)
 {
     $this->do_get("channel_user/user_list.json");
     return WassrChannel::parse_list($this->body());
 }