Documentation
¶
Index ¶
- func GetTenantAccessTokenInternal(appId string, appSecret string) (*core.TenantAccessTokenResp, error)
- type Card
- type CardConfig
- type CardElementUrl
- type CardHeader
- type CardHeaderTitle
- type CardI18n
- type FeishuBatchMsg
- type FeishuMsg
- type I18nElement
- type MsgContent
- type MsgPost
- type MsgPostValue
- type Tenant
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTenantAccessTokenInternal ¶
func GetTenantAccessTokenInternal(appId string, appSecret string) (*core.TenantAccessTokenResp, error)
获取 tenant_access_token(企业自建应用)https://open.feishu.cn/document/ukTMukTMukTM/uIjNz4iM2MjLyYzM
Types ¶
type Card ¶
type Card struct {
Config *CardConfig `json:"config,omitempty"`
CardLink *CardElementUrl `json:"card_link,omitempty"`
Header *CardHeader `json:"header,omitempty"`
Elements []interface{} `json:"elements"`
I18nElements *I18nElement `json:"i18n_elements,omitempty"`
}
机器人消息Card字段数据格式定义
type CardConfig ¶
type CardConfig struct {
WideScreenMode bool `json:"wide_screen_mode"`
}
type CardElementUrl ¶
type CardHeader ¶
type CardHeader struct {
Title *CardHeaderTitle `json:"title,omitempty"`
}
type CardHeaderTitle ¶
type FeishuBatchMsg ¶
type FeishuMsg ¶
type FeishuMsg struct {
OpenId string `json:"open_id,omitempty"`
UserId string `json:"user_id,omitempty"`
Email string `json:"email,omitempty"`
ChatId string `json:"chat_id,omitempty"`
MsgType string `json:"msg_type"`
RootId string `json:"root_id,omitempty"`
UpdateMulti bool `json:"update_multi"`
Card *Card `json:"card,omitempty"`
Content *MsgContent `json:"content,omitempty"`
}
type I18nElement ¶
type I18nElement struct {
ZhCn []interface{} `json:"zh_cn"`
EnUs []interface{} `json:"en_us"`
JaJp []interface{} `json:"ja_jp"`
}
type MsgContent ¶
type MsgPost ¶
type MsgPost struct {
ZhCn *MsgPostValue `json:"zh_cn,omitempty"`
EnUs *MsgPostValue `json:"en_us,omitempty"`
JaJp *MsgPostValue `json:"ja_jp,omitempty"`
}
type MsgPostValue ¶
type MsgPostValue struct {
Title string `json:"title"`
Content interface{} `json:"content"`
}
type Tenant ¶
type Tenant struct {
TenantAccessToken string
}
func (Tenant) GroupList ¶
func (t Tenant) GroupList(userAccessToken string, pageSize int, pageToken string) (*core.GroupListResp, error)
获取用户所在的群列表 https://open.feishu.cn/document/ukTMukTMukTM/uQzMwUjL0MDM14CNzATN
func (Tenant) SendMessage ¶
发送消息卡片 https://open.feishu.cn/document/ukTMukTMukTM/uYTNwUjL2UDM14iN1ATN
func (Tenant) SendMessageBatch ¶
func (t Tenant) SendMessageBatch(msg FeishuBatchMsg) (*core.MsgResp, error)
发送消息卡片 https://open.feishu.cn/document/ukTMukTMukTM/uYTNwUjL2UDM14iN1ATN
type User ¶
type User struct {
UserAccessToken string
}
func (User) SearchUser ¶
func (u User) SearchUser(query string, pageSize int, pageToken string) (*core.SearchUserResp, error)
搜索用户 https://bytedance.feishu.cn/docs/doccnizryz7NKuUmVfkRJWeZGVc
Click to show internal directories.
Click to hide internal directories.