Packagecom.yahoo.webapis.answers.params
Classpublic class CategoryParams

Yahoo! Answers API - A Object for Passing Parametors to the Query Search, uses URLLoader through composition.



Public Properties
 PropertyDefined by
  category_id : String
category_id - Search only in the specified category ID or IDs.
CategoryParams
  category_name : String
category_name - Search only in the specified category name or names.
CategoryParams
  region : String
region - Filter based on country: us: United States uk: United Kingdom ca: Canada au: Australia in: India es: Spain br: Brazil ar: Argentina mx: Mexico e1: en Espanol it: Italy de: Germany fr: France sg: Singapore omit for default "us".
CategoryParams
  results : Number
results - Number of questions to be returned.
CategoryParams
  sort : String
sort - Sorting order of result set: relevance: By relevance.
CategoryParams
  start : Number
start - Starting question to list, used to display further results.
CategoryParams
  type : String
type - Question status.
CategoryParams
Public Methods
 MethodDefined by
  
CategoryParams Constructor
CategoryParams
  
collect():String
collect Returns a string containing all enumerable variables, in the MIME content encoding application/x-www-form-urlencoded.
CategoryParams
Property detail
category_idproperty
category_id:String  [read-write]

category_id - Search only in the specified category ID or IDs. (IDs may be seen in the request URLs when browsing Yahoo! Answers categories.)

Implementation
    public function get category_id():String
    public function set category_id(value:String):void
category_nameproperty 
category_name:String  [read-write]

category_name - Search only in the specified category name or names. Will match against the full path to the English category name as found on the Yahoo! Answers site. Category names are case-sensitive and should be URL-encoded. Computers & Internet>Software, for example, looks like this: Computers+%26+Internet%3ESoftware. omit for default to all categories

Implementation
    public function get category_name():String
    public function set category_name(value:String):void
regionproperty 
region:String  [read-write]

region - Filter based on country: us: United States uk: United Kingdom ca: Canada au: Australia in: India es: Spain br: Brazil ar: Argentina mx: Mexico e1: en Espanol it: Italy de: Germany fr: France sg: Singapore omit for default "us". You can enter multiple regions. The first will determine the destination country of hyperlinks.

Implementation
    public function get region():String
    public function set region(value:String):void
resultsproperty 
results:Number  [read-write]

results - Number of questions to be returned. default 10, max 50

Implementation
    public function get results():Number
    public function set results(value:Number):void
sortproperty 
sort:String  [read-write]

sort - Sorting order of result set: relevance: By relevance. date_desc: By date, newest first. date_asc: By date, oldest first. omit for default "relevance".

Implementation
    public function get sort():String
    public function set sort(value:String):void
startproperty 
start:Number  [read-write]

start - Starting question to list, used to display further results. default 0

Implementation
    public function get start():Number
    public function set start(value:Number):void
typeproperty 
type:String  [read-write]

type - Question status. Set to "all", "resolved", "open", or "undecided". omit for default "all"

Implementation
    public function get type():String
    public function set type(value:String):void
Constructor detail
CategoryParams()constructor
public function CategoryParams()

CategoryParams Constructor

Method detail
collect()method
public function collect():String

collect Returns a string containing all enumerable variables, in the MIME content encoding application/x-www-form-urlencoded.

Returns
String