如何从 json ds_map 中找到值?
How can I find the value from json ds_map?
我正在尝试从中获取 SteamAPI 的 SteamID 值 JSON link:
steam_request = http_get("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=A689432685442875EBB8B6E4039D73AE&steamids=76561198074393173");
result_map = json_decode(steam_request);
steam_id = ds_map_find_value(result_map, "steamid");
当我试图从这个变量中获取字符串时,它只是告诉我这个变量未定义。
http_get
returns 标识符,不是数据。您应该在 HTTP Event to get the data. Read the documentation 中使用此标识符以获取详细信息
我正在尝试从中获取 SteamAPI 的 SteamID 值 JSON link:
steam_request = http_get("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=A689432685442875EBB8B6E4039D73AE&steamids=76561198074393173");
result_map = json_decode(steam_request);
steam_id = ds_map_find_value(result_map, "steamid");
当我试图从这个变量中获取字符串时,它只是告诉我这个变量未定义。
http_get
returns 标识符,不是数据。您应该在 HTTP Event to get the data. Read the documentation 中使用此标识符以获取详细信息