oauth

package
v70.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: MIT Imports: 4 Imported by: 40

Documentation

Overview

Package oauth provides the OAuth APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizeURL

func AuthorizeURL(params *stripe.AuthorizeURLParams) string

AuthorizeURL builds an OAuth authorize URL.

func Del

Del deauthorizes a connected account.

func New

New creates an OAuth token using a code after successful redirection back.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /oauth and related APIs.

func (Client) AuthorizeURL

func (c Client) AuthorizeURL(params *stripe.AuthorizeURLParams) string

AuthorizeURL builds an OAuth authorize URL.

func (Client) Del

Del deauthorizes a connected account.

func (Client) New

func (c Client) New(params *stripe.OAuthTokenParams) (*stripe.OAuthToken, error)

New creates an OAuth token using a code after successful redirection back.

Jump to

Keyboard shortcuts

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