| Package | com.yahoo.webapis.answers.params |
| Class | public class CategoryParams |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| category_id | property |
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_name | property |
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
| region | property |
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
| results | property |
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
| sort | property |
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
| start | property |
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
| type | property |
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
| CategoryParams | () | constructor |
public function CategoryParams()CategoryParams Constructor
| collect | () | method |
public function collect():Stringcollect Returns a string containing all enumerable variables, in the MIME content encoding application/x-www-form-urlencoded.
ReturnsString |