api_github

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaiduPlatform *module_api.Platform
View Source
var GetAccessTokenUrl = "https://github.com/login/oauth/access_token"

Functions

func GetAccessTokenFunc

func GetAccessTokenFunc(httpService httpx.IService, appId, appSecret string, extends map[string]any) (res *module_api.OauthInfo, err error)

Types

type GetAccessTokenResponse

type GetAccessTokenResponse struct {
	AccessToken           string `json:"access_token"`
	ExpiresIn             int64  `json:"expires_in"`
	RefreshToken          string `json:"refresh_token"`
	RefreshTokenExpiresIn int64  `json:"refresh_token_expires_in"`
	Scope                 string `json:"scope"`
	TokenType             string `json:"token_type"`
	Error                 string `json:"error"`
	ErrorDescription      string `json:"error_description"`
}

Jump to

Keyboard shortcuts

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