diff --git a/troy-api.php b/troy-api.php new file mode 100644 index 0000000..eea91e1 --- /dev/null +++ b/troy-api.php @@ -0,0 +1,15 @@ + array ( + 'header' => "Content-type: application/x-www-form-urlencoded\r\n", + 'method' => 'POST', + 'content' => json_encode ( $data ) + ) + ); + $context = stream_context_create ( $options ); + return file_get_contents ( $url, false, $context ); +} +?> \ No newline at end of file