im trying to do a http request in gamemaker 2, but i dont undersand how it works! actual code:
var map = ds_map_create();
ds_map_add(map, "Authorization", "Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
var url = "https://api.leref.ga/" //example api
http_request(url, "GET", map, "");
json = async_load[? "result"];
show_debug_message(json)
I checked the gml manual, I even did it exactly as explained, but I always get a same error: