2
0

Zend_Service_Amazon.xml 43 KB

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