Packagecom.yahoo.webapis.answers
Classpublic class AnswersService
InheritanceAnswersService Inheritance flash.events.EventDispatcher

ActionScript 3 interface to the Yahoo! Answers API.



Public Properties
 PropertyDefined by
  applicationID : String
Your Yahoo! Web Services application ID.
AnswersService
Public Methods
 MethodDefined by
  
AnswersService(applicationID:String = null)
Constructor.
AnswersService
  
getUserRSS(userID:String):String
Get the URL of a user's RSS Feed.
AnswersService
  
getUserURL(userID:String):String
Get the URL of a user's profile.
AnswersService
  
searchAnswers(questionID:String):void
Return answers by question ID.
AnswersService
  
searchComments(questionID:String):void
Return comments by question ID.
AnswersService
  
searchQuestionByID(questionID:String):void
Return question by question ID.
AnswersService
  
searchQuestionsByCategory(categoryID:String, params:CategoryParams = null):void
Search questions by category.
AnswersService
  
searchQuestionsByTerm(query:String, params:SearchParams = null):void
Search questions based on a search term.
AnswersService
  
searchQuestionsByUser(userID:String, params:UserParams = null):void
Search questions by user.
AnswersService
Events
 EventSummaryDefined by
    AnswersService
    AnswersService
    AnswersService
    AnswersService
    AnswersService
    AnswersService
    AnswersService
Property detail
applicationIDproperty
applicationID:String  [read-write]

Your Yahoo! Web Services application ID. Required.

Implementation
    public function get applicationID():String
    public function set applicationID(value:String):void

See also

Constructor detail
AnswersService()constructor
public function AnswersService(applicationID:String = null)

Constructor.

Parameters
applicationID:String (default = null)
Method detail
getUserRSS()method
public function getUserRSS(userID:String):String

Get the URL of a user's RSS Feed.

Parameters
userID:String — The User's ID

Returns
String
getUserURL()method 
public function getUserURL(userID:String):String

Get the URL of a user's profile.

Parameters
userID:String — The user's ID

Returns
String
searchAnswers()method 
public function searchAnswers(questionID:String):void

Return answers by question ID.

Important: Not all questions have answers, before calling this, check the numAnswers property to see if answers are present.

Parameters
questionID:String — The ID of the question
searchComments()method 
public function searchComments(questionID:String):void

Return comments by question ID.

Important: Not all questions have comments, before calling this, check the numComments property to see if comments are present. Parameters

questionID:String — The ID of the Question.
searchQuestionByID()method 
public function searchQuestionByID(questionID:String):void

Return question by question ID.

Parameters
questionID:String — The ID of the question
searchQuestionsByCategory()method 
public function searchQuestionsByCategory(categoryID:String, params:CategoryParams = null):void

Search questions by category.

Parameters
categoryID:String — The ID of the category.
 
params:CategoryParams (default = null) — Optional paramaters to filter searches
searchQuestionsByTerm()method 
public function searchQuestionsByTerm(query:String, params:SearchParams = null):void

Search questions based on a search term.

Parameters
query:String — The search term
 
params:SearchParams (default = null) — Optional parameters to filter searches
searchQuestionsByUser()method 
public function searchQuestionsByUser(userID:String, params:UserParams = null):void

Search questions by user.

Parameters
userID:String — The ID of the user
 
params:UserParams (default = null) — Optional parameters to filter searches
Event detail
errorEventevent 
Event object type: com.yahoo.webapis.answers.events.AnswersErrorEvent

getAnswersResultevent  
Event object type: com.yahoo.webapis.answers.events.AnswersResultEvent

getCommentsResultevent  
Event object type: com.yahoo.webapis.answers.events.AnswersResultEvent

getQuestionResultevent  
Event object type: com.yahoo.webapis.answers.events.AnswersResultEvent

searchByCategoryResultevent  
Event object type: com.yahoo.webapis.answers.events.AnswersResultEvent

searchByQueryResultevent  
Event object type: com.yahoo.webapis.answers.events.AnswersResultEvent

searchByUserResultevent  
Event object type: com.yahoo.webapis.answers.events.AnswersResultEvent