RFC Generator Mexico

חינם
על ידי jfhe88 | מְעוּדכָּן a month ago | Tools
פּוֹפּוּלָרִיוּת

9.3 / 10

חֶבִיוֹן

224ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

Simple Integration with PHP using Guzzle

Rapid account: Josueosorioc
josueosorioc
a year ago

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

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות