This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Jun 19 05:45:47 -0700 2009 | |
| |
README | Wed Jul 29 03:45:23 -0700 2009 | |
| |
amazon-auth-proxy.cgi | Thu Jul 30 01:08:02 -0700 2009 | |
| |
amazon-auth-proxy.fcgi | Wed Jul 22 21:36:28 -0700 2009 | |
| |
amazon-auth-proxy.sample.yaml | Wed Jul 29 03:38:40 -0700 2009 | |
| |
dot.htaccess | Fri Jun 19 05:45:47 -0700 2009 |
README
Authentication Proxy Server of Amazon Product Advertising API. (Amazon Product Advertising APIの認証を代替するPROXYサーバ) amazon-auth-proxy.cgiは、RubyのCGIとして書かれています。従来の Amazon ECS APIとして動作し、指定した言語のAmazon PAAPIに対して 有効な認証済みリクエストを作成して呼び出し元に返します。または 実際にAPIをコールしたのち、結果をそのまま返します。 amazon-auth-proxy.cgiは、同じディレクトリにあるamazon-auth-proxy.yaml というファイルを読み、そこに記述されている各種APIキーとAPIのエ ントリポイント、アソシエイトIDなどを使ってAPI呼び出しを構築しま す(amazon-auth-proxy.sample.yamlを参照)。amazon-auth-proxy.yaml には公開してはいけない情報が含まれるので、.htaccessなどによって アクセスを禁止しなくてはいけません(dot.htaccess参照)。 amazon-auth-proxy.yamlで指定するentry_pointには、以下のような各 国向けAmazonのAPIエントリポイントURLを指定します: http://webservices.amazon.com/onca/xml http://webservices.amazon.co.jp/onca/xml http://webservices.amazon.fr/onca/xml http://webservices.amazon.co.uk/onca/xml http://webservices.amazon.de/onca/xml http://webservices.amazon.ca/onca/xml また、Styleパラメタを使用したクエリのため、xslt_entry_pointとし て以下のURLも指定してください: http://xml-us.amznxslt.com/onca/xml http://xml-jp.amznxslt.com/onca/xml http://xml-fr.amznxslt.com/onca/xml http://xml-uk.amznxslt.com/onca/xml http://xml-de.amznxslt.com/onca/xml http://xml-ca.amznxslt.com/onca/xml use_redirectは、通常trueにして運用してください。これは構築した AmazonへのリクエストURLを、302リダイレクトとして呼び出し元に返 すという意味です。これにより、proxyサーバの負荷を低減します。 なお、module HMACは、えろぺおさんのコードを流用しています。 <http://elpeo.jp/diary/20090512.html#p01> Copyright (C) 2009 TADA Tadashi <t@tdtds.jp> You can redistribute it and/or modify it under GPL2.







