Documentation
¶
Index ¶
- type Badge
- type Character
- type CharacterItems
- type Client
- func (c *Client) ChangePassword(current, new string) error
- func (c *Client) CharacterItems(character, account string) ([]*Item, error)
- func (c *Client) GetAccountProfile(account string) (*Profile, error)
- func (c *Client) GetDealList() ([]*Deal, error)
- func (c *Client) GetInbox(page int) ([]*PrivateMessage, error)
- func (c *Client) LeagueList() ([]*League, error)
- func (c *Client) Login(email, password string) error
- func (c *Client) Logout() error
- func (c *Client) ProfileCharacters(account string) ([]*Character, error)
- func (c *Client) SendPrivateMessage(recipients []string, subject, content string) error
- type Deal
- type Item
- type ItemProperty
- type ItemSocket
- type League
- type LeagueListResult
- type PrivateMessage
- type Profile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct {
Name string
Level int
League string
Class string
AscendancyClass int `json:"ascendancyClass"`
ClassID int `json:"classId"`
Items []*Item
}
Character profile character
type CharacterItems ¶
type CharacterItems struct {
Items []*Item `json:"items"`
}
CharacterItems items of the profile character
type Client ¶
Client client used for all path of exile website applications
func NewTimeout ¶
NewTimeout returns a new client with the given timeout
func (*Client) ChangePassword ¶
ChangePassword changes the client password
func (*Client) CharacterItems ¶
CharacterItems retrieves all items of the given character
func (*Client) GetAccountProfile ¶
GetAccountProfile retrieves the given account profile
func (*Client) GetDealList ¶
GetDealList returns the list of current running deals
func (*Client) GetInbox ¶
func (c *Client) GetInbox(page int) ([]*PrivateMessage, error)
GetInbox returns the list of private messages
func (*Client) LeagueList ¶
func (*Client) Logout ¶
Logout closes the running session Path of Exile website uses a GET request for this task (not the best choice)
func (*Client) ProfileCharacters ¶
ProfileCharacters retrieves all the characters of the given account
type Item ¶
type Item struct {
Verified bool
Support bool
W int
H int
SecondaryDescription string `json:"secDescrText"`
Description string `json:"descrText"`
ItemLevel int `json:"ilvl"`
Icon string
League string
ID string `json:"id"`
Name string
TypeLine string `json:"typeline"`
Identified bool
FrameType int `json:"frameType"`
ImplicitMods []string `json:"implicitMods"`
CraftedMods []string `json:"craftedMods"`
ExplicitMods []string `json:"explicitMods"`
FlavourText []string `json:"flavourText"`
Properties []ItemProperty `json:"properties"`
Sockets []ItemSocket `json:"sockets"`
}
Item defines a path of exile forum item
type ItemProperty ¶
type ItemProperty struct {
Name string
DisplayMode int `json:"displayMode"`
Type int
Values [][]interface{}
}
ItemProperty defines a set of item property values
type ItemSocket ¶
ItemSocket defines a item socket
type LeagueListResult ¶
type LeagueListResult struct {
Result []*League
}
LeagueListResult the league list call result