1 | <?php |
||
33 | class Request implements RequestInterface |
||
34 | { |
||
35 | /** |
||
36 | * The requestscheme |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | private $requestScheme = "http://webservices.amazon.%s/onca/xml?%s"; |
||
41 | |||
42 | /** |
||
43 | * @var ConfigurationInterface |
||
44 | */ |
||
45 | private $configuration; |
||
46 | |||
47 | /** |
||
48 | * @var ClientInterface |
||
49 | */ |
||
50 | private $client; |
||
51 | |||
52 | /** |
||
53 | * Initialize instance |
||
54 | * |
||
55 | * @param ClientInterface $client |
||
56 | */ |
||
57 | public function __construct(ClientInterface $client) |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function setConfiguration(ConfigurationInterface $configuration) |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function perform(OperationInterface $operation) |
||
87 | |||
88 | /** |
||
89 | * Prepares the parameters for the request |
||
90 | * |
||
91 | * @param OperationInterface $operation |
||
92 | * |
||
93 | * @return array |
||
94 | */ |
||
95 | protected function prepareRequestParams(OperationInterface $operation) |
||
119 | |||
120 | /** |
||
121 | * Builds the final querystring including the signature |
||
122 | * |
||
123 | * @param array $params |
||
124 | * |
||
125 | * @return string |
||
126 | */ |
||
127 | protected function buildQueryString(array $params) |
||
138 | |||
139 | /** |
||
140 | * Calculates the signature for the request |
||
141 | * |
||
142 | * @param array $params |
||
143 | * |
||
144 | * @return string |
||
145 | */ |
||
146 | protected function buildSignature(array $params) |
||
159 | } |
||
160 |