TOP > 豊作ツールズ > Amazon Product Advertising API for Wordpress

豊作ツールズwordpress ロゴ

WordPress Plugin 豊作くんアマゾン Product Advertising API

Housaku Project Amazon Product Advertising API for WordPress Plugin.


新しいバージョンの WordPress に対応していない為、現在配布を停止しています。

今後の情報は、代表取締役 秋田隆輝のブログ OBRIGADO! ARIGATO! にて配信して行きます。チェック頂ければとおもいます。


WordPress バージョンアップに伴い、ページング(めくり)機能が正常に動かない現象が発生しております。

hsk_am_otherFunction.php
の 301行目
「$amazoneListData .= '</div>';」この記述の直下に
「$mekuri="";」
を記述して下さい。

これにより、ページング機能をはずすことができます。
修正がされ次第、本ページに情報を掲載します。


【概要】

本プログラムは、Wordpress のプラグインとして機能します。
This program functions as plug-in of Wordpress.

Wordpress に投稿された記事、固定ページに付けられた「タグ」を検索キーワードとして、amazon に登録されている商品を検索し、各記事の下に抽出された商品をリスト化します。
The products registered into amazon are searched by making into a search keyword the report contributed to Wordpress,
and the "tag" the fixed page was tagged, and the products extracted under each report are listed.

タグが無い場合は、あらかじめ登録されたキーワードを元に商品を検索してリストを作成します。
When there is no tag, create a list based on keyword searches for products that were previously registered.

検索エンジンからアクセスされた場合、検索されたキーワードを元に amazon の商品を検索し、リスト化します。
When accessed from a search engine to find amazon products based on the keyword search, a list.

一度インストールしてしまえば、通常に記事の更新を行うだけで Product Advertising API によるアソシエイトを続けて行く事が可能です。
Once you have installed, it is possible to continue using the Product Advertising API Associate with just a normal update of an article.

多国の Product Advertising API にも対応しています。(Amazon.co.jp, Amazon.com, Amazon.ca, Amazon.co.uk, Amazon.de)
It supports Product Advertising API of many countries. (Amazon.co.jp, Amazon.com, Amazon.ca, Amazon.co.uk, Amazon.de)

PC, スマホ(wptouch), 携帯(ktai style) に対応しています。
It supports to PC, Smart Phone(wptouch) and Mobile Phone(mobile style).
ページのトップへ

【実際の利用サイト】

豊作プロジェクト代表取締役:秋田のブログ(Housaku Project President : Akita's Blog)

こちら花粉情報局(Pollen Information)

鼻日記(Nose diar)

TRIATHLON ONLINE

Active Server Pages Reference
ページのトップへ

【ダウンロード(How to download? )】

・hsk-amazon-api20111128.zip ← こちらよりダウンロードを行ってください。
・hsk-amazon-api20111128.zip <- Click on the Link for Download.

設定時に「豊作プロジェクトに登録したメールアドレス」「豊作プロジェクトから受け取ったメールキー」が必要になります。
https://ssl.housaku.net/amazonadapi/index.php にてメールアドレスの登録およびメールキーの発行を行ってください。

To start the setup , you need to enter “E-mail Address Registered with Housaku Project Inc” and “E-mail Key Received from Housaku Project Inc”.
Please register your email address and get the registration key by visiting https://ssl.housaku.net/amazonadapi/index.php.
ページのトップへ

【動作環境(System Requirements)】

・Wordpress 3.0 以降(WordPress 3.2.1 で作成。他のバージョンでの検証はしていません)
・PHP 5.0 以降(PHP 4 での検証はしていません。)

- Wordpress 3.0 or greater (It is Created by WordPress 3.2.1. Verification by other versions is not carried out. )
- PHP 5.0 or greater (Verification by PHP 4 is not carried out)
ページのトップへ

【必要条件(Requirments)】

Product Advertising API を理解している事
To use “Product Advertising API”, you will need the following:

Product Advertising API の アクセスキー、シークレットキーが取得でき、アマゾンアソシエイトタグ(トラッキングID)を発行出来る事
- A skill of Product Advertising API (To be familiar with Product Advertising API)
- An access key and a secret key of Product Advertising API. To obtain Amazon Associate Tag(Tracking ID).

Wordpress を使っている事
- Using Wordpress

※インストールサポートを望まれる場合は、info★housaku.net (★→@)までお問い合わせ下さい。状況により見積もりさせていただきます。
*If you require install support, please contact info★housaku.net★→@). We will make an estimate of service fees depending on your situation.
ページのトップへ

