oauth

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package oauth Oauth2授权相关API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessToken

func AccessToken(clt *core.SDKClient, authCode string) (*oauth.AccessTokenResponse, error)

AccessToken 获取token 利用授权码auth_code,请求快手服务器,获取access_token和refresh_token及当前账户的广告主ID。

func RefreshToken

func RefreshToken(clt *core.SDKClient, refreshToken string) (*oauth.AccessTokenResponse, error)

RefreshToken 刷新tonken 请求快手服务器,刷新access_token和refresh_token及token过期时间。

func Url

func Url(clt *core.SDKClient, req *oauth.UrlRequest) string

Url 生成授权链接

Types

This section is empty.

Jump to

Keyboard shortcuts

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