RFC Generator Mexico

GRATUIT
Par jfhe88 | Mise à jour il y a un mois | Tools
Popularité

9.3 / 10

Latence

224ms

Niveau de service

100%

Health Check

N/A

Retour à toutes les discussions

Simple Integration with PHP using Guzzle

Rapid account: Josueosorioc
josueosorioc
il y a un an

Hello! for an integration using lib Guzzle (PHP) I use this code:

headers=[headers=>[XRapidAPIKey=>"XXXXXXXXXXXXXXXXXXXXXXXX",XRapidAPIHost=>"XXXXXXXXXXXXXXXXXXXXXXXX",]];headers = [ 'headers' => [ 'X-RapidAPI-Key' => "XXXXXXXXXXXXXXXXXXXXXXXX", 'X-RapidAPI-Host' => "XXXXXXXXXXXXXXXXXXXXXXXX", ] ]; client = new Client(headers);headers); nombre = “JOSUE”;
apellidopaterno="OSORIO"apellido_paterno = "OSORIO" 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");

results=jsondecode(results = json_decode(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

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires