steamuser

package
v0.0.0-...-85e05f8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	SteamID          mangosteam.SteamID `json:"steam_id"`
	Username         string             `json:"username"`
	Password         string
	APIKey           string
	Email            string
	SteamLogin       string
	SteamLoginSecure string
	auth.SteamGuardAccount
	auth.OAuth
}

User represents a steam user

func (*User) GetAPIKey

func (user *User) GetAPIKey() (string, error)

GetAPIKey allows to get the API key directly from steam interface

func (*User) Login

func (user *User) Login() error

Login logs in the bot

func (*User) NewWebSteamClient

func (user *User) NewWebSteamClient() *http.Client

NewWebSteamClient creates a web steam client with the right cookies to interact with web steam

func (*User) RevokeAPIKey

func (user *User) RevokeAPIKey() error

RevokeAPIKey cancel Key

Jump to

Keyboard shortcuts

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