1b.app
Link copied -

"What is the correct way to transfer the filter array and its value to the request, can you give an example?"

"What is the correct way to transfer the filter array and its value to the request, can you give an example?"
https://1b.app/ru/api/product/
Original question is available on version: ru

Answers:

description=descr&filter%5B0%5D%5Bfilterid%5D=1&filter%5B0%5D%5Bfiltervalue%5D=%D0%97%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8 %D0%B5+1&filter%5B1%5D%5Bfilterid%5D=2&filter%5B1%5D%5Bfiltervalue%5D=%D0%97%D0%BD%D0%B0%D1%87%D0%B5%D0%BD% D0%B8%D0%B5+2
if you write in php something like this:
$productInfo = array(
'description' => 'descr',
'filter' => array(
array('filterid' => 1, 'filtervalue' => 'Value 1'),
array('filterid' => 2, 'filtervalue' => 'Value 2')
),
);
$query = http_build_query($productInfo);
17.05.2022, 15:57
Original comment available on version: ru


Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment