I am working with an external API in Laravel - where I have to make the below request.
There is a parameter product which is to be repeated for each of the product - however when the below request is sent only the last value of the product is recognized at the endpoint.
$action = Http::get('https://http.cc/api/call.xml', [
'authid' => env('API_USER'),
'api-key' => env('API_KEY'),
'product' => 'Some Value',
'product' => 'Some Value',
'customer' => 1,
]);
I have also tried the following but failed:
'product[]' => 'Some Value',
'product[]' => 'Some Value',
'product' => ['Some Value', 'Some Value']
Can anyone help with the solution here.
API: https://manage.logicboxes.com/kb/answer/776 (you can refer to ns parameter)