#Reqn Post Request

1 messages · Page 1 of 1 (latest)

digital void
#
    trigger:
    
        set {_uuid} to uuid of player
        replace all "-" in {_uuid} with "" 
        
        send a "POST" request to "https://mc.astrolabs.net/index.php?route=/api/v2/integration/verify" with the body "{""integration"":""Minecraft"", ""code"":""%arg-1%"", ""identifier"":""%{_uuid}%"", ""username"":""%player%""}" and the headers "Authorization: Bearer <code>"
        
        set {_reporter} to last http response
        send {_reporter}```

I'm attempting to get {_uuid} to work in the body of the post request but it throws me this error. If I input the uuid manually by doing ``0ef1ad52a6a947d399227f60dccdd2cd`` instead of ``%{_uuid}%`` in the body of the post request, it'll work, but if it's the other way around it won't work, it throws the error as shown.
rugged mango
#

yoo

digital void
rugged mango
#

igh so, ion know to much abt api, i made a stock market skript once, so ill try, waht kinda api is it

rugged mango
#

@lean shadow

#

this guys pro at api fr ^^

digital void
rugged mango
digital void
rugged mango
rugged mango
#

ohh

digital void
#

That's what I'm doing the post portion for

rugged mango
#

ok, jus curious waht u tryna send?

#

idk waht nameless mc is

digital void
#

Been out for years.

rugged mango
#

idk waht it is tho,. and i think it might be the fact u gotta seperate ur body stuff, like, with headresr "" and "" with headers "" and ""

digital void
rugged mango
lean shadow
#

that'll ensure you aren't making any json errors

digital void