From dc2c8b44cf4c77d96780d602efdaa2ee99da57ea Mon Sep 17 00:00:00 2001 From: sonicolasj Date: Sun, 13 May 2018 22:25:34 +0200 Subject: [PATCH] Added characters/{name}/pets --- v2/characters/pets.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 v2/characters/pets.js diff --git a/v2/characters/pets.js b/v2/characters/pets.js new file mode 100644 index 00000000..dcd3ebdf --- /dev/null +++ b/v2/characters/pets.js @@ -0,0 +1,17 @@ +// Authenticated endpoint returning the character's unlocked pets (if ranger). +// Requires the "characters" and "progression" scopes. + +// GET /v2/characters/Margrid%20The%20Sly/pets?access_token= + +[ + { + pet_id: 2, // References /v2/pets -> id + obtained: "2018-05-11T15:13:00Z", // The date at which the pet has been charmed (if available in the API). + obtained_location: 3, // References /v2/continents/1/floors/1/regions/2/maps/21/sectors/372 -> id + nickname: "Koss", // The nickname given in the interface, defaults to the localized specie string (Juvenile warthog). + equipped: ["Terrestrial"] // If the pet is equipped in 1 or more of the 4 slots, it is displayed here. + } +] + +// "equipped" possible values are "Terrestrial", "Aquatic". +// Empty array means the pet's not equipped, and array with both values means it is equipped both as terrestrial and aquatic pet. \ No newline at end of file