Source: site.view [edit]
Function name: yahooAnswers
Arguments: question
Description: Calls YahooAnswers to see if it can answer question
Page type: webl
Render function:  
Module: global

Page source:

var url = "http://answers.yahooapis.com/AnswersService/V1/questionSearch";

var res = nil;

var P = GetURL(url, [. query=question, appid="wubhuboaa", "search_in"="question" .]);

var OrigQuestion = Elem(P, "Subject");
var AnswerToOrigQuestion = Elem(P, "ChosenAnswer");

if Size(OrigQuestion) > 0 and Size(AnswerToOrigQuestion) > 0 then
   res = Str_Trim(Text(OrigQuestion[0])) + ": " + Str_Trim(Text(AnswerToOrigQuestion[0]));
end;

res;