#NoEnv
gistID := "65d5311f8634a835a1f69bc3961af975"
resp := {}
If (!HTTPReq("GET", "https://api.github.com/gists/" . gistID,, rawresp, "Accept: application/vnd.github.v3+json"))
Throw Exception("Failed to download gist",, "gist ID: " gistID )
resp := JSON.Load(rawresp)
For fname, fattr in resp.files {
MsgBox % fattr.content
}
return
#include <JSON>
Comments
0 B
|👍
/👎
0 B
|👍
/👎