Last active
August 18, 2022 21:10
-
-
Save cdiaz/a48dc7cbb4fb3dbfa555e016a5aae1dd to your computer and use it in GitHub Desktop.
Consulta NIT en el Registro Único Empresarial y Social (RUES)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
// Digite el NIT sin puntos ni guiones, el dígito de Verificación no es requerido. | |
request.post( | |
'http://www.rues.org.co/RUES_Web/Consultas/ConsultaNIT_json', | |
{ form: {strNIT: '891190346' } }, | |
function (error, response, result) { | |
if (!error && response.statusCode == 200) { | |
console.log(result) | |
} | |
} | |
); |
Hola @alexramdesigner , segun veo el error el conflicto es con illuminate/support el cual es el que utilizo para determinar la versión compatible de Laravel.
Que versión de Laravel estas usando ?
Ya no funciona no se encuentra la ruta http://www.rues.org.co/RUES_Web/Consultas/ConsultaNIT_json :(
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@miguelgarces123 intente instalar el paquete pero me sale el siguiente error:
`Problem 1
- Root composer.json requires miguelgarces/consultas-rues ^1.0 -> satisfiable by miguelgarces/consultas-rues[v1.0.0].
- miguelgarces/consultas-rues v1.0.0 requires illuminate/support ^5.5|^6|^7|^8 -> found illuminate/support[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require miguelgarces/consultas-rues:*" to figure out if any version is installable, or "composer require miguelgarces/consultas-rues:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.`