EOAuth2Service::makeSignedRequest PHP Method

makeSignedRequest() public method

Returns the protected resource.
See also: makeRequest
public makeSignedRequest ( string $url, array $options = [], boolean $parseJson = true ) : stdClass
$url string url to request.
$options array HTTP request options. Keys: query, data, referer.
$parseJson boolean Whether to parse response in json format.
return stdClass the response.
    public function makeSignedRequest($url, $options = array(), $parseJson = true)
    {
        if (!$this->getIsAuthenticated()) {
            throw new CHttpException(401, Yii::t('eauth', 'Unable to complete the request because the user was not authenticated.'));
        }
        // Merge query fields with fields required for signed request.
        $options['query'] = array_merge(isset($options['query']) ? $options['query'] : array(), $this->getSignedRequestFields());
        $result = $this->makeRequest($url, $options, $parseJson);
        return $result;
    }