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

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论