larkext

package
v3.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FileTypeDoc     = "doc"
	FileTypeSheet   = "sheet"
	FileTypeBitable = "bitable"
)
View Source
const (
	GrantTypeAuthorizationCode = "authorization_code"
	GrantTypeRefreshCode       = "refresh_token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenAccessTokenReq

type AuthenAccessTokenReq struct {
	Body *AuthenAccessTokenReqBody `body:""`
	// contains filtered or unexported fields
}

type AuthenAccessTokenReqBody

type AuthenAccessTokenReqBody struct {
	GrantType string `json:"grant_type,omitempty"`
	Code      string `json:"code,omitempty"`
}

type AuthenAccessTokenReqBodyBuilder

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

func NewAuthenAccessTokenReqBodyBuilder

func NewAuthenAccessTokenReqBodyBuilder() *AuthenAccessTokenReqBodyBuilder

func (*AuthenAccessTokenReqBodyBuilder) Build

func (*AuthenAccessTokenReqBodyBuilder) Code

func (*AuthenAccessTokenReqBodyBuilder) GrantType

type AuthenAccessTokenReqBuilder

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

func NewAuthenAccessTokenReqBuilder

func NewAuthenAccessTokenReqBuilder() *AuthenAccessTokenReqBuilder

func (*AuthenAccessTokenReqBuilder) Body

func (*AuthenAccessTokenReqBuilder) Build

type AuthenAccessTokenResp

type AuthenAccessTokenResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Body *AuthenAccessTokenRespBody `body:""`
}

func (*AuthenAccessTokenResp) Success

func (c *AuthenAccessTokenResp) Success() bool

type AuthenAccessTokenRespBody

type AuthenAccessTokenRespBody struct {
	AccessToken      string `json:"access_token,omitempty"`
	TokenType        string `json:"token_type,omitempty"`
	ExpiresIn        int64  `json:"expires_in,omitempty"`
	Name             string `json:"name,omitempty"`
	EnName           string `json:"en_name,omitempty"`
	AvatarURL        string `json:"avatar_url,omitempty"`
	AvatarThumb      string `json:"avatar_thumb,omitempty"`
	AvatarMiddle     string `json:"avatar_middle,omitempty"`
	AvatarBig        string `json:"avatar_big,omitempty"`
	OpenID           string `json:"open_id,omitempty"`  //
	UnionID          string `json:"union_id,omitempty"` //
	Email            string `json:"email,omitempty"`
	EnterpriseEmail  string `json:"enterprise_email,omitempty"`
	UserID           string `json:"user_id,omitempty"`
	Mobile           string `json:"mobile,omitempty"`
	TenantKey        string `json:"tenant_key,omitempty"`
	RefreshExpiresIn int64  `json:"refresh_expires_in,omitempty"`
	RefreshToken     string `json:"refresh_token,omitempty"`
}

type AuthenUserInfoResp

type AuthenUserInfoResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *AuthenUserInfoRespBody `json:"data"`
}

func (*AuthenUserInfoResp) Success

func (c *AuthenUserInfoResp) Success() bool

type AuthenUserInfoRespBody

type AuthenUserInfoRespBody struct {
	Name            string `json:"name,omitempty"`
	EnName          string `json:"en_name,omitempty"`
	AvatarURL       string `json:"avatar_url,omitempty"`
	AvatarThumb     string `json:"avatar_thumb,omitempty"`
	AvatarMiddle    string `json:"avatar_middle,omitempty"`
	AvatarBig       string `json:"avatar_big,omitempty"`
	OpenID          string `json:"open_id,omitempty"`
	UnionID         string `json:"union_id,omitempty"`
	Email           string `json:"email,omitempty"`
	EnterpriseEmail string `json:"enterprise_email,omitempty"`
	UserID          string `json:"user_id,omitempty"`
	Mobile          string `json:"mobile,omitempty"`
	TenantKey       string `json:"tenant_key,omitempty"`
}

type CreateFileReq

type CreateFileReq struct {
	Body *CreateFileReqBody `body:""`
	// contains filtered or unexported fields
}

type CreateFileReqBody

type CreateFileReqBody struct {
	Title string `json:"title,omitempty"`
	Type_ string `json:"type,omitempty"`
}

