deezer

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Endpoint = oauth2.Endpoint{
	AuthURL:  "https://connect.deezer.com/oauth/auth.php",
	TokenURL: "https://connect.deezer.com/oauth/access_token.php",
}

Endpoint is Deezer's OAuth 2.0 endpoint.

Functions

This section is empty.

Types

type Config

type Config struct {
	*oauth2.Config
}

Config provides peculiar OAuth2 implementation for Deezer.

func (*Config) AuthCodeURL

func (c *Config) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string

AuthCodeURL do the same as it's counterpart in golang.org/x/oauth2, but with different set of query params.

func (*Config) Exchange

func (c *Config) Exchange(ctx context.Context, code string) (*oauth2.Token, error)

Exchange do the same as it's counterpart in golang.org/x/oauth2, but use completely different token exchange request.

Jump to

Keyboard shortcuts

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