From ccb5892f15474b45f7807f5f10c7b4513b7a532c Mon Sep 17 00:00:00 2001 From: Josh Freeman Date: Sat, 25 Aug 2018 12:58:59 +0100 Subject: [PATCH] Update companion-app.md --- research/companion-app.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/research/companion-app.md b/research/companion-app.md index 778f9787b..d0f26988d 100644 --- a/research/companion-app.md +++ b/research/companion-app.md @@ -111,6 +111,13 @@ foreach (range(0, 15) as $i) { } ``` +To run this code: +- Update the `token` +- install dependencies using composer: `composer req guzzlehttp/guzzle ramsey/uuid` +- Copy the code to a file, eg: `companion.php` +- Call: `php companion.php` + - the variable `$data` will be json, you could do `json_decode($data, true)` to get the response as an array of data. + ### Market Response info - `stack` Quantity for sale - `catalogId` ItemID you see in the game files