Version: v0.0.0-...-5bb00d8 Latest Latest

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

Go to latest
Published: Jul 26, 2016 License: MIT Imports: 6 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Location

type Location struct {
	Lon float64
	Lat float64
	Alt float64

Location consists of coordinates in longitude, latitude and altitude

type Session

type Session struct {
	// contains filtered or unexported fields

Session is used to communicate with the Pokémon Go API

func NewSession

func NewSession(provider auth.Provider, location *Location, debug bool) *Session

NewSession constructs a Pokémon Go RPC API client

func (*Session) Call

func (s *Session) Call(requests []*protos.Request) (*protos.ResponseEnvelope, error)

Call queries the Pokémon Go API through RPC protobuf

func (*Session) GetInventory

func (s *Session) GetInventory() (inventory *protos.GetInventoryResponse, err error)

GetPlayer returns the current player profile

func (*Session) GetPlayer

func (s *Session) GetPlayer() (player *protos.GetPlayerResponse, err error)

GetPlayer returns the current player profile

func (*Session) Init

func (s *Session) Init() error

Init initializes the client by performing full authentication

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL