public static string GetLeastURL() { string api_response = APIExtension.callWebClient(_LATEST_VER_API_URL); if (api_response == "") return ""; JsonDocument document = JsonDocument.Parse(api_response); JsonElement root = document.RootElement; JsonElement url_link = root.GetProperty("html_url"); return url_link.GetString(); }
public static string GetLeastVersion() { string api_response = APIExtension.callWebClient(_LATEST_VER_API_URL); if (api_response == "") return ""; JsonDocument document = JsonDocument.Parse(api_response); JsonElement root = document.RootElement; JsonElement tag_name = root.GetProperty("tag_name"); return tag_name.GetString(); }