feishu

package
v1.9.4-beta Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendRequest

func SendRequest[T any](uri string, method string, header http.Header, query url.Values, body []byte) (*T, error)

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) Delete

func (d *Driver) Delete(ctx context.Context, ids ...string) error

func (*Driver) FilterConfig

func (d *Driver) FilterConfig(config map[string]string)

func (*Driver) Init

func (d *Driver) Init()

func (*Driver) Name

func (d *Driver) Name() string

func (*Driver) ThirdLogin

func (d *Driver) ThirdLogin(ctx context.Context, args map[string]string) (string, error)

func (*Driver) Title

func (d *Driver) Title() string

type UserInfo

type UserInfo struct {
	Name    string `json:"name"`
	OpenID  string `json:"open_id"`
	UnionId string `json:"union_id"`
	Email   string `json:"email"`
	Mobile  string `json:"mobile"`
}

type UserInfoResponse

type UserInfoResponse struct {
	Code int      `json:"code"`
	Msg  string   `json:"msg"`
	Data UserInfo `json:"data"`
}

type UserTokenResponse

type UserTokenResponse struct {
	Code                  int    `json:"code"`
	AccessToken           string `json:"access_token"`
	ExpiresIn             int    `json:"expires_in"`
	RefreshToken          string `json:"refresh_token"`
	RefreshTokenExpiresIn int    `json:"refresh_token_expires_in"`
	TokenType             string `json:"token_type"`
	Scope                 string `json:"scope"`
	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