Skip to content

Commit 2af5ca6

Browse files
committed
Add new market request call.
1 parent 6309cc5 commit 2af5ca6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/XIVAPI/Api/Market.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,22 @@
77

88
class Market
99
{
10+
public function get(string $server, int $itemId)
11+
{
12+
return Guzzle::get("/market/{$server}/item/{$itemId}");
13+
}
14+
15+
/**
16+
* @deprecated - use "get"
17+
*/
1018
public function price(string $server, int $itemId)
1119
{
1220
return Guzzle::get("/market/{$server}/items/{$itemId}");
1321
}
14-
22+
23+
/**
24+
* @deprecated - use "get"
25+
*/
1526
public function history(string $server, int $itemId)
1627
{
1728
return Guzzle::get("/market/{$server}/items/{$itemId}/history");

0 commit comments

Comments
 (0)