【インストール(Install)】

・豊作くんアマゾン Product Advertising API 用の固定ページ作成
Fixed page creation for Housaku Project Amazon Product Advertising API.

Wordpress 上にアマゾンショップ専用ページを作成頂くイメージです。
It is an image which creates the page only for an Amazon shop on Wordpress.
このページは、商品の検索や、指定キーワードでのリスト表示に利用します。
This Paige uses for search of products and a list display by a specification keyword.

固定ページの名称は何でもかまいません。
The name of a fixed page is not cared about anything.

固定ページにはショートコード [hsk_amazon] だけを記述して下さい。
Please describe a short code [hsk_amazon] into a fixed page.
他の文字等や画像等を入れていただいても問題ありませんが、当初は [hsk_amazon] だけでお願いします。
You have no problem to putting other characters, images, etc., etc., and initially just you put the short code [hsk_amazon].

作成した固定ページは、 /stor/ や /shop/ でアクセス出来るようにして下さい。
Please enable it to access by the store and shop page which were created.
(文字列に指定はありませんが、パーマーリンクの設定が必要になるかもしれません)
(Although a character string does not have specification, a setup of the Palmer link may be needed)

http://ホスト名.com/store/ や http://ホスト名.com/shop/
http://hostname.com/store/ and http://hostname.com/shop/

階層の下にある場合は
When it is under a class

http://ホスト名.com/wp/store/ や http://ホスト名.com/wp/shop/
http://hostname.com/wp/store/ and http://hostname.com/wp/shop/

等となります。
It becomes.

具体例)
Example: http://akita.housaku.net/shop/
http://triathlononline.jp/wp/store/


・ファイルの転送(File Transfer)
豊作プロジェクトよりお送りした zip もしくはダウンロード頂いた zip を解凍して下さい。
Please decompress a zip file sent by us or downloaded by yourself.

解凍するとディレクトリ「hsk-amazon-api」が作られますので、こちらを /wp-content/plugins/ に ディレクトリ毎転送して下さい。
Since the directory "hsk-amazon-api" will be made if it thaws, please transmit to /wp-content/plugins/ here the whole directory.

/wp-content/plugins/hsk-amazon-api/ となります。
It becomes /wp-content/plugins/hsk-amazon-api/


・プラグインの設定(Set up of plugin)

管理画面の「プラグイン」に「HSK Amazon Product Advertising API」があるのを確認したら、「有効化」をクリックします。
"Validation" will be clicked if it checks that "plug-in" of a management screen has "HSK Amazon Product Advertising API."

有効化を行うと、左メニュー「プラグン」の下に「HSK Amazone Product Advertising APIの設定」が出てきますので、そちらをクリックして設定画面に入ります。
When you activate the left menu "Puragun" under the "Setting the HSK Amazone Product Advertising API" it comes out, enter the setting screen and click there.

以下の内容を入力して下さい。
Please input the following contents. 「アマゾンアクセスキー」Amazon Access Key
Product Advertising API にて発行されるアクセスキーです。
It is an access key published in Product Advertising API.
20文字の英数字で作られた文字列です。
It is the character string made from the alphanumeric character of 20 characters.

「アマゾンシークレットキー」Amazon Secret Key
Product Advertising API にて発行されるシークレットキーです。
It is a secret key published in Product Advertising API.
40文字の英数字で作られた文字列です。
It is the character string made from the alphanumeric character of 40 characters.

「アマゾンアソシエイトタグ」Amazon Associate Tag
Product Advertising API にて発行されるトラッキングIDです。
It is tracking ID published in Product Advertising API.
サイト名-22 (日本は -22)となっている文字列です。
It is a character string used as site name-22 (Japan is -22).

