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

Help with JSON?

Asked by 10 years ago

I believe this should correctly work from Stypi

Im currently making a HttpService Admin...

Im trying to make a "Chat Log"/"Bug Log"/"Loader" The "ChatLog"/"Bug Log" will be the PostAsync() and the GetAsync() will be the "Loader" so basically...

The PostAsync = Admin Abuse Log (AKA: abuse/jillmiles1 is abusing with SkyAdmin with command "lag"

The PostAsync[2] = Admin Bug Log (AKA: bug/error line 7878787 script error)

The PostAsync[3] = Post Rankings (AKA: Owner={'jillmiles1'} Member={'djijdijdwijdw'} etc...)

The GetAsync = Loads the "Main Client"

The GetAsync[2] = Loads The Ranks

The GetAsync[3] = Loads Settings into Workspace then removes.

--JSONDecode JSONEncode UrlEncode 
--GetAsync PostAsync 
local Http=game:GetService('HttpService')
local Data={'TESTING JSON POSTASYNC'}
local Link=('https://code.stypi.com/jillmiles1/JSONTest')
local ReturnLink=('https://code.stypi.com/raw/jillmiles1/JSONTest')

function JSON()
Http:UrlEncode(Data,Link) --Maybe works >:/
wait() 
Http:GetAsync(ReturnLink())
wait()
error(Data) wait() error(Link)
end

while true do
wait()
JSON()
wait(5)
end
0
HttpService looks at the raw text source. See view-source:https://code.stypi.com/jillmiles1/JSONTest for example -- not cleaned up for you to use. (But with the /raw/ one, it will be okay) BlueTaslem 18071 — 10y
0
So I need a new wesite??? Or.. what In the world would I do to make this correct? jillmiles1 3 — 10y
0
What are you trying to do? You should explain that in your question so we have an idea of what to advise. BlueTaslem 18071 — 10y
0
Okay, Let me edit the question. jillmiles1 3 — 10y

Answer this question