apps

package
v0.0.0-...-ce58970 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseProvider

type BaseProvider struct {
	App            social.Provider
	ClientId       string
	ClientSecret   string
	Scope          string
	AuthURL        string
	TokenURL       string
	RedirectURL    string
	AccessType     string
	ApprovalPrompt string
}

func (*BaseProvider) CanConnect

func (p *BaseProvider) CanConnect(tok *social.Token, userSocial *social.UserSocial) (bool, error)

func (*BaseProvider) GetConfig

func (p *BaseProvider) GetConfig() *social.Config

type QQ

type QQ struct {
	BaseProvider
}

func NewQQ

func NewQQ(clientId, secret string) *QQ

func (*QQ) GetIndentify

func (p *QQ) GetIndentify(tok *social.Token) (string, error)

func (*QQ) GetName

func (p *QQ) GetName() string

func (*QQ) GetPath

func (p *QQ) GetPath() string

func (*QQ) GetType

func (p *QQ) GetType() social.SocialType

type Weibo

type Weibo struct {
	BaseProvider
}

func NewWeibo

func NewWeibo(clientId, secret string) *Weibo

func (*Weibo) GetIndentify

func (p *Weibo) GetIndentify(tok *social.Token) (string, error)

func (*Weibo) GetName

func (p *Weibo) GetName() string

func (*Weibo) GetPath

func (p *Weibo) GetPath() string

func (*Weibo) GetType

func (p *Weibo) GetType() social.SocialType

Jump to

Keyboard shortcuts

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