protected function _getAuthorizeUrl($redirectUri, $state, $forceReapprove = false) { if ($forceReapprove === false) { $forceReapprove = null; // Don't include it in the URL if it's the default value. } return RequestUtil::buildUrlForGetOrPut($this->userLocale, $this->appInfo->getHost()->getWeb(), "1/oauth2/authorize", array("client_id" => $this->appInfo->getKey(), "response_type" => "code", "redirect_uri" => $redirectUri, "state" => $state, "force_reapprove" => $forceReapprove)); }
protected function _getAuthorizeUrl($redirectUri, $state) { return RequestUtil::buildUrlForGetOrPut($this->userLocale, $this->appInfo->getHost()->getWeb(), "1/oauth2/authorize", array("client_id" => $this->appInfo->getKey(), "response_type" => "code", "redirect_uri" => $redirectUri, "state" => $state)); }
/** * Build a URL for making a GET or PUT request. Will add the "locale" * parameter. * * @param string $host * Either the "API" or "API content" hostname from {@link getHost()}. * @param string $path * The "path" part of the URL. For example, "/account/info". * @param array|null $params * URL parameters. For POST requests, do not put the parameters here. * Include them in the request body instead. * * @return string */ function buildUrlForGetOrPut($host, $path, $params = null) { return RequestUtil::buildUrlForGetOrPut($this->userLocale, $host, $path, $params); }