local httpService = game:GetService("HttpService")
local tableData = {"Food","Apple","Orange","Grape"}
function test()
httpService:PostAsync("https://WebsiteUrlGoesHere.com",tableData)
wait()
print("Data Sent!")
end
I don’t really understand the question here. Yes that’s how you would send an array to an api via PostAsync.
In order to send information via :PostAsync, your table needs to be converted to JSON format. You can do this using httpService:JSONEncode(table x)
For the fields of your table, I think that depends on the output of where this data is being sent to.
Soo, I’v shortened the table to 4 variables to simplify my question. normally there would be thousands of variables in this table.
To prevent me from getting the “HTTP 429 (Too Many Requests)” error, I’m trying to send all the data at once.
sorry i should have said this before posting the question.
Well I mean that’s still not a question. I’m still not sure what you’re having trouble with but this is generally what you would do when sending a table via post request
Thanks Bro! I just sent 10k Lines of data in one Second! ![]()