File tree Expand file tree Collapse file tree 4 files changed +57
-11
lines changed Expand file tree Collapse file tree 4 files changed +57
-11
lines changed Original file line number Diff line number Diff line change @@ -137,3 +137,5 @@ $api->pvpteam->get($id, $data = []);
137
137
$api->pvpteam->update($id);
138
138
$api->pvpteam->delete($id);
139
139
```
140
+
141
+ > Note: The ` _private ` API is for internal use within XIVAPI and MogBoard. It cannot be used publicly and is locked behind an access key.
Original file line number Diff line number Diff line change @@ -66,15 +66,4 @@ public function categories()
66
66
{
67
67
return Guzzle::get ("/market/categories " );
68
68
}
69
-
70
- public function manualUpdateItem (string $ accessKey , int $ itemId , int $ server )
71
- {
72
- return Guzzle::get ("/private/market/item/update " , [
73
- RequestOptions::QUERY => [
74
- 'access ' => $ accessKey ,
75
- 'item_id ' => $ itemId ,
76
- 'server ' => $ server ,
77
- ]
78
- ]);
79
- }
80
69
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace XIVAPI \Api ;
4
+
5
+ use GuzzleHttp \RequestOptions ;
6
+ use XIVAPI \Guzzle \Guzzle ;
7
+
8
+ class PrivateApi
9
+ {
10
+ /**
11
+ * Request an item to be updated
12
+ */
13
+ public function manualItemUpdate (string $ accessKey , int $ itemId , string $ server )
14
+ {
15
+ return Guzzle::get ("/private/market/item/update " , [
16
+ RequestOptions::QUERY => [
17
+ 'companion_access_key ' => $ accessKey ,
18
+ 'item_id ' => $ itemId ,
19
+ 'server ' => $ server ,
20
+ ]
21
+ ]);
22
+ }
23
+
24
+ /**
25
+ * Request an item to be updated
26
+ */
27
+ public function itemPrices (string $ accessKey , int $ itemId , string $ server )
28
+ {
29
+ return Guzzle::get ("/private/market/item " , [
30
+ RequestOptions::QUERY => [
31
+ 'companion_access_key ' => $ accessKey ,
32
+ 'item_id ' => $ itemId ,
33
+ 'server ' => $ server ,
34
+ ]
35
+ ]);
36
+ }
37
+
38
+ /**
39
+ * Request an item to be updated
40
+ */
41
+ public function itemHistory (string $ accessKey , int $ itemId , string $ server )
42
+ {
43
+ return Guzzle::get ("/private/market/item/history " , [
44
+ RequestOptions::QUERY => [
45
+ 'companion_access_key ' => $ accessKey ,
46
+ 'item_id ' => $ itemId ,
47
+ 'server ' => $ server ,
48
+ ]
49
+ ]);
50
+ }
51
+ }
Original file line number Diff line number Diff line change 9
9
use XIVAPI \Api \Lodestone ;
10
10
use XIVAPI \Api \Market ;
11
11
use XIVAPI \Api \PatchList ;
12
+ use XIVAPI \Api \PrivateApi ;
12
13
use XIVAPI \Api \PvPTeam ;
13
14
use XIVAPI \Api \Search ;
14
15
use XIVAPI \Api \Content ;
@@ -44,6 +45,8 @@ class XIVAPI
44
45
public $ market ;
45
46
/** @var PatchList */
46
47
public $ patchlist ;
48
+ /** @var PrivateApi */
49
+ public $ _private ;
47
50
48
51
public function __construct (string $ environment = self ::PROD )
49
52
{
@@ -61,6 +64,7 @@ public function __construct(string $environment = self::PROD)
61
64
$ this ->lodestone = new Lodestone ();
62
65
$ this ->market = new Market ();
63
66
$ this ->patchlist = new PatchList ();
67
+ $ this ->_private = new PrivateApi ();
64
68
}
65
69
66
70
public function reset (): XIVAPI
You can’t perform that action at this time.
0 commit comments