Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

ROBLOX Communication with Web Servers Help?

Asked by 9 years ago

Basically, I want ROBLOX to check each player when they enter with an API dump of sorts on my web server. Basically a dumbed down RAE but personal. I'm NOT asking anyone to do it for me, just your ideas/suggestions on how to most efficiently do it.

0
Are you asking for the ROBLOX side of it, or the API design, or how to program it on the server? BlueTaslem 18071 — 9y
0
Honestly, both. :/ I don't want anyone to do it for me, just suggestions. DEVEL0PMENT 35 — 9y

1 answer

Log in to vote
0
Answered by
25564 200 Moderation Voter
9 years ago

I have no clue what RAE stands for but here is a code snippet for you to work with.

<?php
//--Read the Input with PHP
$Input =  json_decode(file_get_contents('php://input'))->message);
?>

--Sending the some data
local t = {message='Hello, World!'}
local HttpService = Game:GetService'HttpService'
HttpService:PostAsync('URL', HttpService:JSONEncode( t ))
Ad

Answer this question