yahoo.smd
上传用户:kimgenplus
上传日期:2016-06-05
资源大小:20877k
文件大小:11k
源码类别:

OA系统

开发平台:

Java

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