forked from JossMP/datos-peru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.php
31 lines (27 loc) · 915 Bytes
/
all.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
header('Content-Type: text/txt');
require_once(__DIR__ . "/vendor/autoload.php");
$rop = new \jossmp\jne\rop();
$dni = "44274795";
$response = $rop->consulta($dni);
if ($response->success == true) {
echo PHP_EOL . '[ROP]:' . PHP_EOL . $response->json(NULL, TRUE) . PHP_EOL;
}
$essalud = new \jossmp\essalud\asegurado();
$dni = "44274795";
$response = $essalud->consulta($dni);
if ($response->success == true) {
echo PHP_EOL . '[EsSalud]:' . PHP_EOL . $response->json(NULL, TRUE) . PHP_EOL;
}
$mtc = new \jossmp\mtc\conductor();
$dni = "42718060";
$response = $mtc->consulta($dni);
if ($response->success == true) {
echo PHP_EOL . '[MTC]:' . PHP_EOL . $response->json(NULL, TRUE) . PHP_EOL;
}
$servir = new \jossmp\servir\servir();
$dni = "44274795";
$response = $servir->consulta($dni);
if ($response->success == true) {
echo PHP_EOL . '[servir]:' . PHP_EOL . $response->json(NULL, TRUE) . PHP_EOL;
}