$params = array(
"client_id" => B24Config::CLIENT_ID,
"response_type" => "code",
"redirect_uri" => B24Config::REDIRECT_URI,
);
redirect("http://myaddress.bitrix24.ru/oauth/authorize/?".http_build_query($params));