application\modules\social\components\services\Google::fetchAttributes PHP Method

fetchAttributes() protected method

protected fetchAttributes ( )
    protected function fetchAttributes()
    {
        $info = (array) $this->makeSignedRequest('https://www.googleapis.com/oauth2/v1/userinfo');
        $this->attributes['id'] = $info['id'];
        $this->attributes['name'] = $info['name'];
        $this->attributes['email'] = $info['email'];
        if (!empty($info['link'])) {
            $this->attributes['url'] = $info['link'];
        }
    }