I'm sending a POST request using guzzle from a laravel project to external laravel api project. Request in sending properly and it returning but the thing i want to know is that i'm sending few parameters from laravel project to external laravel api using guzzle. How do i retrieve those sent parameter in that external laravel api controller page.
Here is sample of my code.From where i'm calling api.
$request =
$client->
request('POST',
'http://ift.tt/2jPWXZO',
[
'form_params' =>
[
'field_name' => 'abc',
'other_field' => '123',
'nested_field' =>
[
'nested' => 'hello'
]
]
]);
And this is the function in API project where i want to receive the request and print.
public function GetApplicationModuleList()
{
echo 'here'; // Here i want to retrieve all the parameters values whic i already sent from above code.
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire