Skip to content

Commit 90941c3

Browse files
committed
Retainer/Character/Signature are now private endpoints.
1 parent ad82f1a commit 90941c3

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

src/XIVAPI/Api/Market.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ public function item(int $itemId, array $servers = [], string $dc = '')
2727
RequestOptions::QUERY => $options
2828
]);
2929
}
30-
31-
public function retainer(string $retainerId)
32-
{
33-
return Guzzle::get("/market/retainer/{$retainerId}");
34-
}
35-
30+
3631
public function search($elasticQuery)
3732
{
3833
return Guzzle::get("/market/search", [

src/XIVAPI/Api/PrivateApi.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,34 @@ public function itemHistory(string $accessKey, int $itemId, string $server)
6262
]
6363
]);
6464
}
65+
66+
public function retainerItems(string $accessKey, string $retainerId)
67+
{
68+
return Guzzle::get("/market/retainer", [
69+
RequestOptions::QUERY => [
70+
'access' => $accessKey,
71+
'retainer_id' => $retainerId,
72+
]
73+
]);
74+
}
75+
76+
public function characterHistory(string $accessKey, string $lodestoneId)
77+
{
78+
return Guzzle::get("/market/character", [
79+
RequestOptions::QUERY => [
80+
'access' => $accessKey,
81+
'lodestone_id' => $lodestoneId,
82+
]
83+
]);
84+
}
85+
86+
public function signatureItems(string $accessKey, string $lodestoneId)
87+
{
88+
return Guzzle::get("/market/signature", [
89+
RequestOptions::QUERY => [
90+
'access' => $accessKey,
91+
'lodestone_id' => $lodestoneId,
92+
]
93+
]);
94+
}
6595
}

0 commit comments

Comments
 (0)