| Package | com.yahoo.webapis.answers |
| Class | public class AnswersService |
| Inheritance | AnswersService flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| applicationID : String
Your Yahoo! Web Services application ID.
| AnswersService | ||
| Method | Defined 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 | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| AnswersService | ||||
| AnswersService | ||||
| AnswersService | ||||
| AnswersService | ||||
| AnswersService | ||||
| AnswersService | ||||
| AnswersService | ||||
| applicationID | property |
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
| AnswersService | () | constructor |
public function AnswersService(applicationID:String = null)Constructor.
ParametersapplicationID:String (default = null) |
| getUserRSS | () | method |
public function getUserRSS(userID:String):StringGet the URL of a user's RSS Feed.
ParametersuserID:String — The User's ID
|
String |
| getUserURL | () | method |
public function getUserURL(userID:String):StringGet the URL of a user's profile.
ParametersuserID:String — The user's ID
|
String |
| searchAnswers | () | method |
public function searchAnswers(questionID:String):voidReturn answers by question ID.
Important: Not all questions have answers, before calling this, check the numAnswers property to see if answers are present.
questionID:String — The ID of the question
|
| searchComments | () | method |
public function searchComments(questionID:String):voidReturn 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):voidReturn question by question ID.
ParametersquestionID:String — The ID of the question
|
| searchQuestionsByCategory | () | method |
public function searchQuestionsByCategory(categoryID:String, params:CategoryParams = null):voidSearch questions by category.
ParameterscategoryID: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):voidSearch questions based on a search term.
Parametersquery:String — The search term
|
|
params:SearchParams (default = null) — Optional parameters to filter searches
|
| searchQuestionsByUser | () | method |
public function searchQuestionsByUser(userID:String, params:UserParams = null):voidSearch questions by user.
ParametersuserID:String — The ID of the user
|
|
params:UserParams (default = null) — Optional parameters to filter searches
|
| errorEvent | event |
| getAnswersResult | event |
| getCommentsResult | event |
| getQuestionResult | event |
| searchByCategoryResult | event |
| searchByQueryResult | event |
| searchByUserResult | event |