2
0

Zend_Service_Amazon.xml 44 KB

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