type CreateFileReqBodyBuilder

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

func NewCreateFileReqBodyBuilder

func NewCreateFileReqBodyBuilder() *CreateFileReqBodyBuilder

func (*CreateFileReqBodyBuilder) Build

func (*CreateFileReqBodyBuilder) Title

func (*CreateFileReqBodyBuilder) Type

type CreateFileReqBuilder

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

func NewCreateFileReqBuilder

func NewCreateFileReqBuilder() *CreateFileReqBuilder

func (*CreateFileReqBuilder) Body

func (*CreateFileReqBuilder) Build

func (c *CreateFileReqBuilder) Build() *CreateFileReq

func (*CreateFileReqBuilder) FolderToken

func (c *CreateFileReqBuilder) FolderToken(folderToken string) *CreateFileReqBuilder

type CreateFileResp

type CreateFileResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateFileRespData `json:"data"`
}

func (*CreateFileResp) Success

func (c *CreateFileResp) Success() bool

type CreateFileRespData

type CreateFileRespData struct {
	Url      string `json:"url,omitempty"`
	Token    string `json:"token,omitempty"`
	Revision int64  `json:"revision,omitempty"`
}

type ExtService

type ExtService struct {
	DriveExplorer *driveExplorer
	Authen        *authen
	// contains filtered or unexported fields
}

业务域服务定义

func NewService

func NewService(config *larkcore.Config) *ExtService

type RefreshAuthenAccessTokenReq

type RefreshAuthenAccessTokenReq struct {
	Body *RefreshAuthenAccessTokenReqBody `body:""`
	// contains filtered or unexported fields
}

type RefreshAuthenAccessTokenReqBody

type RefreshAuthenAccessTokenReqBody struct {
	GrantType    string `json:"grant_type,omitempty"`
	RefreshToken string `json:"refresh_token,omitempty"`
}

type RefreshAuthenAccessTokenReqBodyBuilder

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

func NewRefreshAuthenAccessTokenReqBodyBuilder

func NewRefreshAuthenAccessTokenReqBodyBuilder() *RefreshAuthenAccessTokenReqBodyBuilder

func (*RefreshAuthenAccessTokenReqBodyBuilder) Build

func (*RefreshAuthenAccessTokenReqBodyBuilder) GrantType

func (*RefreshAuthenAccessTokenReqBodyBuilder) RefreshToken

type RefreshAuthenAccessTokenReqBuilder

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

func NewRefreshAuthenAccessTokenReqBuilder

func NewRefreshAuthenAccessTokenReqBuilder() *RefreshAuthenAccessTokenReqBuilder

func (*RefreshAuthenAccessTokenReqBuilder) Body

func (*RefreshAuthenAccessTokenReqBuilder) Build

type RefreshAuthenAccessTokenResp

type RefreshAuthenAccessTokenResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *RefreshAuthenAccessTokenRespBody `json:"data"`
}

func (*RefreshAuthenAccessTokenResp) Success

func (c *RefreshAuthenAccessTokenResp) Success() bool

type RefreshAuthenAccessTokenRespBody

type RefreshAuthenAccessTokenRespBody struct {
	AccessToken      string `json:"access_token,omitempty"`
	TokenType        string `json:"token_type,omitempty"`
	ExpiresIn        int64  `json:"expires_in,omitempty"`
	Name             string `json:"name,omitempty"`
	EnName           string `json:"en_name,omitempty"`
	AvatarURL        string `json:"avatar_url,omitempty"`
	AvatarThumb      string `json:"avatar_thumb,omitempty"`
	AvatarMiddle     string `json:"avatar_middle,omitempty"`
	AvatarBig        string `json:"avatar_big,omitempty"`
	OpenID           string `json:"open_id,omitempty"`  //
	UnionID          string `json:"union_id,omitempty"` //
	Email            string `json:"email,omitempty"`
	UserID           string `json:"user_id,omitempty"`
	Mobile           string `json:"mobile,omitempty"`
	TenantKey        string `json:"tenant_key,omitempty"`
	RefreshExpiresIn int64  `json:"refresh_expires_in,omitempty"`
	RefreshToken     string `json:"refresh_token,omitempty"`
}

Jump to

Keyboard shortcuts

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