protected function _getAuthorizeUrl($redirectUri, $state) { return Dropbox_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 $host * Either the "API" or "API content" hostname from {@link getHost()}. * @param $path * The "path" part of the URL. For example, "/account/info". * @param null $params * URL parameters. For POST requests, do not put the parameters here. * Include them in the request body instead. * * @return string */ public function buildUrlForGetOrPut($host, $path, $params = null) { return Dropbox_RequestUtil::buildUrlForGetOrPut($this->userLocale, $host, $path, $params); }