| @@ 114-121 (lines=8) @@ | ||
| 111 | * @param string $site (default: null) |
|
| 112 | * @return ApiResponse |
|
| 113 | */ |
|
| 114 | public function ordersGet($id, $by = 'externalId', $site = null) |
|
| 115 | { |
|
| 116 | $this->checkIdParameter($by); |
|
| 117 | ||
| 118 | return $this->client->makeRequest("/orders/$id", Client::METHOD_GET, $this->fillSite($site, array( |
|
| 119 | 'by' => $by |
|
| 120 | ))); |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Returns a orders history |
|
| @@ 326-333 (lines=8) @@ | ||
| 323 | * @param string $site (default: null) |
|
| 324 | * @return ApiResponse |
|
| 325 | */ |
|
| 326 | public function customersGet($id, $by = 'externalId', $site = null) |
|
| 327 | { |
|
| 328 | $this->checkIdParameter($by); |
|
| 329 | ||
| 330 | return $this->client->makeRequest("/customers/$id", Client::METHOD_GET, $this->fillSite($site, array( |
|
| 331 | 'by' => $by |
|
| 332 | ))); |
|
| 333 | } |
|
| 334 | ||
| 335 | /** |
|
| 336 | * Returns filtered customers list |
|