Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthTokensResponse ¶ added in v0.0.3
type AuthTokensResponse struct { AccessToken string `json:"access_token"` TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` Scope string `json:"scope"` IDToken string `json:"id_token"` RefreshToken string `json:"refresh_token"` RefreshTokenExpiresIn int `json:"refresh_token_expires_in"` }
type CodeResponse ¶ added in v0.0.3
type GameTrophyList ¶ added in v0.0.3
type GameTrophyList struct { TrophySetVersion string `json:"trophySetVersion"` HasTrophyGroups bool `json:"hasTrophyGroups"` TotalItemCount int `json:"totalItemCount"` Trophies []Trophy `json:"trophies"` }
func GetGamesTrophies ¶
func GetGamesTrophies(accessToken string, npCommunicationIds string, ifPs5 bool) (gl GameTrophyList, err error)
GetGamesTrophies 查询游戏内所有成就详细信息
type GameTrophyStatusList ¶ added in v0.0.3
type GameTrophyStatusList struct { TrophySetVersion string `json:"trophySetVersion"` HasTrophyGroups bool `json:"hasTrophyGroups"` TotalItemCount int `json:"totalItemCount"` Trophies []TrophyStatus `json:"trophies"` }
func GetPlayTrophyStatus ¶
func GetPlayTrophyStatus(accessToken string, npCommunicationId string, ifPs5 bool) (gl GameTrophyStatusList, err error)
GetPlayTrophyStatus Find a list of game achievements by npCommunicationId contain the trophy info
type PlayerGameTrophyInfo ¶ added in v0.0.3
type PlayerGameTrophyInfo struct { NpServiceName string `json:"npServiceName"` // Service Type PS5 Games: trophy2, others : trophy NpCommunicationID string `json:"npCommunicationId"` // kind of Game ID TrophySetVersion string `json:"trophySetVersion"` TrophyTitleName string `json:"trophyTitleName"` TrophyTitleIconURL string `json:"trophyTitleIconUrl"` TrophyTitlePlatform string `json:"trophyTitlePlatform"` HasTrophyGroups bool `json:"hasTrophyGroups"` DefinedTrophies struct { Bronze int `json:"bronze"` Silver int `json:"silver"` Gold int `json:"gold"` Platinum int `json:"platinum"` } `json:"definedTrophies"` Progress int `json:"progress"` EarnedTrophies struct { Bronze int `json:"bronze"` Silver int `json:"silver"` Gold int `json:"gold"` Platinum int `json:"platinum"` } `json:"earnedTrophies"` HiddenFlag bool `json:"hiddenFlag"` LastUpdatedDateTime time.Time `json:"lastUpdatedDateTime"` }
PlayerGameTrophyInfo struct of the latest trophies' player recently achieved
func GetTrophyGameList ¶
func GetTrophyGameList(accessToken string) (p []PlayerGameTrophyInfo, err error)
GetTrophyGameList List of all recently played games
type PlayerTrophyList ¶ added in v0.0.3
type PlayerTrophyList struct {
TrophyTitles []PlayerGameTrophyInfo `json:"trophyTitles"`
}
PlayerTrophyList http Response
type Top10Trophy ¶ added in v0.0.3
type Top10Trophy struct { }
type TrophyStatus ¶ added in v0.0.3
type UserTrophies ¶ added in v0.0.3
type UserTrophy ¶ added in v0.0.3
type UserTrophy struct { ID int `gorm:"primary_key" json:"id"` GameTitle string `json:"game_title"` TrophyID int `json:"trophyId"` TrophyName string `json:"trophyName"` TrophyTitlePlatform string `json:"trophy_title_platform"` TrophyType string `json:"trophyType"` TrophyDetail string `json:"trophyDetail"` TrophyIconURL string `json:"trophyIconUrl"` EarnedDateTime string `json:"earnedDateTime"` TrophyEarnedRate string `json:"trophyEarnedRate"` }
func AggregatePlayerTopTrophies ¶
func AggregatePlayerTopTrophies(accessToken string, limit int) (m []UserTrophy, err error)
AggregatePlayerTopTrophies aggregate trophy and have earned and trophyDetail
Click to show internal directories.
Click to hide internal directories.