public function get(string $openid, string $lang = 'zh_CN')
    {
        $params = [
            'openid' => $openid,
            'lang' => $lang,
        ];

        return $this->httpGet('cgi-bin/user/info', $params);
    }
public function get(string $openid, string $lang = 'zh_CN')
    {
        $params = [
            'openid' => $openid,
            'lang' => $lang,
        ];

        return $this->httpGet('cgi-bin/user/info', $params);
    }
public function get ( string $ openid , string $ lang = 'zh_CN' ) { $ params = [ 'openid' => $ openid , 'lang' => $ lang , ] ; return $ this -> httpGet ( 'cgi-bin/user/info' , $ params ) ; }
Fetch a user by open id.

@param string $openid
@param string $lang

@return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string

@throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
Fetch a user by open id .