「利用するアマゾンの国」Amazon Countries to Use
CA:カナダ、DE:ドイツ、JP:日本、UK:イギリス、US:アメリカ を選ぶ事が出来ます。
CA: Canada, DE:Germany, JP:Japan, UK:Britain, US:United States It can choose.
ご自身が持っているアソシエイトタグに対応した国を選択して下さい。
対応していない国を選択してしまった場合、アマゾンから受けられ報酬はアマゾンギフトのみとなるとの事です。詳しくは各国のアマゾンアソシエイトにてご確認下さい。
Please choose the country corresponding to the associate tag which self.
When the not corresponding country has been chosen, it is if it can receive from an Amazon and remuneration serves as only an Amazon gift. Please confirm in the Amazon associate of each country for details.
「アマゾン固定ページまでのパス」The path to an Amazon fixed page
上記で作成した固定ページ stor/ shop/ wp/stor/ wp/shop/ 等。
※スラッシュを必ず含んで下さい。
Fixed page stor/ shop/ wp/stor/ wp/shop/etc. which were created above.
* Please be sure to include a slash.

「タグがない場合の検索用文字」If there is no tag for the search string
各ページの検索結果は、タグを利用して amazon 商品を検索しますが、タグが無い場合に利用する基本の文字を入れておいて下さい。ただし、入力した文字に対する商品が無い、もしくは少ない場合もありますので、サイトコンテンツに合わせ、なるべく商品が出てくる検索用の文字を選んで下さい。
Although the search results of each page search amazon goods using a tag, please put in the character of the foundations used when there is no tag.
However, there need to be no goods to the inputted character, or since it may be small, please unite with site contents and choose the character for search in which goods come out if possible.

 「検索結果禁止文字」Search Results prohibited characters
  検索結果には、サイトコンテンツにそぐわない商品が並ぶ場合があります。ライバル会社の商品や、アダルト商品等。それらを完全に排除した状態で検索を行う事が出来ませんので、なるべく出さないようにするために「検索結果禁止文字」を入力します。
検索結果に表示したくない文字に「-」を付けます。また、半角スーペースで繋げる事により、複数の禁止文字を指定出来ます。
Not suitable goods may be located in a line with search results at site contents.
Goods, adult goods, etc. of a rival company.
Since it cannot search where they are eliminated completely, in order to make it not take out if possible, a "search-results prohibition character" is inputted.
"-" is attached to a character not to display on search results.
Moreover, two or more prohibition characters can be specified by tying by half-width space.

例)
「-ライバル会社名」:ライバル会社名が含まれている商品を排除します。
「-アダルト」:アダルトの文字列が含まれている商品を排除します。
「-ライバル会社名 -アダルト」ライバル会社名もしくはアダルトの文字列が含まれている商品を排除します。
Example
"- rival company name": Eliminate the goods in which the rival company name is included.
"- adult": Eliminate the goods in which the adult's character string is contained.
The goods in which the character string of the "- rival company name - adult" rival company name or the adult is contained are eliminated.

※amazon の商品リストにはかなりの比率でアダルト商品が含まれます。現在の Product Advertising API の仕様では、アダルト商品を完全に削除する事が出来ません。 Google AdSense との併用は、アダルトコンテンツの部分で抵触する可能性がありますので、十分ご理解の上利用下さい。
* Adult goods are contained in goods Liszt of amazon by a remarkable ratio.
By the specification of present Product Advertising API, adult goods cannot be deleted completely.
Since the combined use with Google AdSense may conflict in the portion of adult contents, as for an understanding, the object for Agari should give it enough to me.

「商品リストの罫線の色」Border Colors of the Product List
商品リストの罫線の色を RGB で指定出来ます。
Border Colors of the Product List can be specified by RGB.

「商品リストの背景」Background Colors of the Product List
商品リストの背景の色を RGB で指定出来ます。
Background Colors of the Product List can be specified by RGB.

「商品画像の背景」Background Color of the Product Iamge
商品画像の背景の色を RGB で指定出来ます。
Background Color of the Product Iamge can be specified by RGB.

