src/Traits/BuildRequest.php
public function buildGetRequest($uri, $param = [], $headers = [], $isAsync = false)
    {
        $query_param = array_merge(['xh' => $this->stu_id], $param);
        $query = [
            'query' => $query_param,
            'headers' => $headers,
        ];
        if ($this->cacheCookie) {
            $query['cookies'] = $this->getCookie();
        }
        //If use getAll(), use the Async request.
        return $isAsync
            ? $this->client->getAsync($uri, $query)
            : $this->client->get($uri, $query);
    }
public function buildGetRequest($uri, $param = [], $headers = [], $isAsync = false)
    {
        $query_param = array_merge(['xh' => $this->stu_id], $param);
        $query = [
            'query' => $query_param,
            'headers' => $headers,
        ];
        if ($this->cacheCookie) {
            $query['cookies'] = $this->getCookie();
        }
        //If use getAll(), use the Async request.
        return $isAsync
            ? $this->client->getAsync($uri, $query)
            : $this->client->get($uri, $query);
    }
public function buildGetRequest ( $ uri , $ param = [ ] , $ headers = [ ] , $ isAsync = false ) { $ query_param = array_merge ( [ 'xh' => $ this -> stu_id ] , $ param ) ; $ query = [ 'query' => $ query_param , 'headers' => $ headers , ] ; if ( $ this -> cacheCookie ) { $ query [ 'cookies' ] = $ this -> getCookie ( ) ; } //If use getAll(), use the Async request. return $ isAsync ? $ this -> client -> getAsync ( $ uri , $ query ) : $ this -> client -> get ( $ uri , $ query ) ; }
Build the get request.

@param type|string $uri
@param type|array $param
@param type|array $headers
@param type|bool $isAsync
@return type
Build the get request .