Zend_Service_Amazon.xml 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <!-- EN-Revision: 15103 -->
  4. <sect1 id="zend.service.amazon">
  5. <title>Zend_Service_Amazon</title>
  6. <sect2 id="zend.service.amazon.introduction">
  7. <title>導入</title>
  8. <para>
  9. <classname>Zend_Service_Amazon</classname> は Amazon
  10. ウェブサービスを使用するためのシンプルな API です。
  11. <classname>Zend_Service_Amazon</classname> は、ふたつの API を実装しています。
  12. Amazon 自身の API に従った伝統的な API と、
  13. 複雑な検索クエリを簡単に作成するためのシンプルな「クエリ API」です。
  14. </para>
  15. <para>
  16. <classname>Zend_Service_Amazon</classname> を使用すると、開発者が
  17. Amazon Web Services API を直接使用して、Amazon.com
  18. の情報を取得できるようになります。
  19. 取得できる情報には以下のようなものがあります。
  20. <itemizedlist>
  21. <listitem>
  22. <para>
  23. 商品の情報、例えば画像や説明や価格など
  24. </para>
  25. </listitem>
  26. <listitem>
  27. <para>
  28. カスタマーレビュー
  29. </para>
  30. </listitem>
  31. <listitem>
  32. <para>
  33. 似た製品やアクセサリの情報
  34. </para>
  35. </listitem>
  36. <listitem>
  37. <para>
  38. Amazon.com のおすすめ
  39. </para>
  40. </listitem>
  41. <listitem>
  42. <para>
  43. リストマニアのリスト
  44. </para>
  45. </listitem>
  46. </itemizedlist>
  47. </para>
  48. <para>
  49. <classname>Zend_Service_Amazon</classname> を使用するには、
  50. Amazon デベロッパ API キーが必要です。このキーを取得するには、
  51. <ulink url="http://www.amazon.com/gp/aws/landing.html">Amazon Web Services</ulink>
  52. のウェブサイトを参照ください。
  53. </para>
  54. <note>
  55. <title>注意</title>
  56. <para>
  57. Amazon デベロッパ API キーは Amazon のアカウントと関連付けられます。
  58. 取得した API キーは自分自身でのみ使用するようにしましょう。
  59. </para>
  60. </note>
  61. <example id="zend.service.amazon.introduction.example.itemsearch">
  62. <title>伝統的な API を使用した Amazon 検索</title>
  63. <para>
  64. この例では、Amazon で PHP に関する書籍を検索し、
  65. 結果の一覧を表示します。
  66. </para>
  67. <programlisting><![CDATA[
  68. $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
  69. $results = $amazon->itemSearch(array('SearchIndex' => 'Books',
  70. 'Keywords' => 'php'));
  71. foreach ($results as $result) {
  72. echo $result->Title . '<br />';
  73. }
  74. ]]>
  75. </programlisting>
  76. </example>
  77. <example id="zend.service.amazon.introduction.example.query_api">
  78. <title>クエリ API を使用した Amazon 検索</title>
  79. <para>
  80. ここでも Amazon で PHP に関する書籍を検索します。
  81. しかし、ここではクエリ API を使用します。この API
  82. は、Fluent Interface パターンと似た形式です。
  83. </para>
  84. <programlisting><![CDATA[
  85. $query = new Zend_Service_Amazon_Query('AMAZON_API_KEY');
  86. $query->category('Books')->Keywords('PHP');
  87. $results = $query->search();
  88. foreach ($results as $result) {
  89. echo $result->Title . '<br />';
  90. }
  91. ]]>
  92. </programlisting>
  93. </example>
  94. </sect2>
  95. <sect2 id="zend.service.amazon.countrycodes">
  96. <title>国コード</title>
  97. <para>
  98. デフォルトでは、<classname>Zend_Service_Amazon</classname> は米国 ("<code>US</code>")
  99. の Amazon Web Service に接続します。他の国のサービスに接続するには、
  100. コンストラクタの 2 番目のパラメータとして、適切な国コード文字列を指定するだけです。
  101. </para>
  102. <example id="zend.service.amazon.countrycodes.example.country_code">
  103. <title>Amazon Web Service の国の選択</title>
  104. <programlisting><![CDATA[
  105. // 日本の Amazon に接続します
  106. $amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'JP');
  107. ]]>
  108. </programlisting>
  109. </example>
  110. <note>
  111. <title>国コード</title>
  112. <para>
  113. 使用できる国コードは <code>CA</code>、<code>DE</code>、<code>FR</code>、<code>JP</code>、
  114. <code>UK</code> および <code>US</code> です。
  115. </para>
  116. </note>
  117. </sect2>
  118. <sect2 id="zend.service.amazon.itemlookup">
  119. <title>ASIN を使用した商品の検索</title>
  120. <para>
  121. ASIN がわかっている場合は、<code>itemLookup()</code>
  122. メソッドを使用すると Amazon の商品を検索できます。
  123. </para>
  124. <example id="zend.service.amazon.itemlookup.example.asin">
  125. <title>ASIN を使用した Amazon の商品検索</title>
  126. <programlisting><![CDATA[
  127. $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
  128. $item = $amazon->itemLookup('B0000A432X');
  129. ]]>
  130. </programlisting>
  131. </example>
  132. <para>
  133. <code>itemLookup()</code> メソッドにオプションの第 2 パラメータを渡すことで、
  134. 検索オプションを指定できます。使用可能なオプションを含む詳細は、
  135. <ulink
  136. url="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemLookupOperation">関連する Amazon の文書</ulink>
  137. を参照ください。
  138. </para>
  139. <note>
  140. <title>画像の情報</title>
  141. <para>
  142. 検索結果の画像情報を取得するには、オプション <code>ResponseGroup</code>
  143. を <code>Medium</code> あるいは <code>Large</code> に設定しなければなりません。
  144. </para>
  145. </note>
  146. </sect2>
  147. <sect2 id="zend.service.amazon.itemsearch">
  148. <title>Amazon の商品検索の実行</title>
  149. <para>
  150. さまざまな条件指定による商品検索を行うには
  151. <code>itemSearch()</code> メソッドを使用します。
  152. 以下に例を示します。
  153. </para>
  154. <example id="zend.service.amazon.itemsearch.example.basic">
  155. <title>Amazon の商品検索の実行</title>
  156. <programlisting><![CDATA[
  157. $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
  158. $results = $amazon->itemSearch(array('SearchIndex' => 'Books',
  159. 'Keywords' => 'php'));
  160. foreach ($results as $result) {
  161. echo $result->Title . '<br />';
  162. }
  163. ]]>
  164. </programlisting>
  165. </example>
  166. <example id="zend.service.amazon.itemsearch.example.responsegroup">
  167. <title><code>ResponseGroup</code> オプションの使用法</title>
  168. <para>
  169. <code>ResponseGroup</code> オプションを使用すると、
  170. レスポンスで返される情報を制御することができます。
  171. </para>
  172. <programlisting role="php"><![CDATA[
  173. $amazon = new Zend_Service_Amazon('AMAZON_API_KEY');
  174. $results = $amazon->itemSearch(array(
  175. 'SearchIndex' => 'Books',
  176. 'Keywords' => 'php',
  177. 'ResponseGroup' => 'Small,ItemAttributes,Images,SalesRank,Reviews,' .
  178. 'EditorialReview,Similarities,ListmaniaLists'
  179. ));
  180. foreach ($results as $result) {
  181. echo $result->Title . '<br />';
  182. }
  183. ]]>
  184. </programlisting>
  185. </example>
  186. <para>
  187. <code>itemSearch()</code> は配列のパラメータをひとつ受け取り、
  188. このパラメータで検索オプションを指定します。使用可能なオプションを含む詳細は、
  189. <ulink
  190. url="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">関連する Amazon の文書</ulink>
  191. を参照ください。
  192. </para>
  193. <tip>
  194. <para>
  195. <link linkend="zend.service.amazon.query"><classname>Zend_Service_Amazon_Query</classname></link>
  196. クラスを使用すると、これらのメソッドをより簡単に使用できるようになります。
  197. </para>
  198. </tip>
  199. </sect2>
  200. <sect2 id="zend.service.amazon.query">
  201. <title>もうひとつのクエリ API の使用法</title>
  202. <sect3 id="zend.service.amazon.query.introduction">
  203. <title>導入</title>
  204. <para>
  205. <classname>Zend_Service_Amazon_Query</classname> は、Amazon Web Service
  206. を使用するためのもうひとつの API を提供します。
  207. この API では Fluent Interface パターンを使用します。
  208. つまり、すべてのコールはメソッド呼び出しを連結した形式になります
  209. (例: <code>$obj->method()->method2($arg)</code>)。
  210. </para>
  211. <para>
  212. 商品検索の設定を行いやすく、また条件に基づく検索をしやすくするために、
  213. <classname>Zend_Service_Amazon_Query</classname> API ではオーバーロードを使用しています。
  214. 各オプションの設定はメソッドのコールで行い、メソッドの引数がオプションの値に対応します。
  215. </para>
  216. <example id="zend.service.amazon.query.introduction.example.basic">
  217. <title>もうひとつのクエリ API を使用した Amazon の検索</title>
  218. <para>
  219. この例では、もうひとつのクエリ API のインターフェイスを使用して、
  220. オプションとその値を設定します。
  221. </para>
  222. <programlisting><![CDATA[
  223. $query = new Zend_Service_Amazon_Query('MY_API_KEY');
  224. $query->Category('Books')->Keywords('PHP');
  225. $results = $query->search();
  226. foreach ($results as $result) {
  227. echo $result->Title . '<br />';
  228. }
  229. ]]>
  230. </programlisting>
  231. <para>
  232. これは、オプション <code>Category</code> の値を "Books"、
  233. そして <code>Keywords</code> の値を "PHP" に設定します。
  234. </para>
  235. <para>
  236. 使用可能なオプションについての詳細な情報は、
  237. <ulink
  238. url="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">関連する Amazon の文書</ulink>
  239. を参照ください。
  240. </para>
  241. </example>
  242. </sect3>
  243. </sect2>
  244. <sect2 id="zend.service.amazon.classes">
  245. <title>Zend_Service_Amazon クラス群</title>
  246. <para>
  247. 以下のクラスは、すべて
  248. <link linkend="zend.service.amazon.itemlookup"><classname>Zend_Service_Amazon::itemLookup()</classname></link>
  249. および
  250. <link linkend="zend.service.amazon.itemsearch"><classname>Zend_Service_Amazon::itemSearch()</classname></link>
  251. から返されるものです。
  252. <itemizedlist>
  253. <listitem><para><link linkend="zend.service.amazon.classes.item"><classname>Zend_Service_Amazon_Item</classname></link></para></listitem>
  254. <listitem><para><link linkend="zend.service.amazon.classes.image"><classname>Zend_Service_Amazon_Image</classname></link></para></listitem>
  255. <listitem><para><link linkend="zend.service.amazon.classes.resultset"><classname>Zend_Service_Amazon_ResultSet</classname></link></para></listitem>
  256. <listitem><para><link linkend="zend.service.amazon.classes.offerset"><classname>Zend_Service_Amazon_OfferSet</classname></link></para></listitem>
  257. <listitem><para><link linkend="zend.service.amazon.classes.offer"><classname>Zend_Service_Amazon_Offer</classname></link></para></listitem>
  258. <listitem><para><link linkend="zend.service.amazon.classes.similarproduct"><classname>Zend_Service_Amazon_SimilarProduct</classname></link></para></listitem>
  259. <listitem><para><link linkend="zend.service.amazon.classes.accessories"><classname>Zend_Service_Amazon_Accessories</classname></link></para></listitem>
  260. <listitem><para><link linkend="zend.service.amazon.classes.customerreview"><classname>Zend_Service_Amazon_CustomerReview</classname></link></para></listitem>
  261. <listitem><para><link linkend="zend.service.amazon.classes.editorialreview"><classname>Zend_Service_Amazon_EditorialReview</classname></link></para></listitem>
  262. <listitem><para><link linkend="zend.service.amazon.classes.listmania"><classname>Zend_Service_Amazon_ListMania</classname></link></para></listitem>
  263. </itemizedlist>
  264. </para>
  265. <sect3 id="zend.service.amazon.classes.item">
  266. <title>Zend_Service_Amazon_Item</title>
  267. <para>
  268. <classname>Zend_Service_Amazon_Item</classname> は、ウェブサービスから返される
  269. Amazon の商品を表すために使用されるクラスです。
  270. 商品のタイトル、説明、レビューなどを含むすべての属性を包含します。
  271. </para>
  272. <sect4 id="zend.service.amazon.classes.item.asxml">
  273. <title>Zend_Service_Amazon_Item::asXML()</title>
  274. <para>
  275. <methodsynopsis>
  276. <type>string</type>
  277. <methodname>asXML</methodname>
  278. <void />
  279. </methodsynopsis>
  280. </para>
  281. <para>商品情報を、元の XML で返します。</para>
  282. </sect4>
  283. <sect4 id="zend.service.amazon.classes.item.properties">
  284. <title>プロパティ</title>
  285. <para>
  286. <classname>Zend_Service_Amazon_Item</classname> が持つプロパティは、
  287. それぞれが標準の Amazon API に直接対応しています。
  288. </para>
  289. <table id="zend.service.amazon.classes.item.properties.table-1">
  290. <title>Zend_Service_Amazon_Item のプロパティ</title>
  291. <tgroup cols="3">
  292. <thead>
  293. <row>
  294. <entry>名前</entry>
  295. <entry>型</entry>
  296. <entry>説明</entry>
  297. </row>
  298. </thead>
  299. <tbody>
  300. <row>
  301. <entry>ASIN</entry>
  302. <entry>string</entry>
  303. <entry>Amazon の商品 ID</entry>
  304. </row>
  305. <row>
  306. <entry>DetailPageURL</entry>
  307. <entry>string</entry>
  308. <entry>商品の詳細情報ページの URL</entry>
  309. </row>
  310. <row>
  311. <entry>SalesRank</entry>
  312. <entry>int</entry>
  313. <entry>商品の売上ランキング</entry>
  314. </row>
  315. <row>
  316. <entry>SmallImage</entry>
  317. <entry>Zend_Service_Amazon_Image</entry>
  318. <entry>商品の画像 (小)</entry>
  319. </row>
  320. <row>
  321. <entry>MediumImage</entry>
  322. <entry>Zend_Service_Amazon_Image</entry>
  323. <entry>商品の画像 (中)</entry>
  324. </row>
  325. <row>
  326. <entry>LargeImage</entry>
  327. <entry>Zend_Service_Amazon_Image</entry>
  328. <entry>商品の画像 (大)</entry>
  329. </row>
  330. <row>
  331. <entry>Subjects</entry>
  332. <entry>array</entry>
  333. <entry>商品のテーマ</entry>
  334. </row>
  335. <row>
  336. <entry>Offers</entry>
  337. <entry>
  338. <code>
  339. <link
  340. linkend="zend.service.amazon.classes.offerset">Zend_Service_Amazon_OfferSet</link>
  341. </code>
  342. </entry>
  343. <entry>提供内容の概要および商品の提供情報</entry>
  344. </row>
  345. <row>
  346. <entry>CustomerReviews</entry>
  347. <entry>array</entry>
  348. <entry>
  349. <code>
  350. <link
  351. linkend="zend.service.amazon.classes.customerreview">Zend_Service_Amazon_CustomerReview</link>
  352. </code>
  353. オブジェクトの配列で表されるカスタマーレビュー
  354. </entry>
  355. </row>
  356. <row>
  357. <entry>EditorialReviews</entry>
  358. <entry>array</entry>
  359. <entry>
  360. <code>
  361. <link
  362. linkend="zend.service.amazon.classes.editorialreview">Zend_Service_Amazon_EditorialReview</link>
  363. </code>
  364. オブジェクトの配列で表される、出版社/著者からの内容紹介
  365. </entry>
  366. </row>
  367. <row>
  368. <entry>SimilarProducts</entry>
  369. <entry>array</entry>
  370. <entry>
  371. <code>
  372. <link
  373. linkend="zend.service.amazon.classes.similarproduct">Zend_Service_Amazon_SimilarProduct</link>
  374. </code>
  375. オブジェクトの配列で表される、似た商品の情報
  376. </entry>
  377. </row>
  378. <row>
  379. <entry>Accessories</entry>
  380. <entry>array</entry>
  381. <entry>
  382. <code>
  383. <link
  384. linkend="zend.service.amazon.classes.accessories">Zend_Service_Amazon_Accessories</link>
  385. </code>
  386. オブジェクトの配列で表される、関連アクセサリの情報
  387. </entry>
  388. </row>
  389. <row>
  390. <entry>Tracks</entry>
  391. <entry>array</entry>
  392. <entry>音楽 CD や DVD の、トラック番号と曲名の配列</entry>
  393. </row>
  394. <row>
  395. <entry>ListmaniaLists</entry>
  396. <entry>array</entry>
  397. <entry>
  398. Item related Listmania Lists as an array of
  399. <code>
  400. <link
  401. linkend="zend.service.amazon.classes.listmania">Zend_Service_Amazon_ListmainList</link>
  402. </code>
  403. オブジェクトの配列で表される、この商品に関連するリストマニアのリスト
  404. </entry>
  405. </row>
  406. <row>
  407. <entry>PromotionalTag</entry>
  408. <entry>string</entry>
  409. <entry>商品の販売促進用のタグ</entry>
  410. </row>
  411. </tbody>
  412. </tgroup>
  413. </table>
  414. <para>
  415. <link linkend="zend.service.amazon.classes">クラス一覧に戻る</link>
  416. </para>
  417. </sect4>
  418. </sect3>
  419. <sect3 id="zend.service.amazon.classes.image">
  420. <title>Zend_Service_Amazon_Image</title>
  421. <para><classname>Zend_Service_Amazon_Image</classname> は、商品の画像を表します。</para>
  422. <sect4 id="zend.service.amazon.classes.image.properties">
  423. <title>プロパティ</title>
  424. <table id="zend.service.amazon.classes.image.properties.table-1">
  425. <title>Zend_Service_Amazon_Image のプロパティ</title>
  426. <tgroup cols="3">
  427. <thead>
  428. <row>
  429. <entry>名前</entry>
  430. <entry>型</entry>
  431. <entry>説明</entry>
  432. </row>
  433. </thead>
  434. <tbody>
  435. <row>
  436. <entry>Url</entry>
  437. <entry>Zend_Uri</entry>
  438. <entry>画像のリモート URL</entry>
  439. </row>
  440. <row>
  441. <entry>Height</entry>
  442. <entry>int</entry>
  443. <entry>画像の高さ (ピクセル単位)</entry>
  444. </row>
  445. <row>
  446. <entry>Width</entry>
  447. <entry>int</entry>
  448. <entry>画像の幅 (ピクセル単位)</entry>
  449. </row>
  450. </tbody>
  451. </tgroup>
  452. </table>
  453. <para>
  454. <link linkend="zend.service.amazon.classes">クラス一覧に戻る</link>
  455. </para>
  456. </sect4>
  457. </sect3>
  458. <sect3 id="zend.service.amazon.classes.resultset">
  459. <title>Zend_Service_Amazon_ResultSet</title>
  460. <para>
  461. <classname>Zend_Service_Amazon_ResultSet</classname> オブジェクトは
  462. <link linkend="zend.service.amazon.itemsearch">Zend_Service_Amazon::itemSearch()</link>
  463. から返され、結果が複数返された場合に簡単に処理できるようにします。
  464. </para>
  465. <note>
  466. <title>SeekableIterator</title>
  467. <para>
  468. 操作性を高めるため、<code>SeekableIterator</code> を実装しています。
  469. これにより、一般的な順次処理 (例えば <code>foreach</code> など)
  470. だけでなく <code>seek()</code> を使用した特定の結果への直接アクセスも可能です。
  471. </para>
  472. </note>
  473. <sect4 id="zend.service.amazon.classes.resultset.totalresults">
  474. <title>Zend_Service_Amazon_ResultSet::totalResults()</title>
  475. <methodsynopsis>
  476. <type>int</type>
  477. <methodname>totalResults</methodname>
  478. <void />
  479. </methodsynopsis>
  480. <para>検索結果の総数を返します。</para>
  481. <para>
  482. <link linkend="zend.service.amazon.classes">クラス一覧に戻る</link>
  483. </para>
  484. </sect4>
  485. </sect3>
  486. <sect3 id="zend.service.amazon.classes.offerset">
  487. <title>Zend_Service_Amazon_OfferSet</title>
  488. <para>
  489. Each result returned by
  490. <link linkend="zend.service.amazon.itemsearch">Zend_Service_Amazon::itemSearch()</link>
  491. および
  492. <link linkend="zend.service.amazon.itemlookup">Zend_Service_Amazon::itemLookup()</link>
  493. から返される各結果には
  494. <classname>Zend_Service_Amazon_OfferSet</classname> オブジェクトが含まれており、
  495. ここから商品の販売情報が取得できます。
  496. </para>
  497. <sect4 id="zend.service.amazon.classes.offerset.parameters">
  498. <title>プロパティ</title>
  499. <table id="zend.service.amazon.classes.offerset.parameters.table-1">
  500. <title>Zend_Service_Amazon_OfferSet のプロパティ</title>
  501. <tgroup cols="3">
  502. <thead>
  503. <row>
  504. <entry>名前</entry>
  505. <entry>型</entry>
  506. <entry>説明</entry>
  507. </row>
  508. </thead>
  509. <tbody>
  510. <row>
  511. <entry>LowestNewPrice</entry>
  512. <entry>int</entry>
  513. <entry>&quot;新品&quot; の最低価格</entry>
  514. </row>
  515. <row>
  516. <entry>LowestNewPriceCurrency</entry>
  517. <entry>string</entry>
  518. <entry>
  519. <code>LowestNewPrice</code> の通貨単位
  520. </entry>
  521. </row>
  522. <row>
  523. <entry>LowestOldPrice</entry>
  524. <entry>int</entry>
  525. <entry>&quot;ユーズド商品&quot; の最低価格</entry>
  526. </row>
  527. <row>
  528. <entry>LowestOldPriceCurrency</entry>
  529. <entry>string</entry>
  530. <entry>
  531. <code>LowestOldPrice</code> の通貨単位
  532. </entry>
  533. </row>
  534. <row>
  535. <entry>TotalNew</entry>
  536. <entry>int</entry>
  537. <entry>&quot;新品&quot; の在庫数</entry>
  538. </row>
  539. <row>
  540. <entry>TotalUsed</entry>
  541. <entry>int</entry>
  542. <entry>&quot;ユーズド商品&quot; の在庫数</entry>
  543. </row>
  544. <row>
  545. <entry>TotalCollectible</entry>
  546. <entry>int</entry>
  547. <entry>&quot;コレクター商品&quot; の在庫数</entry>
  548. </row>
  549. <row>
  550. <entry>TotalRefurbished</entry>
  551. <entry>int</entry>
  552. <entry>&quot;refurbished&quot; の在庫数</entry>
  553. </row>
  554. <row>
  555. <entry>Offers</entry>
  556. <entry>array</entry>
  557. <entry>
  558. <classname>Zend_Service_Amazon_Offer</classname>
  559. オブジェクトの配列
  560. </entry>
  561. </row>
  562. </tbody>
  563. </tgroup>
  564. </table>
  565. <para>
  566. <link linkend="zend.service.amazon.classes">クラス一覧に戻る</link>
  567. </para>
  568. </sect4>
  569. </sect3>
  570. <sect3 id="zend.service.amazon.classes.offer">
  571. <title>Zend_Service_Amazon_Offer</title>
  572. <para>
  573. 商品の個々の販売情報が
  574. <classname>Zend_Service_Amazon_Offer</classname>
  575. オブジェクトとして返されます。
  576. </para>
  577. <sect4 id="zend.service.amazon.classes.offer.properties">
  578. <title>Zend_Service_Amazon_Offer のプロパティ</title>
  579. <table id="zend.service.amazon.classes.offer.properties.table-1">
  580. <title>プロパティ</title>
  581. <tgroup cols="3">
  582. <thead>
  583. <row>
  584. <entry>名前</entry>
  585. <entry>型</entry>
  586. <entry>説明</entry>
  587. </row>
  588. </thead>
  589. <tbody>
  590. <row>
  591. <entry>MerchantId</entry>
  592. <entry>string</entry>
  593. <entry>出品者の Amazon ID</entry>
  594. </row>
  595. <row>
  596. <entry>GlancePage</entry>
  597. <entry>string</entry>
  598. <entry>出品者の概要が掲載されているページの URL</entry>
  599. </row>
  600. <row>
  601. <entry>Condition</entry>
  602. <entry>string</entry>
  603. <entry>商品のコンディション</entry>
  604. </row>
  605. <row>
  606. <entry>OfferListingId</entry>
  607. <entry>string</entry>
  608. <entry>販売情報リストの ID</entry>
  609. </row>
  610. <row>
  611. <entry>Price</entry>
  612. <entry>int</entry>
  613. <entry>商品の価格</entry>
  614. </row>
  615. <row>
  616. <entry>CurrencyCode</entry>
  617. <entry>string</entry>
  618. <entry>商品価格の通貨コード</entry>
  619. </row>
  620. <row>
  621. <entry>Availability</entry>
  622. <entry>string</entry>
  623. <entry>商品の在庫状況</entry>
  624. </row>
  625. <row>
  626. <entry>IsEligibleForSuperSaverShipping</entry>
  627. <entry>boolean</entry>
  628. <entry>Super Saver Shipping に対応しているか否か</entry>
  629. </row>
  630. </tbody>
  631. </tgroup>
  632. </table>
  633. <para>
  634. <link linkend="zend.service.amazon.classes">クラス一覧に戻る</link>
  635. </para>
  636. </sect4>
  637. </sect3>
  638. <sect3 id="zend.service.amazon.classes.similarproduct">
  639. <title>Zend_Service_Amazon_SimilarProduct</title>
  640. <para>
  641. 商品を検索した際に、Amazon は検索結果の商品と似た商品の一覧も返します。
  642. 個々のデータは <classname>Zend_Service_Amazon_SimilarProduct</classname>
  643. オブジェクトとして返されます。
  644. </para>
  645. <para>
  646. 各オブジェクトに含まれる情報を元にして、
  647. その商品の完全な情報を取得するリクエストを行うことができます。
  648. </para>
  649. <sect4 id="zend.service.amazon.classes.similarproduct.properties">
  650. <title>プロパティ</title>
  651. <table id="zend.service.amazon.classes.similarproduct.properties.table-1">
  652. <title>Zend_Service_Amazon_SimilarProduct のプロパティ</title>
  653. <tgroup cols="3">
  654. <thead>
  655. <row>
  656. <entry>名前</entry>
  657. <entry>型</entry>
  658. <entry>説明</entry>
  659. </row>
  660. </thead>
  661. <tbody>
  662. <row>
  663. <entry>ASIN</entry>
  664. <entry>string</entry>
  665. <entry>Amazon 商品 ID (ASIN)</entry>
  666. </row>
  667. <row>
  668. <entry>Title</entry>
  669. <entry>string</entry>
  670. <entry>商品名</entry>
  671. </row>
  672. </tbody>
  673. </tgroup>
  674. </table>
  675. <para>
  676. <link linkend="zend.service.amazon.classes">クラス一覧に戻る</link>
  677. </para>
  678. </sect4>
  679. </sect3>
  680. <sect3 id="zend.service.amazon.classes.accessories">
  681. <title>Zend_Service_Amazon_Accessories</title>
  682. <para>
  683. 返される結果の中の「アクセサリ」については
  684. <classname>Zend_Service_Amazon_Accessories</classname>
  685. オブジェクトで表されます。
  686. </para>
  687. <sect4 id="zend.service.amazon.classes.accessories.properties">
  688. <title>プロパティ</title>
  689. <table id="zend.service.amazon.classes.accessories.properties.table-1">
  690. <title>Zend_Service_Amazon_Accessories のプロパティ</title>
  691. <tgroup cols="3">
  692. <thead>
  693. <row>
  694. <entry>名前</entry>
  695. <entry>型</entry>
  696. <entry>説明</entry>
  697. </row>
  698. </thead>
  699. <tbody>
  700. <row>
  701. <entry>ASIN</entry>
  702. <entry>string</entry>
  703. <entry>Amazon 商品 ID (ASIN)</entry>
  704. </row>
  705. <row>
  706. <entry>Title</entry>
  707. <entry>string</entry>
  708. <entry>商品名</entry>
  709. </row>
  710. </tbody>
  711. </tgroup>
  712. </table>
  713. <para>
  714. <link linkend="zend.service.amazon.classes">クラス一覧に戻る</link>
  715. </para>
  716. </sect4>
  717. </sect3>
  718. <sect3 id="zend.service.amazon.classes.customerreview">
  719. <title>Zend_Service_Amazon_CustomerReview</title>
  720. <para>
  721. カスタマーレビューのデータは
  722. <classname>Zend_Service_Amazon_CustomerReview</classname>
  723. オブジェクトで返されます。
  724. </para>
  725. <sect4 id="zend.service.amazon.classes.customerreview.properties">
  726. <title>プロパティ</title>
  727. <table id="zend.service.amazon.classes.customerreview.properties.table-1">
  728. <title>Zend_Service_Amazon_CustomerReview のプロパティ</title>
  729. <tgroup cols="3">
  730. <thead>
  731. <row>
  732. <entry>名前</entry>
  733. <entry>型</entry>
  734. <entry>説明</entry>
  735. </row>
  736. </thead>
  737. <tbody>
  738. <row>
  739. <entry>Rating</entry>
  740. <entry>string</entry>
  741. <entry>商品のおすすめ度</entry>
  742. </row>
  743. <row>
  744. <entry>HelpfulVotes</entry>
  745. <entry>string</entry>
  746. <entry>「このレビューが参考になった」の投票</entry>
  747. </row>
  748. <row>
  749. <entry>CustomerId</entry>
  750. <entry>string</entry>
  751. <entry>カスタマー ID</entry>
  752. </row>
  753. <row>
  754. <entry>TotalVotes</entry>
  755. <entry>string</entry>
  756. <entry>全投票数</entry>
  757. </row>
  758. <row>
  759. <entry>Date</entry>
  760. <entry>string</entry>
  761. <entry>レビューされた日付</entry>
  762. </row>
  763. <row>
  764. <entry>Summary</entry>
  765. <entry>string</entry>
  766. <entry>レビューの概要</entry>
  767. </row>
  768. <row>
  769. <entry>Content</entry>
  770. <entry>string</entry>
  771. <entry>レビューの内容</entry>
  772. </row>
  773. </tbody>
  774. </tgroup>
  775. </table>
  776. <para>
  777. <link linkend="zend.service.amazon.classes">クラス一覧に戻る</link>
  778. </para>
  779. </sect4>
  780. </sect3>
  781. <sect3 id="zend.service.amazon.classes.editorialreview">
  782. <title>Zend_Service_Amazon_EditorialReview</title>
  783. <para>
  784. 出版社/著者からの内容紹介は
  785. <classname>Zend_Service_Amazon_EditorialReview</classname>
  786. オブジェクトで返されます。
  787. </para>
  788. <sect4 id="zend.service.amazon.classes.editorialreview.properties">
  789. <title>プロパティ</title>
  790. <table id="zend.service.amazon.classes.editorialreview.properties.table-1">
  791. <title>Zend_Service_Amazon_EditorialReview のプロパティ</title>
  792. <tgroup cols="3">
  793. <thead>
  794. <row>
  795. <entry>名前</entry>
  796. <entry>型</entry>
  797. <entry>説明</entry>
  798. </row>
  799. </thead>
  800. <tbody>
  801. <row>
  802. <entry>Source</entry>
  803. <entry>string</entry>
  804. <entry>レビュー元</entry>
  805. </row>
  806. <row>
  807. <entry>Content</entry>
  808. <entry>string</entry>
  809. <entry>レビューの内容</entry>
  810. </row>
  811. </tbody>
  812. </tgroup>
  813. </table>
  814. <para>
  815. <link linkend="zend.service.amazon.classes">クラス一覧に戻る</link>
  816. </para>
  817. </sect4>
  818. </sect3>
  819. <sect3 id="zend.service.amazon.classes.listmania">
  820. <title>Zend_Service_Amazon_Listmania</title>
  821. <para>
  822. リストマニアのリストデータは
  823. <classname>Zend_Service_Amazon_Listmania</classname>
  824. オブジェクトで返されます。
  825. </para>
  826. <sect4 id="zend.service.amazon.classes.listmania.properties">
  827. <title>プロパティ</title>
  828. <table id="zend.service.amazon.classes.listmania.properties.table-1">
  829. <title>Zend_Service_Amazon_Listmania のプロパティ</title>
  830. <tgroup cols="3">
  831. <thead>
  832. <row>
  833. <entry>名前</entry>
  834. <entry>型</entry>
  835. <entry>説明</entry>
  836. </row>
  837. </thead>
  838. <tbody>
  839. <row>
  840. <entry>ListId</entry>
  841. <entry>string</entry>
  842. <entry>リスト ID</entry>
  843. </row>
  844. <row>
  845. <entry>ListName</entry>
  846. <entry>string</entry>
  847. <entry>リスト名</entry>
  848. </row>
  849. </tbody>
  850. </tgroup>
  851. </table>
  852. <para>
  853. <link linkend="zend.service.amazon.classes">クラス一覧に戻る</link>
  854. </para>
  855. </sect4>
  856. </sect3>
  857. </sect2>
  858. </sect1>
  859. <!--
  860. vim:se ts=4 sw=4 et:
  861. -->