Last active
April 4, 2023 19:40
-
-
Save gastonsoto/e20cd0909c44b834e6d0 to your computer and use it in GitHub Desktop.
Sistema de tracking de correo del correo argentino.
This file contains hidden or 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
<?php | |
$ch = curl_init(); | |
/* Numero de pieza: Para envios nacionales solo numeros. Para internacionales alfanumerico. | |
** Codigo alfanumerico ej. CW123456789US | |
*/ | |
$id = $_GET['id']; | |
/* Pais: ISO de 2 letras*/ | |
$pais = $_GET['pais']; | |
/* Producto: Para envios nacionales prefijo de 2 letras */ | |
$poducto = $_GET['producto']; | |
/* Metodo: Tipo de envio | |
** ondnc -> Origen Nacional - Destino Nacional | |
** ondi -> Origen Nacional - Destino Internacional | |
** oidn -> Origen Internacional - Destino Nacional | |
** ondng -> DNI Correspondencia Nacional | |
** onpa -> Pasaporte Correspondencia Nacional | |
** ondnp -> Track & Trace Plus | |
*/ | |
$metodo = $_GET['metodo']; | |
curl_setopt($ch, CURLOPT_URL,"http://www.correoargentino.com.ar/sites/all/modules/custom/ca_forms/api/ajax.php"); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS,"id=$id&producto=$producto&pais=$pais&action=$metodo"); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
$response = curl_exec($ch); | |
curl_close ($ch); | |
header('Content-type: text/html; charset=utf-8'); | |
echo $response; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aquí hay una pero es paga https://rapidapi.com/kijamve/api/transportistas-de-argentina