Skip to content

Commit

Permalink
Retainer/Character/Signature are now private endpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
vekien committed May 16, 2019
1 parent ad82f1a commit 90941c3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/XIVAPI/Api/Market.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ public function item(int $itemId, array $servers = [], string $dc = '')
RequestOptions::QUERY => $options
]);
}

public function retainer(string $retainerId)
{
return Guzzle::get("/market/retainer/{$retainerId}");
}


public function search($elasticQuery)
{
return Guzzle::get("/market/search", [
Expand Down
30 changes: 30 additions & 0 deletions src/XIVAPI/Api/PrivateApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,34 @@ public function itemHistory(string $accessKey, int $itemId, string $server)
]
]);
}

public function retainerItems(string $accessKey, string $retainerId)
{
return Guzzle::get("/market/retainer", [
RequestOptions::QUERY => [
'access' => $accessKey,
'retainer_id' => $retainerId,
]
]);
}

public function characterHistory(string $accessKey, string $lodestoneId)
{
return Guzzle::get("/market/character", [
RequestOptions::QUERY => [
'access' => $accessKey,
'lodestone_id' => $lodestoneId,
]
]);
}

public function signatureItems(string $accessKey, string $lodestoneId)
{
return Guzzle::get("/market/signature", [
RequestOptions::QUERY => [
'access' => $accessKey,
'lodestone_id' => $lodestoneId,
]
]);
}
}

0 comments on commit 90941c3

Please sign in to comment.