RFC Generator Mexico

FREE
By jfhe88 | Updated 21 दिन पहले | Tools
Popularity

9.3 / 10

Latency

231ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Simple Integration with PHP using Guzzle

Rapid account: Josueosorioc
josueosorioc
एक वर्ष पहले

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

Join in the discussion - add comment below:

Login / Signup to post new comments