$data = array("category" => 2);
$postdata = http_build_query($data);
$options = array(
'http' => array(
'header' => 'Content-type: application/json; charset=utf-8',
'method' => 'GET',
'content' => $postdata
)
);
$stream = stream_context_create($options);
$api_url = "****";
$result = file_get_contents($api_url, false, $stream);