Message Boards Message Boards

0
|
14494 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

API - validatequery response format problems

Posted 10 years ago
2 Replies

Are you talking about http://products.wolframalpha.com/api/documentation.html, section "The validatequery Function",

http://api.wolframalpha.com/v2/validatequery?input=pi&appid=xxxxx 

?

Could you provide an example of an incorrect query that gives the WrapValidateQueryResult output?

POSTED BY: Bruce Miller

Hi Bruce, thank you for your answer. Exactly, that's the validatequery function.

As an example you can use the simple one (pi) you quoted on your reply.

http://api.wolframalpha.com/v2/validatequery?input=pi&appid=xxxxx

If I use it with a real AppId no problem: I get the XML as expected. However, if I specify a fake AppId I get that pseudo-json output. Now, this is a request with an error item (code, message) and I think it would be better to deal with it as an XML output, even if it's an error... just to be more consistent.

Let me know if you need other elements! :)

Also, I would give others suggestions about the XML output, if possible.

However, thank you for your hard work on WolframAlpha. I really love it.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract