Handbook
Glossary
query ( query -- xml )
Vocabulary
wolfram-alpha
.
private
Inputs
query
an
object
Outputs
xml
an
object
Definition
USING:
formatting
http.client
kernel
namespaces
urls.encoding
wolfram-alpha
xml
xml.traversal
;
IN:
wolfram-alpha.private
:
query
( query -- xml )
url-encode
wolfram-api-id
get-global
"https://api.wolframalpha.com/v2/query?input=%s&appid=%s"
sprintf
http-get
nip
string>xml
dup
"error"
tag-named
[
"msg"
tag-named
children>string
throw
]
when*
;