Changeset 13087

Show
Ignore:
Timestamp:
03/14/08 00:18:14 (10 months ago)
Author:
alex
Message:

"default" is a reserved word in JS. Making occurances of it in keys palletable to the parser. Fixes yahoo.smd for Safari/WebKit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/rpc/SMDLibrary/yahoo.smd

    r12759 r13087  
    11{ 
    2         SMDVersion: "2.0", 
    3         id: "http://developer.yahoo.com/search/", // FIXME: is this the kind of value we're supposed to use here? 
    4         description: "Yahoo's search API", 
     2        "SMDVersion": "2.0", 
     3        // FIXME: is this the kind of value we're supposed to use here? 
     4        "id": "http://developer.yahoo.com/search/",  
     5        "description": "Yahoo's search API", 
    56 
    67        transport: "JSONP", 
     
    89        additionalParameters: true, 
    910        parameters: [ 
    10                 { name: "appid", optional: false, default: "dojotoolkit" }, 
    11                 { name: "output", optional: false, default: "json" } 
     11                { name: "appid", optional: false, "default": "dojotoolkit" }, 
     12                { name: "output", optional: false, "default": "json" } 
    1213        ], 
    1314 
     
    2728                        target: "http://answers.yahooapis.com/AnswersService/V1/questionSearch", 
    2829                        parameters: [ 
    29                                 { name: "query", type: "string", optional: false, default: "" }, 
    30                                 { name: "search_in", type: "string", optional: true, default: "all" }, // can be "all", "question", "best_answer" 
    31                                 { name: "category_id", type: "integer", optional: true, default: null }, // one of (category_id, category_name) is required 
    32                                 { name: "category_name", type: "string", optional: true, default: null }, 
    33                                 { name: "region", type: "string", optional: true, default: "us" }, // can be "us", "uk", "ca", "au", "in", "es", "br", "ar", "mx", "e1", "it", "de", "fr", "sg" 
    34                                 { name: "date_range", type: "string", optional: true, default: "all" }, // can be "all", "7", "7-30", "30-60", "60-90", "more90" 
    35                                 { name: "sort", type: "string", optional: true, default: "relevance" }, // can be "relevance", "date_desc", "date_asc" 
    36                                 { name: "type", type: "string", optional: true, default: "all" }, // can be "all", "resolved", "open", "undecided" 
    37                                 { name: "start", type: "integer", optional: true, default: 0 }, 
    38                                 { name: "results", type: "integer", optional: true, default: 10 } // max 50 
     30                                { name: "query", type: "string", optional: false, "default": "" }, 
     31                                { name: "search_in", type: "string", optional: true, "default": "all" }, // can be "all", "question", "best_answer" 
     32                                { name: "category_id", type: "integer", optional: true, "default": null }, // one of (category_id, category_name) is required 
     33                                { name: "category_name", type: "string", optional: true, "default": null }, 
     34                                { name: "region", type: "string", optional: true, "default": "us" }, // can be "us", "uk", "ca", "au", "in", "es", "br", "ar", "mx", "e1", "it", "de", "fr", "sg" 
     35                                { name: "date_range", type: "string", optional: true, "default": "all" }, // can be "all", "7", "7-30", "30-60", "60-90", "more90" 
     36                                { name: "sort", type: "string", optional: true, "default": "relevance" }, // can be "relevance", "date_desc", "date_asc" 
     37                                { name: "type", type: "string", optional: true, "default": "all" }, // can be "all", "resolved", "open", "undecided" 
     38                                { name: "start", type: "integer", optional: true, "default": 0 }, 
     39                                { name: "results", type: "integer", optional: true, "default": 10 } // max 50 
    3940                        ] 
    4041                }, 
     
    4445                        target: "http://answers.yahooapis.com/AnswersService/V1/getByCategory", 
    4546                        parameters: [ 
    46                                 { name: "category_id", type: "integer", optional: true, default: null }, // one of (category_id, category_name) is required 
    47                                 { name: "category_name", type: "string", optional: true, default: null }, 
    48                                 { name: "type", type: "string", optional: true, default: "all" }, // can be "all", "resolved", "open", "undecided" 
    49                                 { name: "region", type: "string", optional: true, default: "us" }, // can be "us", "uk", "ca", "au", "in", "es", "br", "ar", "mx", "e1", "it", "de", "fr", "sg" 
    50                                 { name: "sort", type: "string", optional: true, default: "date_desc" }, // can be "date_desc", "date_asc", "ans_count_desc", "ans_count_asc" 
    51                                 { name: "start", type: "integer", optional: true, default: 0 }, 
    52                                 { name: "results", type: "integer", optional: true, default: 10 } // max 50 
     47                                { name: "category_id", type: "integer", optional: true, "default": null }, // one of (category_id, category_name) is required 
     48                                { name: "category_name", type: "string", optional: true, "default": null }, 
     49                                { name: "type", type: "string", optional: true, "default": "all" }, // can be "all", "resolved", "open", "undecided" 
     50                                { name: "region", type: "string", optional: true, "default": "us" }, // can be "us", "uk", "ca", "au", "in", "es", "br", "ar", "mx", "e1", "it", "de", "fr", "sg" 
     51                                { name: "sort", type: "string", optional: true, "default": "date_desc" }, // can be "date_desc", "date_asc", "ans_count_desc", "ans_count_asc" 
     52                                { name: "start", type: "integer", optional: true, "default": 0 }, 
     53                                { name: "results", type: "integer", optional: true, "default": 10 } // max 50 
    5354                        ] 
    5455                }, 
     
    5859                        target: "http://answers.yahooapis.com/AnswersService/V1/getQuestion", 
    5960                        parameters: [ 
    60                                 { name: "question_id", type: "string", optional: true, default: null } 
     61                                { name: "question_id", type: "string", optional: true, "default": null } 
    6162                        ] 
    6263                }, 
     
    6667                        target: "http://answers.yahooapis.com/AnswersService/V1/getByUser", 
    6768                        parameters: [ 
    68                                 { name: "user_id", type: "string", optional: false, default: "" }, 
    69                                 { name: "type", type: "string", optional: true, default: "all" }, // can be "all", "resolved", "open", "undecided" 
    70                                 { name: "filter", type: "string", optional: true, default: "question" }, // can be "question", "answer", "best_answer" 
    71                                 { name: "sort", type: "string", optional: true, default: "date_desc" }, // can be "date_desc", "date_asc", "ans_count_desc", "ans_count_asc" 
    72                                 { name: "start", type: "integer", optional: true, default: 0 }, 
    73                                 { name: "results", type: "integer", optional: true, default: 10 } // max 50 
     69                                { name: "user_id", type: "string", optional: false, "default": "" }, 
     70                                { name: "type", type: "string", optional: true, "default": "all" }, // can be "all", "resolved", "open", "undecided" 
     71                                { name: "filter", type: "string", optional: true, "default": "question" }, // can be "question", "answer", "best_answer" 
     72                                { name: "sort", type: "string", optional: true, "default": "date_desc" }, // can be "date_desc", "date_asc", "ans_count_desc", "ans_count_asc" 
     73                                { name: "start", type: "integer", optional: true, "default": 0 }, 
     74                                { name: "results", type: "integer", optional: true, "default": 10 } // max 50 
    7475                        ] 
    7576                }, 
     
    8384                        target: "http://search.yahooapis.com/AudioSearchService/V1/artistSearch", 
    8485                        parameters: [ 
    85                                 { name: "artist", type: "string", optional: true, default: "" }, // one of (artist, artistid) is required 
    86                                 { name: "artistid", type: "string", optional: true, default: "" }, 
    87                                 { name: "type", type: "string", optional: true, default: "all" }, // can be "all", "any", "phrase" 
    88                                 { name: "results", type: "integer", optional: true, default: 10 }, // max 50 
    89                                 { name: "start", type: "integer", optional: true, default: 1 } 
     86                                { name: "artist", type: "string", optional: true, "default": "" }, // one of (artist, artistid) is required 
     87                                { name: "artistid", type: "string", optional: true, "default": "" }, 
     88                                { name: "type", type: "string", optional: true, "default": "all" }, // can be "all", "any", "phrase" 
     89                                { name: "results", type: "integer", optional: true, "default": 10 }, // max 50 
     90                                { name: "start", type: "integer", optional: true, "default": 1 } 
    9091                        ] 
    9192                }, 
     
    9596                        target: "http://search.yahooapis.com/AudioSearchService/V1/albumSearch", 
    9697                        parameters: [ 
    97                                 { name: "artist", type: "string", optional: true, default: "" }, 
    98                                 { name: "artistid", type: "string", optional: true, default: "" }, 
    99                                 { name: "album", type: "string", optional: true, default: "" }, 
    100                                 { name: "albumid", type: "string", optional: true, default: "" }, 
    101                                 { name: "type", type: "string", optional: true, default: "all" }, // can be "all", "any", "phrase" 
    102                                 { name: "results", type: "integer", optional: true, default: 10 }, // max 50 
    103                                 { name: "start", type: "integer", optional: true, default: 1 } 
     98                                { name: "artist", type: "string", optional: true, "default": "" }, 
     99                                { name: "artistid", type: "string", optional: true, "default": "" }, 
     100                                { name: "album", type: "string", optional: true, "default": "" }, 
     101                                { name: "albumid", type: "string", optional: true, "default": "" }, 
     102                                { name: "type", type: "string", optional: true, "default": "all" }, // can be "all", "any", "phrase" 
     103                                { name: "results", type: "integer", optional: true, "default": 10 }, // max 50 
     104                                { name: "start", type: "integer", optional: true, "default": 1 } 
    104105                        ] 
    105106                }, 
     
    110111                        target: "http://search.yahooapis.com/AudioSearchService/V1/songSearch", 
    111112                        parameters: [ 
    112                                 { name: "artist", type: "string", optional: true, default: "" }, 
    113                                 { name: "artistid", type: "string", optional: true, default: "" }, 
    114                                 { name: "album", type: "string", optional: true, default: "" }, 
    115                                 { name: "albumid", type: "string", optional: true, default: "" }, 
    116                                 { name: "song", type: "string", optional: true, default: "" }, 
    117                                 { name: "songid", type: "string", optional: true, default: "" }, 
    118                                 { name: "type", type: "string", optional: true, default: "all" }, // can be "all", "any", "phrase" 
    119                                 { name: "results", type: "integer", optional: true, default: 10 }, // max 50 
    120                                 { name: "start", type: "integer", optional: true, default: 1 } 
     113                                { name: "artist", type: "string", optional: true, "default": "" }, 
     114                                { name: "artistid", type: "string", optional: true, "default": "" }, 
     115                                { name: "album", type: "string", optional: true, "default": "" }, 
     116                                { name: "albumid", type: "string", optional: true, "default": "" }, 
     117                                { name: "song", type: "string", optional: true, "default": "" }, 
     118                                { name: "songid", type: "string", optional: true, "default": "" }, 
     119                                { name: "type", type: "string", optional: true, "default": "all" }, // can be "all", "any", "phrase" 
     120                                { name: "results", type: "integer", optional: true, "default": 10 }, // max 50 
     121                                { name: "start", type: "integer", optional: true, "default": 1 } 
    121122                        ] 
    122123                }, 
     
    126127                        target: "http://search.yahooapis.com/AudioSearchService/V1/songDownloadLocation", 
    127128                        parameters: [ 
    128                                 { name: "songid", type: "string", optional: false, default: "" }, 
    129                                 { name: "results", type: "integer", optional: true, default: 10 }, // max 50 
    130                                 { name: "start", type: "integer", optional: true, default: 1 }, 
    131                                 { name: "source", type: "string", optional: true, default: "" } // can be "audiolunchbox", "artistdirect", "buymusic", "dmusic", "emusic", "epitonic", "garageband", "itunes", "yahoo", "livedownloads", "mp34u", "msn", "musicmatch", "mapster", "passalong", "rhapsody", "soundclick", "theweb" 
     129                                { name: "songid", type: "string", optional: false, "default": "" }, 
     130                                { name: "results", type: "integer", optional: true, "default": 10 }, // max 50 
     131                                { name: "start", type: "integer", optional: true, "default": 1 }, 
     132                                { name: "source", type: "string", optional: true, "default": "" } // can be "audiolunchbox", "artistdirect", "buymusic", "dmusic", "emusic", "epitonic", "garageband", "itunes", "yahoo", "livedownloads", "mp34u", "msn", "musicmatch", "mapster", "passalong", "rhapsody", "soundclick", "theweb" 
    132133                        ] 
    133134                }, 
     
    143144                        target: "http://search.yahooapis.com/ContentAnalysisService/V1/termExtraction", 
    144145                        parameters: [ 
    145                                 { name: "context", type: "string", optional: false, default: "" }, 
    146                                 { name: "query", type: "string", optional: true, default: "" } 
     146                                { name: "context", type: "string", optional: false, "default": "" }, 
     147                                { name: "query", type: "string", optional: true, "default": "" } 
    147148                        ] 
    148149                }, 
     
    156157                        target: "http://search.yahooapis.com/ImageSearchService/V1/imageSearch", 
    157158                        parameters: [ 
    158                                 { name: "query", type: "string", optional: false, default: "" }, 
    159                                 { name: "type", type: "string", optional: true, default: "any" }, // can be "all", "any", "phrase" 
    160                                 { name: "results", type: "integer", optional: true, default: 10 }, // max 50 
    161                                 { name: "start", type: "integer", optional: true, default: 1 }, 
    162                                 { name: "format", type: "string", optional: true, default: "any" }, // can be "any", "bmp", "gif", "jpeg", "png" 
    163                                 { name: "adult_ok", type: "boolean", optional: true, default: null }, 
    164                                 { name: "coloration", type: "string", optional: true, default: "any" }, // can be "any", "color", "bw" 
    165                                 { name: "site", type: "string", optional: true, default: null } 
     159                                { name: "query", type: "string", optional: false, "default": "" }, 
     160                                { name: "type", type: "string", optional: true, "default": "any" }, // can be "all", "any", "phrase" 
     161                                { name: "results", type: "integer", optional: true, "default": 10 }, // max 50 
     162                                { name: "start", type: "integer", optional: true, "default": 1 }, 
     163                                { name: "format", type: "string", optional: true, "default": "any" }, // can be "any", "bmp", "gif", "jpeg", "png" 
     164                                { name: "adult_ok", type: "boolean", optional: true, "default": null }, 
     165                                { name: "coloration", type: "string", optional: true, "default": "any" }, // can be "any", "color", "bw" 
     166                                { name: "site", type: "string", optional: true, "default": null } 
    166167                        ] 
    167168                }, 
     
    175176                        target: "http://local.yahooapis.com/LocalSearchService/V3/localSearch", 
    176177                        parameters: [ 
    177                                 { name: "query", type: "string", optional: true, default: "" }, // optional, but one of (query, listing_id) is required 
    178                                 { name: "listing_id", type: "string", optional: true, default: "" }, 
    179                                 { name: "results", type: "integer", optional: true, default: 10 }, // max 20 
    180                                 { name: "start", type: "integer", optional: true, default: 1 }, 
    181                                 { name: "sort", type: "string", optional: true, default: "relevance" }, // can be "relevance", "title", "distance", "rating" 
     178                                { name: "query", type: "string", optional: true, "default": "" }, // optional, but one of (query, listing_id) is required 
     179                                { name: "listing_id", type: "string", optional: true, "default": "" }, 
     180                                { name: "results", type: "integer", optional: true, "default": 10 }, // max 20 
     181                                { name: "start", type: "integer", optional: true, "default": 1 }, 
     182                                { name: "sort", type: "string", optional: true, "default": "relevance" }, // can be "relevance", "title", "distance", "rating" 
    182183                                { name: "radius", type: "float", optional: true }, // the default varies according to location 
    183                                 { name: "street", type: "string", optional: true, default: null }, 
    184                                 { name: "city", type: "string", optional: true, default: null }, 
    185                                 { name: "state", type: "string", optional: true, default: null }, // full name or two-letter abbreviation 
    186                                 { name: "zip", type: "any", optional: true, default: null }, // ddddd or ddddd-dddd format 
    187                                 { name: "location", type: "string", optional: true, default: null }, // free text, supersedes the street, city, state, zip fields 
     184                                { name: "street", type: "string", optional: true, "default": null }, 
     185                                { name: "city", type: "string", optional: true, "default": null }, 
     186                                { name: "state", type: "string", optional: true, "default": null }, // full name or two-letter abbreviation 
     187                                { name: "zip", type: "any", optional: true, "default": null }, // ddddd or ddddd-dddd format 
     188                                { name: "location", type: "string", optional: true, "default": null }, // free text, supersedes the street, city, state, zip fields 
    188189                                { name: "latitude", type: "float", optional: true }, // -90 to 90 
    189190                                { name: "longitude", type: "float", optional: true }, // -180 to 180 
     
    198199                        target: "http://collections.local.yahooapis.com/LocalSearchService/V1/collectionSearch", 
    199200                        parameters: [ 
    200                                 { name: "query", type: "string", optional: true, default: "" }, // optional, but at least one of (query, username) is required 
    201                                 { name: "username", type: "string", optional: true, default: "" }, 
    202                                 { name: "city", type: "string", optional: true, default: null }, 
    203                                 { name: "results", type: "integer", optional: true, default: 10 }, // max 50 
    204                                 { name: "start", type: "integer", optional: true, default: 1 } 
     201                                { name: "query", type: "string", optional: true, "default": "" }, // optional, but at least one of (query, username) is required 
     202                                { name: "username", type: "string", optional: true, "default": "" }, 
     203                                { name: "city", type: "string", optional: true, "default": null }, 
     204                                { name: "results", type: "integer", optional: true, "default": 10 }, // max 50 
     205                                { name: "start", type: "integer", optional: true, "default": 1 } 
    205206                        ] 
    206207                }, 
     
    210211                        target: "http://collections.local.yahooapis.com/LocalSearchService/V1/getCollection", 
    211212                        parameters: [ 
    212                                 { name: "collection_id", type: "integer", optional: false, default: "" } 
     213                                { name: "collection_id", type: "integer", optional: false, "default": "" } 
    213214                        ] 
    214215                }, 
     
    222223                        target: "http://search.yahooapis.com/MyWebService/V1/urlSearch", 
    223224                        parameters: [ 
    224                                 { name: "tag", type: "string", optional: true, default: "" }, 
    225                                 { name: "yahooid", type: "string", optional: true, default: "" }, 
    226                                 { name: "sort", type: "string", optional: true, default: "date" }, // can be "date", "title", "url" 
    227                                 { name: "reverse_sort", type: "boolean", optional: true, default: 0 }, 
    228                                 { name: "results", type: "integer", optional: true, default: 10 }, // max 50 
    229                                 { name: "start", type: "integer", optional: true, default: 1 } 
     225                                { name: "tag", type: "string", optional: true, "default": "" }, 
     226                                { name: "yahooid", type: "string", optional: true, "default": "" }, 
     227                                { name: "sort", type: "string", optional: true, "default": "date" }, // can be "date", "title", "url" 
     228                                { name: "reverse_sort", type: "boolean", optional: true, "default": 0 }, 
     229                                { name: "results", type: "integer", optional: true, "default": 10 }, // max 50 
     230                                { name: "start", type: "integer", optional: true, "default": 1 } 
    230231                        ] 
    231232                }, 
     
    235236                        target: "http://search.yahooapis.com/MyWebService/V1/tagSearch", 
    236237                        parameters: [ 
    237                                 { name: "url", type: "string", optional: true, default: "" }, 
    238                                 { name: "yahooid", type: "string", optional: true, default: "" }, 
    239                                 { name: "sort", type: "string", optional: true, default: "popularity" }, // can be "popularity", "tag", "date" 
    240                                 { name: "reverse_sort", type: "boolean", optional: true, default: 0 }, 
    241                                 { name: "results", type: "integer", optional: true, default: 10 }, // max 50 
    242                                 { name: "start", type: "integer", optional: true, default: 1 } 
     238                                { name: "url", type: "string", optional: true, "default": "" }, 
     239                                { name: "yahooid", type: "string", optional: true, "default": "" }, 
     240                                { name: "sort", type: "string", optional: true, "default": "popularity" }, // can be "popularity", "tag", "date" 
     241                                { name: "reverse_sort", type: "boolean", optional: true, "default": 0 }, 
     242                                { name: "results", type: "integer", optional: true, "default": 10 }, // max 50 
     243                                { name: "start", type: "integer", optional: true, "default": 1 } 
    243244                        ] 
    244245                }, 
     
    248249                        target: "http://search.yahooapis.com/MyWebService/V1/relatedTags", 
    249250                        parameters: [ 
    250                                 { name: "tag", type: "string", optional: false, default: "" }, 
    251                                 { name: "yahooid", type: "string", optional: true, default: "" }, 
    252                                 { name: "sort", type: "string", optional: true, default: "popularity" }, // can be "popularity", "tag", "date" 
    253                                 { name: "reverse_sort", type: "boolean", optional: true, default: 0 }, 
    254                                 { name: "results", type: "integer", optional: true, default: 10 }, // max 50 
    255                                 { name: "start", type: "integer", optional: true, default: 1 } 
     251                                { name: "tag", type: "string", optional: false, "default": "" }, 
     252                                { name: "yahooid", type: "string", optional: true, "default": "" }, 
     253                                { name: "sort", type: "string", optional: true, "default": "popularity" }, // can be "popularity", "tag", "date" 
     254                                { name: "reverse_sort", type: "boolean", optional: true, "default": 0 }, 
     255                                { name: "results", type: "integer", optional: true, "default": 10 }, // max 50 
     256                                { name: "start", type: "integer", optional: true, "default": 1 } 
    256257                        ] 
    257258                }, 
     
    265266                        target: "http://search.yahooapis.com/NewsSearchService/V1/newsSearch", 
    266267                        parameters: [ 
    267                                 { name: "query", type: "string", optional: false, default: "" }, 
    268                                 { name: "type", type: "string", optional: true, default: "any" }, // can be "all", "any", "phrase" 
    269                                 { name: "results", type: "integer", optional: true, default: 10 }, // max 50 
    270                                 { name: "start", type: "integer", optional: true, default: 1 }, 
    271                                 { name: "sort", type: "string", optional: true, default: "rank" }, // can be "rank", "date" 
    272                                 { name: "language", type: "string", optional: true, default: null }, 
    273                                 { name: "site", type: "string", optional: true, default: null } 
     268                                { name: "query", type: "string", optional: false, "default": "" }, 
     269                                { name: "type", type: "string", optional: true, "default": "any" }, // can be "all", "any", "phrase" 
     270                                { name: "results", type: "integer", optional: true, "default": 10 }, // max 50 
     271                                { name: "start", type: "integer", optional: true, "default": 1 }, 
     272                                { name: "sort", type: "string", optional: true, "default": "rank" }, // can be "rank", "date" 
     273                                { name: "language", type: "string", optional: true, "default": null }, 
     274                                { name: "site", type: "string", optional: true, "default": null } 
    274275                        ] 
    275276                }, 
     
    283284                        target: "http://shopping.yahooapis.com/ShoppingService/V2/catalogListing", 
    284285                        parameters: [ 
    285                                 { name: "catalogid", type: "integer", optional: true, default: null }, // required if idtype,idvalue are not specified 
    286                                 { name: "getlisting", type: "boolean", optional: true, default: 1 }, 
    287                                 { name: "getreview", type: "boolean", optional: true, default: 0 }, 
    288                                 { name: "getspec", type: "boolean", optional: true, default: 0 }, 
    289                                 { name: "idtype", type: "string", optional: true, default: null }, // can be "upc", "brand,model", "brand,partnum"; required if catalogid is not specified 
    290                                 { name: "idvalue", type: "string", optional: true, default: null }, // required if catalogid is not specified 
    291                                 { name: "onlynew", type: "boolean", optional: true, default: 1 }, 
    292                                 { name: "reviewstart", type: "integer", optional: true, default: 1 }, 
    293                                 { name: "reviewsort", type: "string", optional: true, default: "mostRecommended_descending" }, // can be "mostRecommended_descending", "mostRecommended_ascending", "latest_descending", "latest_ascending", "highestRated_descending", "highestRated_ascending" 
    294                                 { name: "zip", type: "string", optional: true, default: null } 
     286                                { name: "catalogid", type: "integer", optional: true, "default": null }, // required if idtype,idvalue are not specified 
     287                                { name: "getlisting", type: "boolean", optional: true, "default": 1 }, 
     288                                { name: "getreview", type: "boolean", optional: true, "default": 0 }, 
     289                                { name: "getspec", type: "boolean", optional: true, "default": 0 }, 
     290                                { name: "idtype", type: "string", optional: true, "default": null }, // can be "upc", "brand,model", "brand,partnum"; required if catalogid is not specified 
     291                                { name: "idvalue", type: "string", optional: true, "default": null }, // required if catalogid is not specified 
     292                                { name: "onlynew", type: "boolean", optional: true, "default": 1 }, 
     293                                { name: "reviewstart", type: "integer", optional: true, "default": 1 }, 
     294                                { name: "reviewsort", type: "string", optional: true, "default": "mostRecommended_descending" }, // can be "mostRecommended_descending", "mostRecommended_ascending", "latest_descending", "latest_ascending", "highestRated_descending", "highestRated_ascending" 
     295                                { name: "zip", type: "string", optional: true, "default": null } 
    295296                        ] 
    296297                }, 
     
    301302                        target: "http://api.shopping.yahoo.com/ShoppingService/V1/merchantSearch", 
    302303                        parameters: [ 
    303                                 { name: "merchantid", type: "integer", optional: false, default: null } 
     304                                { name: "merchantid", type: "integer", optional: false, "default": null } 
    304305                        ] 
    305306                }, 
     
    310311                        target: "http://shopping.yahooapis.com/ShoppingService/V3/productSearch", 
    311312                        parameters: [ 
    312                                 { name: "query", type: "string", optional: true, default: "" }, // required if category is not specified 
    313                                 { name: "category", type: "any", optional: true, default: "" }, // required if query is not specified 
    314                                 { name: "class", type: "string", optional: true, default: null }, // can be "catalogs", "freeoffers", "paidoffers"; defaults to all three of these 
    315                                 { name: "department", type: "integer", optional: true, default: null }, 
    316                                 { name: "highestprice", type: "float", optional: true, default: null }, 
    317                                 { name: "lowestprice", type: "float", optional: true, default: null }, 
    318                                 { name: "merchantId", type: "integer", optional: true, default: null }, 
    319                                 { name: "refinement", type: "string", optional: true, default: null }, // used only if category is specified 
    320                                 { name: "results", type: "integer", optional: true, default: 10 }, // 1-50 
    321                                 { name: "show_numratings", type: "boolean", optional: true, default: 0 }, 
    322                                 { name: "show_narrowing", type: "boolean", optional: true, default: 1 }, 
     313                                { name: "query", type: "string", optional: true, "default": "" }, // required if category is not specified 
     314                                { name: "category", type: "any", optional: true, "default": "" }, // required if query is not specified 
     315                                { name: "class", type: "string", optional: true, "default": null }, // can be "catalogs", "freeoffers", "paidoffers"; defaults to all three of these 
     316                                { name: "department", type: "integer", optional: true, "default": null }, 
     317                                { name: "highestprice", type: "float", optional: true, "default": null }, 
     318                                { name: "lowestprice", type: "float", optional: true, "default": null }, 
     319                                { name: "merchantId", type: "integer", optional: true, "default": null }, 
     320                                { name: "refinement", type: "string", optional: true, "default": null }, // used only if category is specified 
     321                                { name: "results", type: "integer", optional: true, "default": 10 }, // 1-50 
     322                                { name: "show_numratings", type: "boolean", optional: true, "default": 0 }, 
     323                                { name: "show_narrowing", type: "boolean", optional: true, "default": 1 }, 
    323324                                { name: "sort", type: "string", optional: true }, // can be "price_ascending", "price_descending", "userrating_ascending", "userrating_descending"; omitted, the default is to sort by relevance 
    324                                 { name: "start", type: "integer", optional: true, default: 1 } // 1-300 
     325                                { name: "start", type: "integer", optional: true, "default": 1 } // 1-300 
    325326                        ] 
    326327                }, 
     
    334335                        target: "http://search.yahooapis.com/SiteExplorerService/V1/inlinkData", 
    335336                        parameters: [ 
    336                                 { name: "query", type: "string", optional: false, default: "" }, 
    337                                 { name: "results", type: "integer", optional: true, default: 50 }, // max 100 
    338                                 { name: "start", type: "integer", optional: true, default: 1 }, 
    339                                 { name: "entire_site", type: "boolean", optional: true, default: null }, 
    340                                 { name: "omit_inlinks", type: "string", optional: true, default: "none" } // can be "none", "domain", "subdomain" 
     337                                { name: "query", type: "string", optional: false, "default": "" }, 
     338                                { name: "results", type: "integer", optional: true, "default": 50 }, // max 100 
     339                                { name: "start", type: "integer", optional: true, "default": 1 }, 
     340                                { name: "entire_site", type: "boolean", optional: true, "default": null }, 
     341                                { name: "omit_inlinks", type: "string", optional: true, "default": "none" } // can be "none", "domain", "subdomain" 
    341342                        ] 
    342343                }, 
     
    346347                        target: "http://search.yahooapis.com/SiteExplorerService/V1/pageData", 
    347348                        parameters: [ 
    348                                 { name: "query", type: "string", optional: false, default: "" }, 
    349                                 { name: "results", type: "integer", optional: true, default: 50 }, // max 100 
    350                                 { name: "start", type: "integer", optional: true, default: 1 }, 
    351                                 { name: "domain_only", type: "boolean", optional: true, default: null } 
     349                                { name: "query", type: "string", optional: false, "default": "" }, 
     350                                { name: "results", type: "integer", optional: true, "default": 50 }, // max 100 
     351                                { name: "start", type: "integer", optional: true, "default": 1 }, 
     352                                { name: "domain_only", type: "boolean", optional: true, "default": null } 
    352353                        ] 
    353354                }, 
     
    357358                        target: "http://search.yahooapis.com/SiteExplorerService/V1/ping", 
    358359                        parameters: [ 
    359