Profile¶
-
class
ourdestiny.d2profile(client_object, profile_json)¶ A class used to represent a Destiny 2 profile, or a player, which owns multiple characters and several profile-level attributes
Parameters: - profile_json (dict) – A JSON obtained from GetProfile with the Profiles enumerator
- client_object (ourdestiny.d2client) – The client object used to obtain this profile object
Variables: - client_object (ourdestiny.d2client) – A link to the client object being used for API authentication
- display_name (string) – The display name for this profile
- membership_type (integer) – The membership type enumerator used to represent the platform this profile is registered on
- membership_id (string) – The membership ID for this profile
- characters (List[ourdestiny.d2character]) – A list of characters attached to this profile
- vault (List[ourdestiny.d2item]) – The items in the profile’s vault
- profile_inventory (List[ourdestiny.d2item]) – The profile-level inventory containing items such as planetary currencies and mods
- seasons (List[ourdestiny.d2season]) – The seasons this character owns
- current_season (ourdestiny.d2season) – A season object of the current season in the game
- profile_records (List[ourdestiny.d2record]) – A list of records associated with the current profile
- record_score (integer) – The total triumph score associated with this profile
-
get_instanced_item(instance_id)¶ Gets an instanced item data
Parameters: instance_id (string) – The id of the item to get instanced data of Returns: Instanced data about the item - see https://bungie-net.github.io/multi/schema_Destiny-Responses-DestinyItemResponse.html Return type: dict