d2api

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ActivitiesPageSize = 100
View Source
const BigDApiHash int = 3824106094

Variables

This section is empty.

Functions

This section is empty.

Types

type GetActivitiesRepsonse

type GetActivitiesRepsonse struct {
	Response GetActivitiesRepsonseResponse `json:"Response"`
}

func GetActivities

func GetActivities(apiKey string, page int, membershipId string, membershipType int, characterId string) (*GetActivitiesRepsonse, error)

type GetActivitiesRepsonseActivity

type GetActivitiesRepsonseActivity struct {
	ActivityDetails GetActivitiesRepsonseActivityDetails `json:"activityDetails"`
}

type GetActivitiesRepsonseActivityDetails

type GetActivitiesRepsonseActivityDetails struct {
	ReferenceId int    `json:"referenceId"`
	InstanceId  string `json:"instanceId"`
}

type GetActivitiesRepsonseResponse

type GetActivitiesRepsonseResponse struct {
	Activities []GetActivitiesRepsonseActivity `json:"activities"`
}

type GetPlayerRepsonseBody

type GetPlayerRepsonseBody struct {
	MembershipId                string `json:"membershipId"`
	MembershipType              int    `json:"membershipType"`
	BungieGlobalDisplayNameCode int    `json:"bungieGlobalDisplayNameCode"`
}

type GetPlayerResponse

type GetPlayerResponse struct {
	Response []GetPlayerRepsonseBody `json:"Response"`
}

func GetPlayer

func GetPlayer(apiKey string, user string) (*GetPlayerResponse, error)

type GetProfileRepsonse

type GetProfileRepsonse struct {
	Response GetProfileRepsonseResponse `json:"Response"`
	Json     string
}

func GetProfile

func GetProfile(apiKey string, membershipId string, membershipType int) (*GetProfileRepsonse, error)

type GetProfileRepsonseData

type GetProfileRepsonseData struct {
	CharacterIds []string `json:"characterIds"`
}

type GetProfileRepsonseProfile

type GetProfileRepsonseProfile struct {
	Data GetProfileRepsonseData `json:"data"`
}

type GetProfileRepsonseResponse

type GetProfileRepsonseResponse struct {
	Profile GetProfileRepsonseProfile `json:"profile"`
}

type PostGameCarnageReportRepsonse

type PostGameCarnageReportRepsonse struct {
	Response PostGameCarnageReportRepsonseResponse `json:"Response"`
	Json     string
}

func GetPostGameCarnageReport

func GetPostGameCarnageReport(apiKey string, instanceId string) (*PostGameCarnageReportRepsonse, error)

type PostGameCarnageReportRepsonseBasicValue

type PostGameCarnageReportRepsonseBasicValue struct {
	Value float64 `json:"value"`
}

type PostGameCarnageReportRepsonseBasicValueContainer

type PostGameCarnageReportRepsonseBasicValueContainer struct {
	Basic PostGameCarnageReportRepsonseBasicValue `json:"basic"`
}

type PostGameCarnageReportRepsonseEntry

type PostGameCarnageReportRepsonseEntry struct {
	CharacterId string                                `json:"characterId"`
	Extended    PostGameCarnageReportRepsonseExtended `json:"extended"`
}

type PostGameCarnageReportRepsonseExtended

type PostGameCarnageReportRepsonseExtended struct {
	Weapons []PostGameCarnageReportRepsonseWeapon `json:"weapons"`
}

type PostGameCarnageReportRepsonseResponse

type PostGameCarnageReportRepsonseResponse struct {
	Entries []PostGameCarnageReportRepsonseEntry `json:"entries"`
}

type PostGameCarnageReportRepsonseWeapon

type PostGameCarnageReportRepsonseWeapon struct {
	ReferenceId int                                       `json:"referenceId"`
	Values      PostGameCarnageReportRepsonseWeaponValues `json:"values"`
}

type PostGameCarnageReportRepsonseWeaponValues

type PostGameCarnageReportRepsonseWeaponValues struct {
	UniqueWeaponKills          PostGameCarnageReportRepsonseBasicValueContainer `json:"uniqueWeaponKills"`
	UniqueWeaponPrecisionKills PostGameCarnageReportRepsonseBasicValueContainer `json:"uniqueWeaponPrecisionKills"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL