yahoo.smd 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. {
  2. "SMDVersion":".1",
  3. "objectName":"yahoo",
  4. "serviceType":"JSON-P",
  5. "required": {
  6. "appId": "dojotoolkit",
  7. "output": "json"
  8. },
  9. "methods":[
  10. //
  11. // MAPS
  12. //
  13. {
  14. // http://developer.yahoo.com/maps/rest/V1/mapImage.html
  15. "name":"mapImage",
  16. "serviceURL": "http://api.local.yahoo.com/MapsService/V1/mapImage",
  17. "parameters":[
  18. { "name":"street", "type":"STRING" },
  19. { "name":"city", "type":"STRING" },
  20. { "name":"zip", "type":"INTEGER" },
  21. { "name":"location", "type":"STRING" },
  22. { "name":"longitude", "type":"FLOAT" },
  23. { "name":"latitude", "type":"FLOAT" },
  24. { "name":"image_type", "type":"STRING" },
  25. { "name":"image_width", "type":"INTEGER" },
  26. { "name":"image_height", "type":"INTEGER" },
  27. { "name":"zoom", "type":"INTEGER" },
  28. { "name":"radius", "type":"INTEGER" }
  29. ]
  30. },
  31. {
  32. // http://developer.yahoo.com/traffic/rest/V1/index.html
  33. "name":"trafficData",
  34. "serviceURL": "http://api.local.yahoo.com/MapsService/V1/trafficData",
  35. "parameters":[
  36. { "name":"street", "type":"STRING" },
  37. { "name":"city", "type":"STRING" },
  38. { "name":"zip", "type":"INTEGER" },
  39. { "name":"location", "type":"STRING" },
  40. { "name":"longitude", "type":"FLOAT" },
  41. { "name":"latitude", "type":"FLOAT" },
  42. { "name":"severity", "type":"INTEGER" },
  43. { "name":"include_map", "type":"INTEGER" },
  44. { "name":"image_type", "type":"STRING" },
  45. { "name":"image_width", "type":"INTEGER" },
  46. { "name":"image_height", "type":"INTEGER" },
  47. { "name":"zoom", "type":"INTEGER" },
  48. { "name":"radius", "type":"INTEGER" }
  49. ]
  50. },
  51. //
  52. // LOCAL SEARCH
  53. //
  54. {
  55. // http://developer.yahoo.com/search/local/V3/localSearch.html
  56. "name":"localSearch",
  57. "serviceURL": "http://api.local.yahoo.com/LocalSearchService/V3/localSearch",
  58. "parameters":[
  59. { "name":"street", "type":"STRING" },
  60. { "name":"city", "type":"STRING" },
  61. { "name":"zip", "type":"INTEGER" },
  62. { "name":"location", "type":"STRING" },
  63. { "name":"listing_id", "type":"STRING" },
  64. { "name":"sort", "type":"STRING" }, // "relevence", "title", "distance", or "rating"
  65. { "name":"start", "type":"INTEGER" },
  66. { "name":"radius", "type":"FLOAT" },
  67. { "name":"results", "type":"INTEGER" }, // 1-50, defaults to 10
  68. { "name":"longitude", "type":"FLOAT" },
  69. { "name":"latitude", "type":"FLOAT" },
  70. { "name":"category", "type":"INTEGER" },
  71. { "name":"omit_category", "type":"INTEGER" },
  72. { "name":"minimum_rating", "type":"INTEGER" }
  73. ]
  74. },
  75. //
  76. // WEB SEARCH
  77. //
  78. {
  79. // http://developer.yahoo.com/search/web/V1/webSearch.html
  80. "name":"webSearch",
  81. "serviceURL": "http://api.search.yahoo.com/WebSearchService/V1/webSearch",
  82. "parameters":[
  83. { "name":"query", "type":"STRING" },
  84. { "name":"type", "type":"STRING" }, // defaults to "all"
  85. { "name":"region", "type":"STRING" }, // defaults to "us"
  86. { "name":"results", "type":"INTEGER" }, // defaults to 10
  87. { "name":"start", "type":"INTEGER" }, // defaults to 1
  88. { "name":"format", "type":"STRING" }, // defaults to "any", can be "html", "msword", "pdf", "ppt", "rst", "txt", or "xls"
  89. { "name":"adult_ok", "type":"INTEGER" }, // defaults to null
  90. { "name":"similar_ok", "type":"INTEGER" }, // defaults to null
  91. { "name":"language", "type":"STRING" }, // defaults to null
  92. { "name":"country", "type":"STRING" }, // defaults to null
  93. { "name":"site", "type":"STRING" }, // defaults to null
  94. { "name":"subscription", "type":"STRING" }, // defaults to null
  95. { "name":"license", "type":"STRING" } // defaults to "any"
  96. ]
  97. },
  98. {
  99. // http://developer.yahoo.com/search/web/V1/spellingSuggestion.html
  100. "name":"spellingSuggestion",
  101. "serviceURL": "http://api.search.yahoo.com/WebSearchService/V1/spellingSuggestion",
  102. "parameters":[ { "name":"query", "type":"STRING" } ]
  103. },
  104. {
  105. // http://developer.yahoo.com/search/web/V1/relatedSuggestion.html
  106. "name":"spellingSuggestion",
  107. "serviceURL": "http://api.search.yahoo.com/WebSearchService/V1/relatedSuggestion",
  108. "parameters":[
  109. { "name":"query", "type":"STRING" },
  110. { "name":"results", "type":"INTEGER" } // 1-50, defaults to 10
  111. ]
  112. },
  113. {
  114. // http://developer.yahoo.com/search/content/V1/termExtraction.html
  115. "name":"termExtraction",
  116. "serviceURL": "http://search.yahooapis.com/ContentAnalysisService/V1/termExtraction",
  117. "parameters":[
  118. { "name":"query", "type":"STRING" },
  119. { "name":"context", "type":"STRING" },
  120. { "name":"results", "type":"INTEGER" } // 1-50, defaults to 10
  121. ]
  122. },
  123. {
  124. // http://developer.yahoo.com/search/web/V1/contextSearch.html
  125. "name":"contextSearch",
  126. "serviceURL": "http://search.yahooapis.com/WebSearchService/V1/contextSearch",
  127. "parameters":[
  128. { "name":"query", "type":"STRING" },
  129. { "name":"context", "type":"STRING" },
  130. { "name":"type", "type":"STRING" }, // defaults to "all"
  131. { "name":"results", "type":"INTEGER" }, // defaults to 10
  132. { "name":"start", "type":"INTEGER" }, // defaults to 1
  133. { "name":"format", "type":"STRING" }, // defaults to "any", can be "html", "msword", "pdf", "ppt", "rst", "txt", or "xls"
  134. { "name":"adult_ok", "type":"INTEGER" }, // defaults to null
  135. { "name":"similar_ok", "type":"INTEGER" }, // defaults to null
  136. { "name":"language", "type":"STRING" }, // defaults to null
  137. { "name":"country", "type":"STRING" }, // defaults to null
  138. { "name":"site", "type":"STRING" }, // defaults to null
  139. { "name":"license", "type":"STRING" } // defaults to "any", could be "cc_any", "cc_commercial", "cc_modifiable"
  140. ]
  141. },
  142. //
  143. // IMAGE SEARCH
  144. //
  145. {
  146. // http://developer.yahoo.com/search/image/V1/imageSearch.html
  147. "name":"imageSearch",
  148. "serviceURL": "http://api.search.yahoo.com/ImageSearchService/V1/imageSearch",
  149. "parameters":[
  150. { "name":"query", "type":"STRING" },
  151. { "name":"type", "type":"STRING" }, // defaults to "all", can by "any" or "phrase"
  152. { "name":"results", "type":"INTEGER" }, // defaults to 10
  153. { "name":"start", "type":"INTEGER" }, // defaults to 1
  154. { "name":"format", "type":"STRING" }, // defaults to "any", can be "bmp", "gif", "jpeg", or "png"
  155. { "name":"adult_ok", "type":"INTEGER" }, // defaults to null
  156. { "name":"coloration", "type":"STRING" }, // "any", "color", or "bw"
  157. { "name":"site", "type":"STRING" } // defaults to null
  158. ]
  159. },
  160. //
  161. // SITE EXPLORER
  162. //
  163. {
  164. // http://developer.yahoo.com/search/siteexplorer/V1/inlinkData.html
  165. "name":"inlinkData",
  166. "serviceURL": "http://api.search.yahoo.com/SiteExplorerService/V1/inlinkData",
  167. "parameters":[
  168. { "name":"query", "type":"STRING" },
  169. { "name":"type", "type":"STRING" }, // defaults to "all", can by "any" or "phrase"
  170. { "name":"entire_site", "type":"INTEGER" }, // defaults to null
  171. { "name":"omit_inlinks", "type":"STRING" }, // "domain" or "subdomain", defaults to null
  172. { "name":"results", "type":"INTEGER" }, // defaults to 50
  173. { "name":"start", "type":"INTEGER" }, // defaults to 1
  174. { "name":"site", "type":"STRING" } // defaults to null
  175. ]
  176. },
  177. {
  178. // http://developer.yahoo.com/search/siteexplorer/V1/pageData.html
  179. "name":"pageData",
  180. "serviceURL": "http://api.search.yahoo.com/SiteExplorerService/V1/pageData",
  181. "parameters":[
  182. { "name":"query", "type":"STRING" },
  183. { "name":"type", "type":"STRING" }, // defaults to "all", can by "any" or "phrase"
  184. { "name":"domain_only", "type":"INTEGER" }, // defaults to null
  185. { "name":"results", "type":"INTEGER" }, // defaults to 50
  186. { "name":"start", "type":"INTEGER" }, // defaults to 1
  187. { "name":"site", "type":"STRING" } // defaults to null
  188. ]
  189. },
  190. //
  191. // MUSIC SEARCH
  192. //
  193. {
  194. // http://developer.yahoo.com/search/audio/V1/artistSearch.html
  195. "name":"artistSearch",
  196. "serviceURL": "http://api.search.yahoo.com/AudioSearchService/V1/artistSearch",
  197. "parameters":[
  198. { "name":"artist", "type":"STRING" },
  199. { "name":"artistid", "type":"STRING" },
  200. { "name":"type", "type":"STRING" }, // "all", "any", or "phrase"
  201. { "name":"results", "type":"INTEGER" }, // 1-50, defaults to 10
  202. { "name":"start", "type":"INTEGER" } // defaults to 1
  203. ]
  204. },
  205. {
  206. // http://developer.yahoo.com/search/audio/V1/albumSearch.html
  207. "name":"albumSearch",
  208. "serviceURL": "http://api.search.yahoo.com/AudioSearchService/V1/albumSearch",
  209. "parameters":[
  210. { "name":"artist", "type":"STRING" },
  211. { "name":"artistid", "type":"STRING" },
  212. { "name":"album", "type":"STRING" },
  213. { "name":"type", "type":"STRING" }, // "all", "any", or "phrase"
  214. { "name":"results", "type":"INTEGER" }, // 1-50, defaults to 10
  215. { "name":"start", "type":"INTEGER" } // defaults to 1
  216. ]
  217. },
  218. {
  219. // http://developer.yahoo.com/search/audio/V1/songSearch.html
  220. "name":"songSearch",
  221. "serviceURL": "http://api.search.yahoo.com/AudioSearchService/V1/songSearch",
  222. "parameters":[
  223. { "name":"artist", "type":"STRING" },
  224. { "name":"artistid", "type":"STRING" },
  225. { "name":"album", "type":"STRING" },
  226. { "name":"albumid", "type":"STRING" },
  227. { "name":"song", "type":"STRING" },
  228. { "name":"songid", "type":"STRING" },
  229. { "name":"type", "type":"STRING" }, // "all", "any", or "phrase"
  230. { "name":"results", "type":"INTEGER" }, // 1-50, defaults to 10
  231. { "name":"start", "type":"INTEGER" } // defaults to 1
  232. ]
  233. },
  234. {
  235. // http://developer.yahoo.com/search/audio/V1/songDownloadLocation.html
  236. "name":"songDownloadLocation",
  237. "serviceURL": "http://api.search.yahoo.com/AudioSearchService/V1/songDownloadLocation",
  238. "parameters":[
  239. { "name":"songid", "type":"STRING" },
  240. // "source" can contain:
  241. // audiolunchbox artistdirect buymusic dmusic
  242. // emusic epitonic garageband itunes yahoo
  243. // livedownloads mp34u msn musicmatch mapster passalong
  244. // rhapsody soundclick theweb
  245. { "name":"source", "type":"STRING" },
  246. { "name":"results", "type":"INTEGER" }, // 1-50, defaults to 10
  247. { "name":"start", "type":"INTEGER" } // defaults to 1
  248. ]
  249. },
  250. //
  251. // NEWS SEARCH
  252. //
  253. {
  254. // http://developer.yahoo.com/search/news/V1/newsSearch.html
  255. "name":"newsSearch",
  256. "serviceURL": "http://api.search.yahoo.com/NewsSearchService/V1/newsSearch",
  257. "parameters":[
  258. { "name":"query", "type":"STRING" },
  259. { "name":"type", "type":"STRING" }, // defaults to "all"
  260. { "name":"results", "type":"INTEGER" }, // defaults to 10
  261. { "name":"start", "type":"INTEGER" }, // defaults to 1
  262. { "name":"sort", "type":"STRING" }, // "rank" or "date"
  263. { "name":"language", "type":"STRING" }, // defaults to null
  264. { "name":"site", "type":"STRING" } // defaults to null
  265. ]
  266. }
  267. ]
  268. }