/** * Perform an authenticated / signed apiHttpRequest. * This function takes the apiHttpRequest, calls apiAuth->sign on it (which can modify the request in what ever way fits the auth mechanism) * and then calls apiCurlIO::makeRequest on the signed request * * @param apiHttpRequest $request * @return apiHttpRequest the resulting request with the responseHttpCode, responseHeaders and responseBody filled in */ public function authenticatedRequest(apiHttpRequest $request) { $request = $this->auth->sign($request); return $this->makeRequest($request); }
/** * @param string $approvalPrompt Possible values for approval_prompt include: * {@code "force"} to force the approval UI to appear. (This is the default value) * {@code "auto"} to request auto-approval when possible. */ public function setApprovalPrompt($approvalPrompt) { $this->auth->setApprovalPrompt($approvalPrompt); }