uplay

package module
v0.0.0-...-506cdc3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 License: Unlicense Imports: 6 Imported by: 0

README

lib-uplay

A library for interacting with the Ubisoft UPlay service

Documentation

Index

Constants

View Source
const (
	PlatformUnknown = 0
	PlatformXBL     = 1
	PlatformPSN     = 2
	PlatformPC      = 3
)

Variables

This section is empty.

Functions

func GuessPlatform

func GuessPlatform(platform string) int

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(username, password string) *Client

func (*Client) Authenticate

func (c *Client) Authenticate() error

func (*Client) DivisionStats

func (c *Client) DivisionStats(platform int, uuid string) ([]DivisionStat, error)

func (*Client) UserSearch

func (c *Client) UserSearch(platform int, username string) ([]Profile, error)

type DivisionStat

type DivisionStat struct {
	ID           int         `json:"id"`
	GameCode     string      `json:"gameCode"`
	GameModeID   int         `json:"gameModeId"`
	GameModeName string      `json:"gameModeName"`
	GameName     string      `json:"gameName"`
	IconURL      string      `json:"iconUrl"`
	IsHighScore  int         `json:"isHighScore"`
	Name         string      `json:"name"`
	UnitLabel    string      `json:"unitLabel"`
	Value        json.Number `json:"value"`
}

type Profile

type Profile struct {
	UplayID        string `json:"userId"`
	ProfileID      string `json:"profileID"`
	PlatformUserID string `json:"idOnPlatform"`
	PlatformName   string `json:"nameOnPlatform"`
	Platform       string `json:"platformType"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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