「豊作プロジェクトに登録したメールアドレス」E-mail Address Registered with Housaku Project Inc
豊作プロジェクトに登録したメールアドレスを入力下さい。
Please input the mail address registered into the Housaku Project Inc.

「豊作プロジェクトから受け取ったメールキー」E-mail Key Received from Housaku Project Inc
豊作プロジェクトから受け取ったメールキーを入力下さい。
Please input the e-mail key received from the Housaku Project Inc.

https://ssl.housaku.net/amazonadapi/index.php にてメールアドレスの登録およびメールキーの発行を行ってください。
Please perform registration of a mail address, and issue of an e-mail key in https://ssl.housaku.net/amazonadapi/index.php.


入力が終りましたら「変更を保存」をクリックします。
If an input finishes, it will click "Save Changes" button.


登録後、エラーが無ければ、作成された固定ページにアクセスが出来るか確認して下さい。エラーがある状態では、豊作くんアマゾンProduct Advertising API は機能しません。
After registration, if errorless, please check whether access is possible for the created fixed page.
Housaku Project Product Advertising API does not function in the state where there is an error.


・.htaccess の設定 Setting of .htaccess

変更後設定画面一番下に「以下を.htaccess に追記して下さい」と出ますので、
.htaccess に追記します。
Since it comes out to the after-change setting screen bottom, saying "add the following to .htaccess",
. Add a postscript to htaccess.

追記は 「RewriteBase /」の行と「RewriteRule ^index\.php$ - [L]」の行の間にします。
A postscript is carried out between the line of "RewriteBase /", and the line of "RewriteRule^index\.php$ - [L]."

以下参考例です
Note the following examples.
#**** .htaccess **************************************************************
# BEGIN WordPress

RewriteEngine On
RewriteBase /


RewriteRule ^store/list/(.*)/(.*)/(.*)/$ /index.php?index=$1&key=$2&page=$3&typ=list [QSA]
RewriteRule ^store/item/(.*)/(.*)/$ /index.php?ItemId=$2&typ=item [QSA] 

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


# END WordPress
#******************************************************************************

これにてインストール完了。
Installation is completed.
上記にて作成した固定ページに検索窓が出力され、検索が出来ればインストール成功です。
また、記事を閲覧した際に、アマゾン商品のリストがあれば成功となります。
It will be an installation success, if a search window is outputted to the fixed page created above and search is possible.
Moreover, when a report is perused, it will be succeeding if there is a list of Amazon products.
ページのトップへ

【ライセンス License】

WordPress Plugin 豊作くんアマゾン Product Advertising API のライセンスは GPL v2 とします。
著作権は「豊作プロジェクト株式会社」が保有します。ただし、ソースコードのいくつかの部分はWordPress の本体コードを流用したものがあり、その部分は WordPress 開発者が著作者です。
The license of WordPress Plugin Housaku Project Amazon Product Advertising API is set to GPL v2.
Housaku Project Inc., holds Copyright. However, some parts of the source code was borrowed the code has the body of WordPress,
that portion is copyrighted by the developer of the WordPress.
ページのトップへ

【注意事項 Notice】

WordPress Plugin 豊作くんアマゾン Product Advertising API を利用した事によるあらゆるトラブルや障害に関して、豊作プロジェクトでは一切の責任を負いかねます。ご自身の判断にてご利用下さい。
About any problems or failures caused by using a WordPress Plugin Housaku Project Amazon Product Advertising API,
No responsibility can be taken in Housaku Project Inc.
Please use at your own discretion.
ページのトップへ

【お願い Caution】

約10回に1回程、豊作プロジェクトのアソシエイトキーを使ったリンクが生成されます。この機能を外した状態での利用は遠慮下さい。
このタグの挙動は、豊作プロジェクトへの寄付とお考え下さい。
About once every 10 times, will generate a link key associate with Housaku Project.
Please withhold use in the state where this function was removed.
Please regard the behavior of this tag as contribution to Housaku Project.
ページのトップへ

Classic ASP.AID レガシー ASP

Classic ASP に特化したサポートサービス

Classic ASP.AID レガシー ASP
電子書籍出版サービス

豊作パブリッシング

LOOK
豊作ツールズ

豊作プロジェクトの便利ツール提供

LOOK