-
Notifications
You must be signed in to change notification settings - Fork 66
Conversation
Hola @brianpando, gracias! por la contribución, veo que varias cosas del CI se han caido. $json = $this->client->post($url, json_encode(['CODDNI' => $dni], [
'Content-Type' => 'application/json;chartset=utf-8',
'Requestverificationtoken' => '30OB7qfO2MmL2Kcr1z4S0ttQcQpxH9pDUlZnkJPVgUhZOGBuSbGU4qM83JcSu7DZpZw-IIIfaDZgZ4vDbwE5-L9EPoBIHOOC1aSPi4FS_Sc1:clDOiaq7mKcLTK9YBVGt2R3spEU8LhtXEe_n5VG5VLPfG9UkAQfjL_WT9ZDmCCqtJypoTD26ikncynlMn8fPz_F_Y88WFufli38cUM-24PE1',
]));
$raw = json_decode($json)->data; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Utilizar HTTP Client implementado.
buen punto! |
Hola, cambie el codigo para usarlo de la forma que comentas, funciona bien, pero no se como resolver para el async phpreact. ¿Como pasas el parametro de DNI via POST con esa libreria? |
3c34e9f
to
b2b8034
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gracias @brianpando, agregue la parte que faltaba
Codigo para consultar mediante JNE JSON mediante CURL.