def get_vendor(membership_type, membership_id, character_id, vendor_hash): this_api = API() req = API.bungie_api + "/Destiny2/" + str( membership_type) + "/Profile/" + str( membership_id) + "/Character/" + str( character_id) + "/Vendors/" + str(vendor_hash) + "/" return this_api.call_bungie_api(req)
def get_activity_history(membership_type, membership_id, character_id): this_api = API() req = API.bungie_api + "/Destiny2/" + str( membership_type) + "/Account/" + str( membership_id) + "/Character/" + str( character_id) + "/Stats/Activities/" return this_api.call_bungie_api(req)
def get_potential_groups_for_member(membership_type, membership_id, search_filter, group_type): this_api = API() req = API.bungie_api + '/GroupV2/User/Potential/' + str( membership_type) + '/' + str(membership_id) + '/' + str( search_filter) + '/' + str(group_type) + '/' return this_api.call_bungie_api(req)
def get_destiny_aggregate_activity_stats(membership_type, membership_id, character_id): this_api = API() req = API.bungie_api + "/Destiny2/" + str( membership_type) + "/Account/" + str( membership_id) + "/Character/" + str( character_id) + "/Stats/AggregateActivityStats/" return this_api.call_bungie_api(req)
def get_groups_for_member(membership_type, membership_id, search_filter, group_type): """filter: 0 all, 1 founded, 2 non-founded""" this_api = API() req = API.bungie_api + '/GroupV2/User/' + str( membership_type) + '/' + str(membership_id) + '/' + str( search_filter) + '/' + str(group_type) + '/' return this_api.call_bungie_api(req)
def get_unique_weapon_history(membership_type, membership_id, character_id): this_api = API() req = API.bungie_api + "/Destiny2/" + str( membership_type) + "/Account/" + str( membership_id) + "/Character/" + str( character_id) + "/Stats/UniqueWeapons/" return this_api.call_bungie_api(req)
def get_group_by_name(group_name, group_type): """GroupType: 0=General, 1=Clan""" this_api = API() req = API.bungie_api + '/GroupV2/Name/' + group_name + '/' + str( group_type) + '/' return this_api.call_bungie_api(req)
def get_clan_leaderboards(clan_id): this_api = API() req = API.bungie_api + "/Destiny2/Stats/Leaderboards/Clans/" + str( clan_id) + "/" return this_api.call_bungie_api(req)
def get_clan_weekly_reward_state(clan_id): this_api = API() req = API.bungie_api + "/Destiny2/Clan/" + str( clan_id) + "/WeeklyRewardState/" return this_api.call_bungie_api(req)
def search_destiny_player(membership_type, display_name): this_api = API() req = API.bungie_api + "/Destiny2/SearchDestinyPlayer/" + str( membership_type) + "/" + display_name + "/" return this_api.call_bungie_api(req)
def get_public_milestones(): this_api = API() req = API.bungie_api + "/Destiny2/Milestones/" return this_api.call_bungie_api(req)
def search_users(display_name): this_api = API() req = API.bungie_api + '/Platform/User/SearchUsers/?q=' + display_name return this_api.call_bungie_api(req)
def get_bungie_net_user_by_id(uid): this_api = API() req = API.bungie_api + '/User/GetBungieNetUserById/' + str(uid) + '/' return this_api.call_bungie_api(req)
def get_banned_members_of_group(group_id): this_api = API() req = API.bungie_api + '/GroupV2/' + str(group_id) + '/Banned/' return this_api.call_bungie_api(req)
def get_andmins_and_founder_of_group(group_id): """GroupType: 0=General, 1=Clan""" this_api = API() req = API.bungie_api + '/GroupV2/' + str( group_id) + '/AdminsAndFounder/' return this_api.call_bungie_api(req)
def get_members_of_group(group_id): """GroupType: 0=General, 1=Clan""" this_api = API() req = API.bungie_api + '/GroupV2/' + str(group_id) + '/Members/' return this_api.call_bungie_api(req)
def get_membership_data_by_id(uid): this_api = API() req = API.bungie_api + '/Platform/User/GetMembershipsById/' + str(uid) + '/254/' return this_api.call_bungie_api(req)
def get_partnerships(uid): this_api = API() req = API.bungie_api + '/Platform/User/' + str(uid) + '/Partnerships/' return this_api.call_bungie_api(req)
def get_public_milestones_content(milestone_hash): this_api = API() req = API.bungie_api + "/Destiny2/Milestones/" + str( milestone_hash) + "/Content/" return this_api.call_bungie_api(req)
def get_leaderboards(membership_type, membership_id): this_api = API() req = API.bungie_api + "/Destiny2/" + str( membership_type) + "/Account/" + str( membership_id) + "/Stats/Leaderboards/" return this_api.call_bungie_api(req)
def get_destiny_entity_definition(entity_type, this_hash): this_api = API() req = API.bungie_api + "/Destiny2/Manifest/" + entity_type + "/" + this_hash return this_api.call_bungie_api(req)
def get_leaderboards_for_character(membership_type, membership_id, character_id): this_api = API() req = API.bungie_api + "/Destiny2/Stats/Leaderboards/" + str(membership_type) + "/" + str(membership_id) + "/" + \ str(character_id) + "/" return this_api.call_bungie_api(req)
def get_profile(membership_type, membership_id): this_api = API() req = API.bungie_api + "/Platform/Destiny2/" + str( membership_type) + "/Profile/" + str( membership_id) + "/?components=100,102,200" return this_api.call_bungie_api(req)
def get_historical_stats(membership_type, membership_id, character_id): this_api = API() req = API.bungie_api + "/Destiny2/" + str( membership_type) + "/Profile/" + str( membership_id) + "/Character/" + str(character_id) + "/Stats/" return this_api.call_bungie_api(req)
def get_item(membership_type, membership_id, item_instance_hash): this_api = API() req = API.bungie_api + "/Destiny2/" + str(membership_type) + "/Profile/" + str(membership_id) + "/Item/" + \ str(item_instance_hash)+"/" return this_api.call_bungie_api(req)
def get_destiny_manifest(): this_api = API() req = API.bungie_api + "/Destiny2/Manifest/" return this_api.call_bungie_api(req)
def get_post_game_carnage_report(activity_id): this_api = API() req = API.bungie_api + "/Destiny2/Stats/PostGameCarnageReport/" + str( activity_id) + "/" return this_api.call_bungie_api(req)
def get_historical_stats_for_account(membership_type, membership_id): this_api = API() req = API.bungie_api + "/Destiny2/" + str( membership_type) + "/Account/" + str(membership_id) + "/Stats/" return this_api.call_bungie_api(req)
def get_clan_aggregate_stats(clan_id): this_api = API() req = API.bungie_api + "/Destiny2/Stats/AggregateClanStats/" + str( clan_id) + "/" return this_api.call_bungie_api(req)
def get_group(group_id): this_api = API() req = API.bungie_api + '/GroupV2/' + str(group_id) + '/' return this_api.call_bungie_api(req)