Mercurial > hg > ywww
comparison php/read/aws_signed_request.php @ 42:3f400072bf14
merge, involved ediff3 wrt getAmazonInfo.php
| author | Charlie Root |
|---|---|
| date | Sat, 05 Jan 2019 06:21:12 -0500 |
| parents | 2c0c95bd97a6 |
| children | dbc006408d2b |
comparison
equal
deleted
inserted
replaced
| 41:0578c6e438d3 | 42:3f400072bf14 |
|---|---|
| 1 <?php | 1 <?php |
| 2 | 2 |
| 3 //20090627/Jaap van Ganswijk: This is a modified version, see the | 3 //20090627/Jaap van Ganswijk: This is a modified version, see the |
| 4 //return statement some lines before the end of the last function. | 4 //return statement some lines before the end of the last function. |
| 5 | |
| 6 | |
| 7 $Aassociates_id=array( | |
| 8 'uk' => 'bookwhack-21', | |
| 9 'us' => 'your02b-20', | |
| 10 'ca' => 'book009-20', | |
| 11 'de' => 'book04c-21', | |
| 12 'fr' => 'book07f-21', | |
| 13 ); | |
| 14 | |
| 15 $Aserver=array( | |
| 16 'ca' => array( | |
| 17 'ext' => 'ca' , //Canadian normal server | |
| 18 'nor' => 'http://www.amazon.ca' , //Canadian normal server | |
| 19 'xml' => 'http://xml.amazon.com' , //Canadian xml server | |
| 20 ), | |
| 21 'de' => array( | |
| 22 'ext' => 'de' , //German normal server | |
| 23 'nor' => 'http://www.amazon.de' , //German normal server | |
| 24 'xml' => 'http://xml-eu.amazon.com', //German xml server | |
| 25 ), | |
| 26 'fr' => array( | |
| 27 'ext' => 'fr' , //French normal server | |
| 28 'nor' => 'http://www.amazon.fr' , //French normal server | |
| 29 'xml' => 'http://xml-eu.amazon.com', //French xml server | |
| 30 ), | |
| 31 'jp' => array( | |
| 32 'ext' => 'jp' , //Japanese normal server, not co.jp! | |
| 33 'nor' => 'http://www.amazon.co.jp' , //Japanese normal server | |
| 34 'xml' => 'http://xml.amazon.com' , //Japanese xml server | |
| 35 ), | |
| 36 'uk' => array( | |
| 37 'ext' => 'co.uk' , //UK normal server | |
| 38 'nor' => 'http://www.amazon.co.uk' , //UK normal server | |
| 39 'xml' => 'http://xml-eu.amazon.com', //UK xml server | |
| 40 ), | |
| 41 'us' => array( | |
| 42 'ext' => 'com' , //USA normal server | |
| 43 'nor' => 'http://www.amazon.com' , //USA normal server | |
| 44 'xml' => 'http://xml.amazon.com' , //USA xml server | |
| 45 ), | |
| 46 ); | |
| 47 | |
| 5 | 48 |
| 6 if (!function_exists("aws_signed_request")) { | 49 if (!function_exists("aws_signed_request")) { |
| 7 function aws_signed_request($region, $params, $public_key, $private_key) | 50 function aws_signed_request($region, $params, $public_key, $private_key) |
| 8 { | 51 { |
| 9 /* | 52 /* |
