|
7 | 7 |
|
8 | 8 | class Market |
9 | 9 | { |
10 | | - public function get(string $server, int $itemId) |
| 10 | + public function getServer(string $server, int $itemId) |
11 | 11 | { |
12 | 12 | return Guzzle::get("/market/{$server}/item/{$itemId}"); |
13 | 13 | } |
14 | 14 |
|
15 | | - /** |
16 | | - * @deprecated - use "get" |
17 | | - */ |
18 | | - public function price(string $server, int $itemId) |
| 15 | + public function getServers(array $servers, int $itemId) |
19 | 16 | { |
20 | | - return Guzzle::get("/market/{$server}/items/{$itemId}"); |
| 17 | + return Guzzle::get("/market/item/{$itemId}", [ |
| 18 | + RequestOptions::QUERY => [ |
| 19 | + 'servers' => implode(',', $servers) |
| 20 | + ] |
| 21 | + ]); |
21 | 22 | } |
22 | 23 |
|
23 | | - /** |
24 | | - * @deprecated - use "get" |
25 | | - */ |
26 | | - public function history(string $server, int $itemId) |
27 | | - { |
28 | | - return Guzzle::get("/market/{$server}/items/{$itemId}/history"); |
29 | | - } |
30 | | - |
31 | | - public function stock(string $server, int $categoryId) |
| 24 | + public function getDataCenter(string $dc, int $itemId) |
32 | 25 | { |
33 | | - return Guzzle::get("/market/{$server}/category/{$categoryId}"); |
| 26 | + return Guzzle::get("/market/item/{$itemId}", [ |
| 27 | + RequestOptions::QUERY => [ |
| 28 | + 'dc' => $dc |
| 29 | + ] |
| 30 | + ]); |
34 | 31 | } |
35 | 32 |
|
36 | 33 | public function categories() |
37 | 34 | { |
38 | 35 | return Guzzle::get("/market/categories"); |
39 | 36 | } |
40 | | - |
41 | | - public function tokens($password) |
42 | | - { |
43 | | - return Guzzle::get("/companion/tokens", [ |
44 | | - RequestOptions::QUERY => [ |
45 | | - 'password' => $password |
46 | | - ] |
47 | | - ]); |
48 | | - } |
49 | 37 | } |
0 commit comments