From 6bec287363a68db42d9f754f006664a3103e8809 Mon Sep 17 00:00:00 2001 From: troy Date: Sun, 9 Jan 2022 13:27:20 +0100 Subject: [PATCH] die troy api --- troy-api.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 troy-api.php 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