I have a game that is posting high score to a twitter account using a aws server as proxy. The roblox is simple enough:
– globals
– replace with your real service endpoint!
local URL = “http://localhost:8080/api/highscore”
— post stuff
…
function postToService(user, ts)
local HttpService = game:GetService("HttpService")
local data = {
username = user;
timestring = ts;
}
local json = HttpService:JSONEncode(data)
print(json)
print("making post now\n")
-- Make the request
local response = HttpService:PostAsync(URL, json)
-- The response will be the URL to the new paste (or an error string if something was wrong)
print(response)
end
…
the web service example you can find under:
web service downloads
this part is primarily java
the rest is explained under
roblox game posting to twitter
I hope someone finds this helpful