google

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider contains data about and manages the session with the Pokémon Trainer's Club

func NewProvider

func NewProvider(username, password string) *Provider

NewProvider constructs a Google auth provider instance

func (*Provider) GetAccessToken

func (p *Provider) GetAccessToken() string

GetAccessToken will return an access token if it has been retrieved

func (*Provider) GetProviderString

func (p *Provider) GetProviderString() string

GetProviderString will return a string identifying the provider

func (*Provider) Login

func (p *Provider) Login() (string, error)

Login retrieves an access token from the Pokémon Trainer's Club

Source Files

Jump to

Keyboard shortcuts

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