Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

122
Vistas
How to retrieve query parameters from GET request using javascript?

Below is my GET request. I am trying to retrieve the client_id and redirect_uri parameters.

https://sdkapp.example.com:8443/central-login/index.html?client_id=dtvClient&redirect_uri=https://www.example3.com:443/callback

And then utilize those values, in a embedded js script within the same html page.

Config.set({
  clientId: //fetched query parameter for client_id
  redirectUri: // fetched query parameter for redirect_uri
  });
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If this is on the client you can use URL and searchParams

// const url = new URL(location.href); // uncomment and delete next line
const url = new URL("https://sdkapp.example.com:8443/central-login/index.html?client_id=dtvClient&redirect_uri=https://www.example3.com:443/callback"); // for example

const obj = {
  "clientId": url.searchParams.get("client_id"),
  "redirectUri": url.searchParams.get("redirect_uri")
};
console.log(obj)

// Config.set(obj)

If on the server: for example node also has URL

And here is an answer for php: Get URL query string parameters

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda