GetProfiles retrieves profile information for given players.
(ctx context.Context, playerIDs []PlayerID)
| 96 | |
| 97 | // GetProfiles retrieves profile information for given players. |
| 98 | func (p *PsyNetRPC) GetProfiles(ctx context.Context, playerIDs []PlayerID) ([]PlayerData, error) { |
| 99 | request := GetProfileRequest{ |
| 100 | PlayerIDs: playerIDs, |
| 101 | } |
| 102 | |
| 103 | var result GetProfileResponse |
| 104 | err := p.sendRequestSync(ctx, "Players/GetProfile v1", request, &result) |
| 105 | if err != nil { |
| 106 | return nil, err |
| 107 | } |
| 108 | return result.PlayerData, nil |
| 109 | } |
| 110 | |
| 111 | // GetXP retrieves XP information for the authenticated player. |
| 112 | func (p *PsyNetRPC) GetXP(ctx context.Context) (*PlayerXPInfo, error) { |
no test coverage detected