Hello! for an integration using lib Guzzle (PHP) I use this code:
client = new Client(nombre = “JOSUE”;
apellido_materno = “CONSTANTINO”;
$fecha = “1998-03-17”;
$res = client->request( 'GET', "https://jfhe88-rfc-generator-mexico.p.rapidapi.com/rest1/rfc/get?solo_homoclave=0&nombre=nombre&apellido_paterno=apellido_paterno&apellido_materno=apellido_materno&fecha=$fecha");
res->getBody()->getContents());
/** NOTES!:
-USE ALWAYS UPPER CASE;
-CLEAR TEXT FROM SPECIAL CHARACTERS ( ´, ñ, ');
Sorry for the identation, this textblock it won’t let me adjust it
Join in the discussion - add comment below: