public function acquireUserInfo()
    {
        // Request the userinfo
        $client = new Client(); //GuzzleHttp\Client

        $this->buildHttpHeader();
        $endpoint = $this->userinfo_endpoint;

        try {
            $response = $client->request('GET', $endpoint, [
                'header' => $this->headers,
                'curl' => $this->setGetCurlopts(),
            ]);

            // Get the token and type from the response
            // $this->parseTokenResponse($response);
            return json_decode($response->getBody(), true);

        } catch (\GuzzleException $e) {

            return false;
        }
    }
public function acquireUserInfo()
    {
        // Request the userinfo
        $client = new Client(); //GuzzleHttp\Client

        $this->buildHttpHeader();
        $endpoint = $this->userinfo_endpoint;

        try {
            $response = $client->request('GET', $endpoint, [
                'header' => $this->headers,
                'curl' => $this->setGetCurlopts(),
            ]);

            // Get the token and type from the response
            // $this->parseTokenResponse($response);
            return json_decode($response->getBody(), true);

        } catch (\GuzzleException $e) {

            return false;
        }
    }
public function acquireUserInfo ( ) { // Request the userinfo $ client = new Client ( ) ; //GuzzleHttp\Client $ this -> buildHttpHeader ( ) ; $ endpoint = $ this -> userinfo_endpoint ; try { $ response = $ client -> request ( 'GET' , $ endpoint , [ 'header' => $ this -> headers , 'curl' => $ this -> setGetCurlopts ( ) , ] ) ; // Get the token and type from the response // $this->parseTokenResponse($response); return json_decode ( $ response -> getBody ( ) , true ) ; } catch ( \ GuzzleException $ e ) { return false ; } }
Get user info from the OAuth server
Get user info from the OAuth server