Documentation ¶
Index ¶
Constants ¶
View Source
const ( CSRF_URL = "https://profile.callofduty.com/cod/login" LOGIN_URL = "https://profile.callofduty.com/do_login?new_SiteId=cod" USER_URL = "https://profile.callofduty.com/cod/userInfo" STATS_URL = "https://my.callofduty.com/api/papi-client/crm/cod/v2/title/mw/platform" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Match ¶
type Match struct { UtcStartSeconds int `json:"utcStartSeconds"` UtcEndSeconds int `json:"utcEndSeconds"` Map string `json:"map"` Mode string `json:"mode"` MatchID string `json:"matchID"` Duration int64 `json:"duration"` GameType string `json:"gameType"` PlayerCount int `json:"playerCount"` PlayerStats *PlayerStats `json:"playerStats"` Player *Player `json:"player"` TeamCount int `json:"teamCount"` Draw bool `json:"draw"` PrivateMatch bool `json:"privateMatch"` }
type PlayerStats ¶
type PlayerStats struct { Kills float64 `json:"kills"` MedalXp float64 `json:"medalXp"` MatchXp float64 `json:"matchXp"` ScoreXp float64 `json:"scoreXp"` Score float64 `json:"score"` TotalXp float64 `json:"totalXp"` Heashots float64 `json:"headshots"` Assists float64 `json:"assists"` ChallengeXp float64 `json:"challengeXp"` Rank float64 `json:"rank"` ScorePerMinute float64 `json:"scorePerMinute"` DistanceTraveled float64 `json:"distanceTraveled"` TeamSurvivalTime float64 `json:"teamSurvivalTime"` Deaths float64 `json:"deaths"` KdRatio float64 `json:"kdRatio"` BonusXp float64 `json:"bonusXp"` GulagDeaths float64 `json:"gulagDeaths"` TimePlayed float64 `json:"timePlayed"` Executions float64 `json:"executions"` GulagKills float64 `json:"gulagKills"` MiscXp float64 `json:"miscXp"` LongestStreak float64 `json:"longestStreak"` TeamPlacement float64 `json:"teamPlacement"` DamageDone float64 `json:"damageDone"` DamageTaken float64 `json:"damageTaken"` }
type RawRecentMatchesResponse ¶
type RawRecentMatchesResponse struct { Status string `json:"status"` Data *MatchData `json:"data"` }
Player Data Structs
Click to show internal directories.
Click to hide internal directories.