array ( 'method' => 'POST', 'header' => array ( 'Content-Type: application/json' ), 'content' => json_encode ( $data ) ) ); $context = stream_context_create ( $options ); return file_get_contents ( $url, false, $context ); } ?>