Skip to content

Commit

Permalink
Merge pull request #10 from xivapi/friendslist
Browse files Browse the repository at this point in the history
Added Friends List parameter on character by id
  • Loading branch information
Yandawl authored Nov 18, 2020
2 parents c439782 + 10c43a5 commit f2f462f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyxivapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
5 changes: 4 additions & 1 deletion pyxivapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit f2f462f

Please sign in to comment.