From 10c43a5714367beb4bd1b7b93911f436779b4c3b Mon Sep 17 00:00:00 2001 From: Lethys Date: Wed, 18 Nov 2020 15:01:52 +0000 Subject: [PATCH] Added Friends List parameter on character by id --- pyxivapi/__init__.py | 2 +- pyxivapi/client.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyxivapi/__init__.py b/pyxivapi/__init__.py index 1b84001..69d05a3 100644 --- a/pyxivapi/__init__.py +++ b/pyxivapi/__init__.py @@ -2,7 +2,7 @@ __author__ = 'Lethys' __license__ = 'MIT' __copyright__ = 'Copyright 2019 (c) Lethys' -__version__ = '0.3.0' +__version__ = '0.3.1' from .client import XIVAPIClient from .exceptions import ( diff --git a/pyxivapi/client.py b/pyxivapi/client.py index fc55670..971e509 100644 --- a/pyxivapi/client.py +++ b/pyxivapi/client.py @@ -61,7 +61,7 @@ async def character_search(self, world, forename, surname, page=1): return await self.process_response(response) @timed - async def character_by_id(self, lodestone_id: int, extended=False, include_achievements=False, include_minions_mounts=False, include_classjobs=False, include_freecompany=False, include_freecompany_members=False, include_pvpteam=False, language="en"): + async def character_by_id(self, lodestone_id: int, extended=False, include_achievements=False, include_minions_mounts=False, include_classjobs=False, include_friendslist=False, include_freecompany=False, include_freecompany_members=False, include_pvpteam=False, language="en"): """|coro| Request character data from XIVAPI.com Please see XIVAPI documentation for more information about character sync state https://xivapi.com/docs/Character#character @@ -89,6 +89,9 @@ async def character_by_id(self, lodestone_id: int, extended=False, include_achie if include_minions_mounts is True: data.append("MIMO") + if include_friendslist is True: + data.append("FR") + if include_classjobs is True: data.append("CJ")