获取用户身上的标签列表.

@param string $openID

@return mixed
764455
public function getUser(string $openID)
    {
        return self::$curl->post(self::USER_TAG.self::$access_token, json_encode([
                'openid' => $openID,
            ]
        ));
    }
219226
public function getUserInfo($openId, $lang = 'zh_CN')
    {
        $result = $this->httpGet(self::WECHAT_USER_INFO_GET, [
            'access_token' => $this->getAccessToken(),
            'openid' => $openId,
            'lang' => $lang
        ]);
        return !array_key_exists('errcode', $result) ? $result : false;
    }
1055051
public function getUser($next_openid = "")
    {
        // http请求方式: GET（请使用https协议）
        // https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&next_openid=NEXT_OPENID
        // access_token 是 调用接口凭证
        // next_openid 是 第一个拉取的OPENID，不填默认从头开始拉取
        $params = array();
        $params['next_openid'] = $next_openid;
        $rst = $this->_request->get($this->_url . 'user/get', $params);
        return $this->_client->rst($rst);
    }
250175
public function batchBlackList(array $openids)
    {
        $url = "https://api.weixin.qq.com/cgi-bin/tags/members/batchblacklist?access_token=ACCESS_TOKEN";
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->httpPostForJson($url, ['openid_list' => $openids]);
    }
61038
public function get_auth_user($openid , $access_token , $lang = 'zh_CN'){

        $url = self::API_URI . self::AUTH_USER_URI;
        $param['access_token'] = $access_token;
        $param['openid'] = $openid;
        $param['lang'] = $lang;

        $user_info_url = $this->create_url($url, $param);
        $data = $this->http_get($user_info_url);

        return $this->return_data($data);
    }
61226
public static function getByOpenId($openid)
    {
        $u = self::getByResult(fssql_query('SELECT * FROM '.User::TABLE.' WHERE external='.USER_OPENID.' and external_id="'.$openid.'"'));
        if (!$u) {
            if (!$user['fullname']) $user['fullname'] = parse_url($openid, PHP_URL_HOST);
            fssql_query('INSERT INTO users (date_reg, email,login,name,disabled,external,external_id) VALUES (NOW(), "'.$user['email'].'","'.parse_url($openid, PHP_URL_HOST).'","'.$user['fullname'].'",0,'.USER_OPENID.',"'.$openid.'")');
            $u = self::getByResult(fssql_query('SELECT * FROM '.User::TABLE.' WHERE external='.USER_OPENID.' and external_id="'.$openid.'"'));
			$u->addExternal(USER_OPENID,$openid);
        }
        return $u;
    }
107667
public function batchUnblackList(array $openids)
    {
        $url = "https://api.weixin.qq.com/cgi-bin/tags/members/batchunblacklist?access_token=ACCESS_TOKEN";
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->httpPostForJson($url, ['openid_list' => $openids]);
    }
368170
public function bindTo(string $openAppId)
    {
        $params = [
            'appid' => $this->app['config']['app_id'],
            'open_appid' => $openAppId,
        ];

        return $this->httpPostJson('cgi-bin/open/bind', $params);
    }
362502
public function load($config = array())
    {
	$openid = new LightOpenID();
	if(!empty($config))
	{
	    foreach ($config as $key => $val)
	    {
		$openid->$key = $val;
	    }
	}
	return $openid;
    }
408030
public function getUserInfo($openId)
    {
        $url    = sprintf(self::USER_INFO_URL, $this->getAccessTokenString(), $openId);
        $client = $this->getHttpClient();
        $client->setUrl($url);
        $client->setHeaderArray(['Content-Type: application/json']);

        if (!$client->exec()) {
            throw new Exception("call get user info fail");
        }

        $result = json_decode($client->getResponse(), true);
        if (isset($result['errcode'])) {
            throw new Exception("error response for get user info");
        }

        return $result;
    }
1344135
public function getMemberInfo($openId, $lang = 'zh_CN')
    {
        $result = $this->httpGet(self::WECHAT_MEMBER_INFO_URL . 'access_token=' . $this->getAccessToken(), [
            'openid' => $openId,
            'lang' => $lang
        ]);
        return !isset($result['errcode']) ? $result : false;
    }
590742
public function openWebById($webId)
    {
        $web = new Web($this->getContext(),$this->getResourcePath());
        $qry = new InvokePostMethodQuery($this->getResourcePath(),"openWebById",array($webId));
        $this->getContext()->addQuery($qry,$web);
        return $web;
    }
583858
public function toOpenId($userId, $agentId)
    {
        $params = [
            'userid'  => $userId,
            'agentid' => $agentId,
        ];

        return $this->parseJSON('json', [self::API_TO_OPENID, $params]);
    }
669010
public function paginateUsers ($nextOpenID = null)
    {
        $json = json_decode(
            $this->client->send(
                new Request(
                    'GET',
                    Uri::withQueryValue(new Uri('https://api.weixin.qq.com/cgi-bin/user/get'), 'next_openid',
                        $nextOpenID)
                )
            )->getBody()
        );

        if (! isset($json->total)) {
            return new PaginatedResultSet(null, 0, []);
        } elseif (! isset($json->next_openid, $json->data->openid)) {
            return new PaginatedResultSet(null, $json->total, []);
        } else {
            return new PaginatedResultSet($json->next_openid ?: null, $json->total, $json->data->openid);
        }
    }
715356
public function getUser($openId, $accessToken)
    {
        $queryStr = [
            'access_token' => $accessToken,
            'openid'       => $openId,
            'lang'         => 'zh_CN',
        ];

        $this->apitype = 'sns';
        $this->module  = 'userinfo';
        $res           = $this->_get('', $queryStr);

        return $res;
    }
1114354
public function getKFSession($openid){
	    if (!$this->access_token && !$this->checkAuth()) return false;
	    $result = $this->http_get(self::API_BASE_URL_PREFIX.self::CUSTOM_SESSION_GET .'access_token='.$this->access_token.'&openid='.$openid);
	    if ($result)
	    {
	        $json = json_decode($result,true);
	        if (!$json || !empty($json['errcode'])) {
	            $this->errCode = $json['errcode'];
	            $this->errMsg = $json['errmsg'];
	            return false;
	        }
	        return $json;
	    }
	    return false;
	}
1126148
public function openid(string $deviceId)
    {
        $params = [
            'device_type' => $this->app['config']['device_type'],
            'device_id' => $deviceId,
        ];

        return $this->httpGet('device/get_openid', $params);
    }