Zend_Service_Yahoo.xml 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.service.yahoo">
  4. <title>Zend_Service_Yahoo</title>
  5. <sect2 id="zend.service.yahoo.introduction">
  6. <title>Introduction</title>
  7. <para>
  8. <classname>Zend_Service_Yahoo</classname> is a simple API for using many of the Yahoo! REST APIs.
  9. <classname>Zend_Service_Yahoo</classname> allows you to search Yahoo! Web search, Yahoo! News, Yahoo! Local, Yahoo!
  10. Images. In order to use the Yahoo! REST API, you must have a Yahoo! Application ID. To obtain an Application ID, please complete and submit the
  11. <ulink url="http://developer.yahoo.com/wsregapp/">Application ID Request Form</ulink>.
  12. </para>
  13. </sect2>
  14. <sect2 id="zend.service.yahoo.websearch">
  15. <title>Searching the Web with Yahoo!</title>
  16. <para>
  17. <classname>Zend_Service_Yahoo</classname> enables you to search the Web with Yahoo! using the
  18. <code>webSearch()</code> method, which accepts a string query parameter and an optional second parameter
  19. as an array of search options. For full details and an option list, please visit the
  20. <ulink url="http://developer.yahoo.com/search/web/V1/webSearch.html">Yahoo! Web Search
  21. Documentation</ulink>. The <code>webSearch()</code> method returns a
  22. <classname>Zend_Service_Yahoo_WebResultSet</classname> object.
  23. </para>
  24. <example id="zend.service.yahoo.websearch.example-1">
  25. <title>Searching the Web with Yahoo!</title>
  26. <programlisting language="php"><![CDATA[
  27. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  28. $results = $yahoo->webSearch('PHP');
  29. foreach ($results as $result) {
  30. echo $result->Title .'<br />';
  31. }
  32. ]]></programlisting>
  33. </example>
  34. </sect2>
  35. <sect2 id="zend.service.yahoo.imagesearch">
  36. <title>Finding Images with Yahoo!</title>
  37. <para>
  38. You can search for Images with Yahoo using <classname>Zend_Service_Yahoo</classname>'s <code>imageSearch()</code>
  39. method. This method accepts a string query parameter and an optional array of search options, as for the
  40. <link linkend="zend.service.yahoo.websearch"><code>webSearch()</code> method</link>. For full details
  41. and an option list, please visit the
  42. <ulink url="http://developer.yahoo.com/search/image/V1/imageSearch.html">Yahoo! Image Search
  43. Documentation</ulink>.
  44. </para>
  45. <example id="zend.service.yahoo.imagesearch.example-1">
  46. <title>Finding Images with Yahoo!</title>
  47. <programlisting language="php"><![CDATA[
  48. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  49. $results = $yahoo->imageSearch('PHP');
  50. foreach ($results as $result) {
  51. echo $result->Title .'<br />';
  52. }
  53. ]]></programlisting>
  54. </example>
  55. </sect2>
  56. <sect2 id="zend.service.yahoo.videosearch">
  57. <title>Finding videos with Yahoo!</title>
  58. <para>
  59. You can search for videos with Yahoo using <classname>Zend_Service_Yahoo</classname>'s <code>videoSearch()</code>
  60. method. For full details and an option list, please visit the
  61. <ulink url="http://developer.yahoo.com/search/video/V1/videoSearch.html">Yahoo! Video Search
  62. Documentation</ulink>.
  63. </para>
  64. <example id="zend.service.yahoo.videosearch.example-1">
  65. <title>Finding videos with Yahoo!</title>
  66. <programlisting language="php"><![CDATA[
  67. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  68. $results = $yahoo->videoSearch('PHP');
  69. foreach ($results as $result) {
  70. echo $result->Title .'<br />';
  71. }
  72. ]]></programlisting>
  73. </example>
  74. </sect2>
  75. <sect2 id="zend.service.yahoo.localsearch">
  76. <title>Finding Local Businesses and Services with Yahoo!</title>
  77. <para>
  78. You can search for local businesses and services with Yahoo! by using the <code>localSearch()</code> method.
  79. For full details, please see the
  80. <ulink url="http://developer.yahoo.com/search/local/V1/localSearch.html">Yahoo! Local Search
  81. Documentation</ulink>.
  82. </para>
  83. <example id="zend.service.yahoo.localsearch.example-1">
  84. <title>Finding Local Businesses and Services with Yahoo!</title>
  85. <programlisting language="php"><![CDATA[
  86. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  87. $results = $yahoo->localSearch('Apple Computers', array('zip' => '95014'));
  88. foreach ($results as $result) {
  89. echo $result->Title .'<br />';
  90. }
  91. ]]></programlisting>
  92. </example>
  93. </sect2>
  94. <sect2 id="zend.service.yahoo.newssearch">
  95. <title>Searching Yahoo! News</title>
  96. <para>
  97. Searching Yahoo! News is simple; just use the <code>newsSearch()</code> method, as in the following
  98. example. For full details, please see the
  99. <ulink url="http://developer.yahoo.com/search/news/V1/newsSearch.html">Yahoo! News Search
  100. Documentation</ulink>.
  101. </para>
  102. <example id="zend.service.yahoo.newssearch.example-1">
  103. <title>Searching Yahoo! News</title>
  104. <programlisting language="php"><![CDATA[
  105. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  106. $results = $yahoo->newsSearch('PHP');
  107. foreach ($results as $result) {
  108. echo $result->Title .'<br />';
  109. }
  110. ]]></programlisting>
  111. </example>
  112. </sect2>
  113. <sect2 id="zend.service.yahoo.inlinkdatasearch">
  114. <title>Searching Yahoo! Site Explorer Inbound Links</title>
  115. <para>
  116. Searching Yahoo! Site Explorer Inbound Links is simple; just use the <code>inlinkDataSearch()</code>
  117. method, as in the following example. For full details, please see the
  118. <ulink url="http://developer.yahoo.com/search/siteexplorer/V1/inlinkData.html">Yahoo!
  119. Site Explorer Inbound Links Documentation</ulink>.
  120. </para>
  121. <example id="zend.service.yahoo.inlinkdatasearch.example-1">
  122. <title>Searching Yahoo! Site Explorer Inbound Links</title>
  123. <programlisting language="php"><![CDATA[
  124. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  125. $results = $yahoo->inlinkDataSearch('http://framework.zend.com/');
  126. foreach ($results as $result) {
  127. echo $result->Title .'<br />';
  128. }
  129. ]]></programlisting>
  130. </example>
  131. </sect2>
  132. <sect2 id="zend.service.yahoo.pagedatasearch">
  133. <title>Searching Yahoo! Site Explorer's PageData</title>
  134. <para>
  135. Searching Yahoo! Site Explorer's PageData is simple; just use the <code>pageDataSearch()</code>
  136. method, as in the following example. For full details, please see the
  137. <ulink url="http://developer.yahoo.com/search/siteexplorer/V1/pageData.html">Yahoo!
  138. Site Explorer PageData Documentation</ulink>.
  139. </para>
  140. <example id="zend.service.yahoo.pagedatasearch.example-1">
  141. <title>Searching Yahoo! Site Explorer's PageData</title>
  142. <programlisting language="php"><![CDATA[
  143. $yahoo = new Zend_Service_Yahoo("YAHOO_APPLICATION_ID");
  144. $results = $yahoo->pageDataSearch('http://framework.zend.com/');
  145. foreach ($results as $result) {
  146. echo $result->Title .'<br />';
  147. }
  148. ]]></programlisting>
  149. </example>
  150. </sect2>
  151. <sect2 id="zend.service.yahoo.classes">
  152. <title>Zend_Service_Yahoo Classes</title>
  153. <para>
  154. The following classes are all returned by the various Yahoo! searches. Each search type returns a
  155. type-specific result set which can be easily iterated, with each result being contained in a type result
  156. object. All result set classes implement the <code>SeekableIterator</code> interface, allowing for easy
  157. iteration and seeking to a specific result.
  158. <itemizedlist>
  159. <listitem><para><link linkend="zend.service.yahoo.classes.resultset"><classname>Zend_Service_Yahoo_ResultSet</classname></link></para></listitem>
  160. <listitem><para><link linkend="zend.service.yahoo.classes.webresultset"><classname>Zend_Service_Yahoo_WebResultSet</classname></link></para></listitem>
  161. <listitem><para><link linkend="zend.service.yahoo.classes.imageresultset"><classname>Zend_Service_Yahoo_ImageResultSet</classname></link></para></listitem>
  162. <listitem><para><link linkend="zend.service.yahoo.classes.videoresultset"><classname>Zend_Service_Yahoo_VideoResultSet</classname></link></para></listitem>
  163. <listitem><para><link linkend="zend.service.yahoo.classes.localresultset"><classname>Zend_Service_Yahoo_LocalResultSet</classname></link></para></listitem>
  164. <listitem><para><link linkend="zend.service.yahoo.classes.newsresultset"><classname>Zend_Service_Yahoo_NewsResultSet</classname></link></para></listitem>
  165. <listitem><para><link linkend="zend.service.yahoo.classes.inlinkdataresultset"><classname>Zend_Service_Yahoo_InlinkDataResultSet</classname></link></para></listitem>
  166. <listitem><para><link linkend="zend.service.yahoo.classes.pagedataresultset"><classname>Zend_Service_Yahoo_PageDataResultSet</classname></link></para></listitem>
  167. <listitem><para><link linkend="zend.service.yahoo.classes.result"><classname>Zend_Service_Yahoo_Result</classname></link></para></listitem>
  168. <listitem><para><link linkend="zend.service.yahoo.classes.webresult"><classname>Zend_Service_Yahoo_WebResult</classname></link></para></listitem>
  169. <listitem><para><link linkend="zend.service.yahoo.classes.imageresult"><classname>Zend_Service_Yahoo_ImageResult</classname></link></para></listitem>
  170. <listitem><para><link linkend="zend.service.yahoo.classes.videoresult"><classname>Zend_Service_Yahoo_VideoResult</classname></link></para></listitem>
  171. <listitem><para><link linkend="zend.service.yahoo.classes.localresult"><classname>Zend_Service_Yahoo_LocalResult</classname></link></para></listitem>
  172. <listitem><para><link linkend="zend.service.yahoo.classes.newsresult"><classname>Zend_Service_Yahoo_NewsResult</classname></link></para></listitem>
  173. <listitem><para><link linkend="zend.service.yahoo.classes.inlinkdataresult"><classname>Zend_Service_Yahoo_InlinkDataResult</classname></link></para></listitem>
  174. <listitem><para><link linkend="zend.service.yahoo.classes.pagedataresult"><classname>Zend_Service_Yahoo_PageDataResult</classname></link></para></listitem>
  175. <listitem><para><link linkend="zend.service.yahoo.classes.image"><classname>Zend_Service_Yahoo_Image</classname></link></para></listitem>
  176. </itemizedlist>
  177. </para>
  178. <sect3 id="zend.service.yahoo.classes.resultset">
  179. <title>Zend_Service_Yahoo_ResultSet</title>
  180. <para>
  181. Each of the search specific result sets is extended from this base class.
  182. </para>
  183. <para>
  184. Each of the specific result sets returns a search specific
  185. <link linkend="zend.service.yahoo.classes.result">Zend_Service_Yahoo_Result</link> objects.
  186. </para>
  187. <sect4 id="zend.service.yahoo.classes.resultset.totalResults">
  188. <title>Zend_Service_Yahoo_ResultSet::totalResults()</title>
  189. <para>
  190. <methodsynopsis>
  191. <type>int</type>
  192. <methodname>totalResults</methodname>
  193. <void />
  194. </methodsynopsis>
  195. </para>
  196. <para>
  197. Returns the number of results returned for the search.
  198. </para>
  199. </sect4>
  200. <sect4 id="zend.service.yahoo.classes.resultset.properties">
  201. <title>Properties</title>
  202. <table id="zend.service.yahoo.classes.resultset.properties.table-1">
  203. <title>Zend_Service_Yahoo_ResultSet</title>
  204. <tgroup cols="3">
  205. <thead>
  206. <row>
  207. <entry>Name</entry>
  208. <entry>Type</entry>
  209. <entry>Description</entry>
  210. </row>
  211. </thead>
  212. <tbody>
  213. <row>
  214. <entry>totalResultsAvailable</entry>
  215. <entry>int</entry>
  216. <entry>
  217. Total number of results found.
  218. </entry>
  219. </row>
  220. <row>
  221. <entry>totalResultsReturned</entry>
  222. <entry>int</entry>
  223. <entry>Number of results in the current result set</entry>
  224. </row>
  225. <row>
  226. <entry>firstResultPosition</entry>
  227. <entry>int</entry>
  228. <entry>Position of the first result in this set relative to the total number of results.</entry>
  229. </row>
  230. </tbody>
  231. </tgroup>
  232. </table>
  233. <para>
  234. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  235. </para>
  236. </sect4>
  237. </sect3>
  238. <sect3 id="zend.service.yahoo.classes.webresultset">
  239. <title>Zend_Service_Yahoo_WebResultSet</title>
  240. <para>
  241. <classname>Zend_Service_Yahoo_WebResultSet</classname> represents a Yahoo! Web Search result set.
  242. </para>
  243. <note>
  244. <para>
  245. <classname>Zend_Service_Yahoo_WebResultSet</classname> extends <link linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  246. </para>
  247. </note>
  248. <para>
  249. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  250. </para>
  251. </sect3>
  252. <sect3 id="zend.service.yahoo.classes.imageresultset">
  253. <title>Zend_Service_Yahoo_ImageResultSet</title>
  254. <para>
  255. <classname>Zend_Service_Yahoo_ImageResultSet</classname> represents a Yahoo! Image Search result set.
  256. </para>
  257. <note>
  258. <para>
  259. <classname>Zend_Service_Yahoo_ImageResultSet</classname> extends <link linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  260. </para>
  261. </note>
  262. <para>
  263. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  264. </para>
  265. </sect3>
  266. <sect3 id="zend.service.yahoo.classes.videoresultset">
  267. <title>Zend_Service_Yahoo_VideoResultSet</title>
  268. <para>
  269. <classname>Zend_Service_Yahoo_VideoResultSet</classname> represents a Yahoo! Video Search result set.
  270. </para>
  271. <note>
  272. <para>
  273. <classname>Zend_Service_Yahoo_VideoResultSet</classname> extends <link linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  274. </para>
  275. </note>
  276. <para>
  277. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  278. </para>
  279. </sect3>
  280. <sect3 id="zend.service.yahoo.classes.localresultset">
  281. <title>Zend_Service_Yahoo_LocalResultSet</title>
  282. <para>
  283. <classname>Zend_Service_Yahoo_LocalResultSet</classname> represents a Yahoo! Local Search result set.
  284. </para>
  285. <table id="zend.service.yahoo.classes.localresultset.table-1">
  286. <title>Zend_Service_Yahoo_LocalResultSet Properties</title>
  287. <tgroup cols="3">
  288. <thead>
  289. <row>
  290. <entry>Name</entry>
  291. <entry>Type</entry>
  292. <entry>Description</entry>
  293. </row>
  294. </thead>
  295. <tbody>
  296. <row>
  297. <entry>resultSetMapURL</entry>
  298. <entry>string</entry>
  299. <entry>The URL of a webpage containing a map graphic with all returned results plotted on it.</entry>
  300. </row>
  301. </tbody>
  302. </tgroup>
  303. </table>
  304. <note>
  305. <para>
  306. <classname>Zend_Service_Yahoo_LocalResultSet</classname> extends <link linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  307. </para>
  308. </note>
  309. <para>
  310. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  311. </para>
  312. </sect3>
  313. <sect3 id="zend.service.yahoo.classes.newsresultset">
  314. <title>Zend_Service_Yahoo_NewsResultSet</title>
  315. <para>
  316. <classname>Zend_Service_Yahoo_NewsResultSet</classname> represents a Yahoo! News Search result set.
  317. </para>
  318. <note>
  319. <para>
  320. <classname>Zend_Service_Yahoo_NewsResultSet</classname> extends <link linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  321. </para>
  322. </note>
  323. <para>
  324. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  325. </para>
  326. </sect3>
  327. <sect3 id="zend.service.yahoo.classes.inlinkdataresultset">
  328. <title>Zend_Service_Yahoo_InlinkDataResultSet</title>
  329. <para>
  330. <classname>Zend_Service_Yahoo_InlinkDataResultSet</classname> represents a Yahoo! Inbound Link Search result set.
  331. </para>
  332. <note>
  333. <para>
  334. <classname>Zend_Service_Yahoo_InlinkDataResultSet</classname> extends <link linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  335. </para>
  336. </note>
  337. <para>
  338. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  339. </para>
  340. </sect3>
  341. <sect3 id="zend.service.yahoo.classes.pagedataresultset">
  342. <title>Zend_Service_Yahoo_PageDataResultSet</title>
  343. <para>
  344. <classname>Zend_Service_Yahoo_PageDataResultSet</classname> represents a Yahoo! PageData Search result set.
  345. </para>
  346. <note>
  347. <para>
  348. <classname>Zend_Service_Yahoo_PageDataResultSet</classname> extends <link linkend="zend.service.yahoo.classes.resultset">Zend_Service_Yahoo_ResultSet</link>
  349. </para>
  350. </note>
  351. <para>
  352. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  353. </para>
  354. </sect3>
  355. <sect3 id="zend.service.yahoo.classes.result">
  356. <title>Zend_Service_Yahoo_Result</title>
  357. <para>
  358. Each of the search specific results is extended from this base class.
  359. </para>
  360. <sect4 id="zend.service.yahoo.classes.result.properties">
  361. <title>Properties</title>
  362. <table id="zend.service.yahoo.classes.result.properties.table-1">
  363. <title>Zend_Service_Yahoo_Result Properties</title>
  364. <tgroup cols="3">
  365. <thead>
  366. <row>
  367. <entry>Name</entry>
  368. <entry>Type</entry>
  369. <entry>Description</entry>
  370. </row>
  371. </thead>
  372. <tbody>
  373. <row>
  374. <entry>Title</entry>
  375. <entry>string</entry>
  376. <entry>Title of the Result item</entry>
  377. </row>
  378. <row>
  379. <entry>Url</entry>
  380. <entry>string</entry>
  381. <entry>The URL of the result item</entry>
  382. </row>
  383. <row>
  384. <entry>ClickUrl</entry>
  385. <entry>string</entry>
  386. <entry>The URL for linking to the result item</entry>
  387. </row>
  388. </tbody>
  389. </tgroup>
  390. </table>
  391. <para>
  392. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  393. </para>
  394. </sect4>
  395. </sect3>
  396. <sect3 id="zend.service.yahoo.classes.webresult">
  397. <title>Zend_Service_Yahoo_WebResult</title>
  398. <para>
  399. Each Web Search result is returned as a <classname>Zend_Service_Yahoo_WebResult</classname> object.
  400. </para>
  401. <sect4 id="zend.service.yahoo.classes.webresult.properties">
  402. <title>Properties</title>
  403. <table id="zend.service.yahoo.classes.webresult.properties.table-1">
  404. <title>Zend_Service_Yahoo_WebResult Properties</title>
  405. <tgroup cols="3">
  406. <thead>
  407. <row>
  408. <entry>Name</entry>
  409. <entry>Type</entry>
  410. <entry>Description</entry>
  411. </row>
  412. </thead>
  413. <tbody>
  414. <row>
  415. <entry>Summary</entry>
  416. <entry>string</entry>
  417. <entry>Result summary</entry>
  418. </row>
  419. <row>
  420. <entry>MimeType</entry>
  421. <entry>string</entry>
  422. <entry>Result MIME type</entry>
  423. </row>
  424. <row>
  425. <entry>ModificationDate</entry>
  426. <entry>string</entry>
  427. <entry>The last modification date of the result as a UNIX timestamp.</entry>
  428. </row>
  429. <row>
  430. <entry>CacheUrl</entry>
  431. <entry>string</entry>
  432. <entry>Yahoo! web cache URL for the result, if it exists.</entry>
  433. </row>
  434. <row>
  435. <entry>CacheSize</entry>
  436. <entry>int</entry>
  437. <entry>The size of the Cache entry</entry>
  438. </row>
  439. </tbody>
  440. </tgroup>
  441. </table>
  442. <para>
  443. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  444. </para>
  445. </sect4>
  446. </sect3>
  447. <sect3 id="zend.service.yahoo.classes.imageresult">
  448. <title>Zend_Service_Yahoo_ImageResult</title>
  449. <para>
  450. Each Image Search result is returned as a <classname>Zend_Service_Yahoo_ImageResult</classname> object.
  451. </para>
  452. <sect4 id="zend.service.yahoo.classes.imageresult.properties">
  453. <title>Properties</title>
  454. <table id="zend.service.yahoo.classes.imageresult.properties.table-1">
  455. <title>Zend_Service_Yahoo_ImageResult Properties</title>
  456. <tgroup cols="3">
  457. <thead>
  458. <row>
  459. <entry>Name</entry>
  460. <entry>Type</entry>
  461. <entry>Description</entry>
  462. </row>
  463. </thead>
  464. <tbody>
  465. <row>
  466. <entry>Summary</entry>
  467. <entry>string</entry>
  468. <entry>Result summary</entry>
  469. </row>
  470. <row>
  471. <entry>RefererUrl</entry>
  472. <entry>string</entry>
  473. <entry>The URL of the page which contains the image</entry>
  474. </row>
  475. <row>
  476. <entry>FileSize</entry>
  477. <entry>int</entry>
  478. <entry>The size of the image file in bytes</entry>
  479. </row>
  480. <row>
  481. <entry>FileFormat</entry>
  482. <entry>string</entry>
  483. <entry>The format of the image (bmp, gif, jpeg, png, etc.)</entry>
  484. </row>
  485. <row>
  486. <entry>Height</entry>
  487. <entry>int</entry>
  488. <entry>The height of the image</entry>
  489. </row>
  490. <row>
  491. <entry>Width</entry>
  492. <entry>int</entry>
  493. <entry>The width of the image</entry>
  494. </row>
  495. <row>
  496. <entry>Thumbnail</entry>
  497. <entry><link linkend="zend.service.yahoo.classes.image">Zend_Service_Yahoo_Image</link></entry>
  498. <entry>Image thumbnail</entry>
  499. </row>
  500. </tbody>
  501. </tgroup>
  502. </table>
  503. <para>
  504. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  505. </para>
  506. </sect4>
  507. </sect3>
  508. <sect3 id="zend.service.yahoo.classes.videoresult">
  509. <title>Zend_Service_Yahoo_VideoResult</title>
  510. <para>
  511. Each Video Search result is returned as a <classname>Zend_Service_Yahoo_VideoResult</classname> object.
  512. </para>
  513. <sect4 id="zend.service.yahoo.classes.videoresult.properties">
  514. <title>Properties</title>
  515. <table id="zend.service.yahoo.classes.videoresult.properties.table-1">
  516. <title>Zend_Service_Yahoo_VideoResult Properties</title>
  517. <tgroup cols="3">
  518. <thead>
  519. <row>
  520. <entry>Name</entry>
  521. <entry>Type</entry>
  522. <entry>Description</entry>
  523. </row>
  524. </thead>
  525. <tbody>
  526. <row>
  527. <entry>Summary</entry>
  528. <entry>string</entry>
  529. <entry>Result summary</entry>
  530. </row>
  531. <row>
  532. <entry>RefererUrl</entry>
  533. <entry>string</entry>
  534. <entry>The URL of the page which contains the video</entry>
  535. </row>
  536. <row>
  537. <entry>FileSize</entry>
  538. <entry>int</entry>
  539. <entry>The size of the video file in bytes</entry>
  540. </row>
  541. <row>
  542. <entry>FileFormat</entry>
  543. <entry>string</entry>
  544. <entry>The format of the video (avi, flash, mpeg, msmedia, quicktime, realmedia, etc.)</entry>
  545. </row>
  546. <row>
  547. <entry>Height</entry>
  548. <entry>int</entry>
  549. <entry>The height of the video in pixels</entry>
  550. </row>
  551. <row>
  552. <entry>Width</entry>
  553. <entry>int</entry>
  554. <entry>The width of the video in pixels</entry>
  555. </row>
  556. <row>
  557. <entry>Duration</entry>
  558. <entry>int</entry>
  559. <entry>The length of the video in seconds</entry>
  560. </row>
  561. <row>
  562. <entry>Channels</entry>
  563. <entry>int</entry>
  564. <entry>Number of audio channels in the video</entry>
  565. </row>
  566. <row>
  567. <entry>Streaming</entry>
  568. <entry>boolean</entry>
  569. <entry>Whether the video is streaming or not</entry>
  570. </row>
  571. <row>
  572. <entry>Thumbnail</entry>
  573. <entry><link linkend="zend.service.yahoo.classes.image">Zend_Service_Yahoo_Image</link></entry>
  574. <entry>Image thumbnail</entry>
  575. </row>
  576. </tbody>
  577. </tgroup>
  578. </table>
  579. <para>
  580. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  581. </para>
  582. </sect4>
  583. </sect3>
  584. <sect3 id="zend.service.yahoo.classes.localresult">
  585. <title>Zend_Service_Yahoo_LocalResult</title>
  586. <para>
  587. Each Local Search result is returned as a <classname>Zend_Service_Yahoo_LocalResult</classname> object.
  588. </para>
  589. <sect4 id="zend.service.yahoo.classes.localresult.properties">
  590. <title>Properties</title>
  591. <table id="zend.service.yahoo.classes.localresult.properties.table-1">
  592. <title>Zend_Service_Yahoo_LocalResult Properties</title>
  593. <tgroup cols="3">
  594. <thead>
  595. <row>
  596. <entry>Name</entry>
  597. <entry>Type</entry>
  598. <entry>Description</entry>
  599. </row>
  600. </thead>
  601. <tbody>
  602. <row>
  603. <entry>Address</entry>
  604. <entry>string</entry>
  605. <entry>Street Address of the result</entry>
  606. </row>
  607. <row>
  608. <entry>City</entry>
  609. <entry>string</entry>
  610. <entry>City in which the result resides in</entry>
  611. </row>
  612. <row>
  613. <entry>State</entry>
  614. <entry>string</entry>
  615. <entry>State in which the result resides in</entry>
  616. </row>
  617. <row>
  618. <entry>Phone</entry>
  619. <entry>string</entry>
  620. <entry>Phone number for the result</entry>
  621. </row>
  622. <row>
  623. <entry>Rating</entry>
  624. <entry>int</entry>
  625. <entry>User submitted rating for the result</entry>
  626. </row>
  627. <row>
  628. <entry>Distance</entry>
  629. <entry>float</entry>
  630. <entry>The distance to the result from your specified location</entry>
  631. </row>
  632. <row>
  633. <entry>MapUrl</entry>
  634. <entry>string</entry>
  635. <entry>A URL of a map for the result</entry>
  636. </row>
  637. <row>
  638. <entry>BusinessUrl</entry>
  639. <entry>string</entry>
  640. <entry>The URL for the business website, if known</entry>
  641. </row>
  642. <row>
  643. <entry>BusinessClickUrl</entry>
  644. <entry>string</entry>
  645. <entry>The URL for linking to the business website, if known</entry>
  646. </row>
  647. </tbody>
  648. </tgroup>
  649. </table>
  650. <para>
  651. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  652. </para>
  653. </sect4>
  654. </sect3>
  655. <sect3 id="zend.service.yahoo.classes.newsresult">
  656. <title>Zend_Service_Yahoo_NewsResult</title>
  657. <para>
  658. Each News Search result is returned as a <classname>Zend_Service_Yahoo_NewsResult</classname> object.
  659. </para>
  660. <sect4 id="zend.service.yahoo.classes.newsresult.properties">
  661. <title>Properties</title>
  662. <table id="zend.service.yahoo.classes.newsresult.properties.table-1">
  663. <title>Zend_Service_Yahoo_NewsResult Properties</title>
  664. <tgroup cols="3">
  665. <thead>
  666. <row>
  667. <entry>Name</entry>
  668. <entry>Type</entry>
  669. <entry>Description</entry>
  670. </row>
  671. </thead>
  672. <tbody>
  673. <row>
  674. <entry>Summary</entry>
  675. <entry>string</entry>
  676. <entry>Result summary</entry>
  677. </row>
  678. <row>
  679. <entry>NewsSource</entry>
  680. <entry>string</entry>
  681. <entry>The company who distributed the article</entry>
  682. </row>
  683. <row>
  684. <entry>NewsSourceUrl</entry>
  685. <entry>string</entry>
  686. <entry>The URL for the company who distributed the article</entry>
  687. </row>
  688. <row>
  689. <entry>Language</entry>
  690. <entry>string</entry>
  691. <entry>The language the article is in</entry>
  692. </row>
  693. <row>
  694. <entry>PublishDate</entry>
  695. <entry>string</entry>
  696. <entry>The date the article was published as a UNIX timestamp</entry>
  697. </row>
  698. <row>
  699. <entry>ModificationDate</entry>
  700. <entry>string</entry>
  701. <entry>The date the article was last modified as a UNIX timestamp</entry>
  702. </row>
  703. <row>
  704. <entry>Thumbnail</entry>
  705. <entry><link linkend="zend.service.yahoo.classes.image">Zend_Service_Yahoo_Image</link></entry>
  706. <entry>Image Thumbnail for the article, if it exists</entry>
  707. </row>
  708. </tbody>
  709. </tgroup>
  710. </table>
  711. <para>
  712. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  713. </para>
  714. </sect4>
  715. </sect3>
  716. <sect3 id="zend.service.yahoo.classes.inlinkdataresult">
  717. <title>Zend_Service_Yahoo_InlinkDataResult</title>
  718. <para>
  719. Each Inbound Link Search result is returned as a
  720. <classname>Zend_Service_Yahoo_InlinkDatabResult</classname> object.
  721. </para>
  722. <para>
  723. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  724. </para>
  725. </sect3>
  726. <sect3 id="zend.service.yahoo.classes.pagedataresult">
  727. <title>Zend_Service_Yahoo_PageDataResult</title>
  728. <para>
  729. Each Page Data Search result is returned as a
  730. <classname>Zend_Service_Yahoo_PageDatabResult</classname> object.
  731. </para>
  732. <para>
  733. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  734. </para>
  735. </sect3>
  736. <sect3 id="zend.service.yahoo.classes.image">
  737. <title>Zend_Service_Yahoo_Image</title>
  738. <para>
  739. All images returned either by the Yahoo! Image Search or the Yahoo! News Search
  740. are represented by <classname>Zend_Service_Yahoo_Image</classname> objects
  741. </para>
  742. <sect4 id="zend.service.yahoo.classes.image.properties">
  743. <title>Properties</title>
  744. <table id="zend.service.yahoo.classes.image.properties.table-1">
  745. <title>Zend_Service_Yahoo_Image Properties</title>
  746. <tgroup cols="3">
  747. <thead>
  748. <row>
  749. <entry>Name</entry>
  750. <entry>Type</entry>
  751. <entry>Description</entry>
  752. </row>
  753. </thead>
  754. <tbody>
  755. <row>
  756. <entry>Url</entry>
  757. <entry>string</entry>
  758. <entry>Image URL</entry>
  759. </row>
  760. <row>
  761. <entry>Width</entry>
  762. <entry>int</entry>
  763. <entry>Image Width</entry>
  764. </row>
  765. <row>
  766. <entry>Height</entry>
  767. <entry>int</entry>
  768. <entry>Image Height</entry>
  769. </row>
  770. </tbody>
  771. </tgroup>
  772. </table>
  773. <para>
  774. <link linkend="zend.service.yahoo.classes">Back to Class List</link>
  775. </para>
  776. </sect4>
  777. </sect3>
  778. </sect2>
  779. </sect1>
  780. <!--
  781. vim:se ts=4 sw=4 et:
  782. -->