Documentation ¶
Index ¶
- func AppTicketResend(appId, appSecret string) (*vo.CommonVo, error)
- func AuthenAccessToken(appAccessToken string, grantType string, code string) (*vo.AuthenAccessTokenResp, error)
- func GetAppAccessToken(appId, appSecret, appTicket string) (*vo.AppAccessTokenRespVo, error)
- func GetAppAccessTokenInternal(appId, appSecret string) (*vo.AppAccessTokenInternalRespVo, error)
- func GetOAuth2UserInfo(userAccessToken string) (*vo.OAuth2UserInfoRespVo, error)
- func GetOauth2AccessToken(req vo.OAuth2AccessTokenReqVo) (*vo.OAuth2AccessTokenRespVo, error)
- func GetTenantAccessToken(appAccessToken string, tenantKey string) (*vo.TenantAccessTokenRespVo, error)
- func GetTenantAccessTokenInternal(appId string, appSecret string) (*vo.TenantAccessTokenRespVo, error)
- func RefreshUserAccessToken(appId, appSecret, appTicket, refreshToken string) (*vo.RefreshAccessTokenResp, error)
- func TokenLoginValidate(appAccessToken string, code string) (*vo.TokenLoginValidateResp, error)
- type App
- type Tenant
- func (t Tenant) AddBot(msg vo.UpdateChatData) (*vo.CommonVo, error)
- func (t Tenant) AddCalendarAclV4(calendarId string, userIdType string, body vo.AddCalendarAclV4Req) (*vo.AddCalendarAclV4Resp, error)
- func (t Tenant) AddCalendarAttendeesAcl(calendarId string, bodyParams vo.AddCalendarAttendeesAclReq) (*vo.GetCalendarAttendeesResp, error)
- func (t Tenant) AddCalendarEventAttendeesV4(calendarId string, eventId string, userIdType string, ...) (*vo.AddCalendarEventAttendeesV4Resp, error)
- func (t Tenant) AddChatUser(msg vo.UpdateChatMemberReqVo) (*vo.UpdateChatMemberRespVo, error)
- func (t Tenant) AdminUserList() (*vo.AdminUserListResp, error)
- func (t Tenant) ApplyScopes() (*vo.ApplyScopesResp, error)
- func (t Tenant) BatchGetId(emails []string, mobiles []string) (*vo.BatchGetIdResp, error)
- func (t Tenant) ChatInfo(chatId string) (*vo.ChatInfoRespVo, error)
- func (t Tenant) ChatList(pageSize int, pageToken string) (*vo.GroupListRespVo, error)
- func (t Tenant) ChatMembers(userAccessToken string, chatId string, pageSize int, pageToken string) (*vo.ChatMembersRespVo, error)
- func (t Tenant) ChatSearch(userAccessToken string, query string, pageSize int, pageToken string) (*vo.GroupListRespVo, error)
- func (t Tenant) CheckUser(req vo.CheckUserReq) (*vo.CheckUserResp, error)
- func (t Tenant) CreateCalendar(bodyParams vo.CreateCalendarReq) (*vo.CommonCalendarResp, error)
- func (t Tenant) CreateCalendarEvent(calendarId string, bodyParams vo.CreateCalendarEventReq) (*vo.CommonCalendarEventResp, error)
- func (t Tenant) CreateCalendarEventV4(calendarId string, bodyParams vo.CreateCalendarEventV4Req) (*vo.CalendarEventInfoV4Resp, error)
- func (t Tenant) CreateCalendarV4(bodyParams vo.CreateCalendarV4Req) (*vo.CommonCalendarV4Resp, error)
- func (t Tenant) CreateChat(msg vo.CreateChatReqVo) (*vo.CreateChatRespVo, error)
- func (t Tenant) DeleteCalendar(calendarId string) (*vo.CommonVo, error)
- func (t Tenant) DeleteCalendarAclV4(calendarId string, aclId string) (*vo.CommonVo, error)
- func (t Tenant) DeleteCalendarAttendeesAcl(calendarId string, ruleId string) (*vo.CommonVo, error)
- func (t Tenant) DeleteCalendarEvent(calendarId string, eventId string) (*vo.CommonVo, error)
- func (t Tenant) DeleteCalendarEventAttendeesV4(calendarId string, eventId string, userIdType string, ...) (*vo.CommonVo, error)
- func (t Tenant) DeleteCalendarEventV4(calendarId string, eventId string) (*vo.CommonVo, error)
- func (t Tenant) DeleteCalendarV4(calendarId string) (*vo.VoidV4Resp, error)
- func (t Tenant) DisbandChat(msg vo.UpdateChatData) (*vo.CommonVo, error)
- func (t Tenant) GetCalendar(calendarId string) (*vo.CommonCalendarResp, error)
- func (t Tenant) GetCalendarAclList(calendarId string, pageSize int, pageToken string) (*vo.GetCalendarAclListV4Resp, error)
- func (t Tenant) GetCalendarAttendeesAcl(calendarId string) (*vo.GetCalendarAttendeesResp, error)
- func (t Tenant) GetCalendarEventAttendeesChatMembersV4(calendarId string, eventId string, attendeeId string, pageSize int, ...) (*vo.GetCalendarEventAttendeesV4Resp, error)
- func (t Tenant) GetCalendarEventAttendeesV4(calendarId string, eventId string, pageSize int, pageToken *string, ...) (*vo.GetCalendarEventAttendeesV4Resp, error)
- func (t Tenant) GetCalendarEventList(calendarId string, maxResults *int64, pageToken *string, syncToken *string) (*vo.CalendarEventListResp, error)
- func (t Tenant) GetCalendarEventListV4(calendarId string, eventId string, pageSize int, pageToken *string, ...) (*vo.GetCalendarEventListV4Resp, error)
- func (t Tenant) GetCalendarEventV4(calendarId string, eventId string) (*vo.CalendarEventInfoV4Resp, error)
- func (t Tenant) GetCalendarList(maxResults *int64, pageToken *string, syncToken *string) (*vo.CalendarListResp, error)
- func (t Tenant) GetCalendarListV4(pageSize int, pageToken, syncToken string) (*vo.GetCalendarListV4Resp, error)
- func (t Tenant) GetCalendarV4(calendarId string) (*vo.GetCalendarV4Resp, error)
- func (t Tenant) GetDepartmentInfo(departmentId string) (*vo.GetDepartmentInfoRespVo, error)
- func (t Tenant) GetDepartmentInfoBatch(depIds []string) (*vo.GetDepartmentInfoBatchRespVo, error)
- func (t Tenant) GetDepartmentSimpleList(departmentId string, offset, pageSize int, fetchChild bool) (*vo.GetDepartmentSimpleListRespVo, error)
- func (t Tenant) GetDepartmentSimpleListV2(id string, pageToken string, pageSize int, fetchChild bool) (*vo.GetDepartmentSimpleListV2RespVo, error)
- func (t Tenant) GetDepartmentUserDetailList(departmentId string, offset, pageSize int, fetchChild bool) (*vo.GetDepartmentUserDetailListRespVo, error)
- func (t Tenant) GetDepartmentUserDetailListV2(departmentId string, pageToken string, pageSize int, fetchChild bool) (*vo.GetUserBatchGetV2Resp, error)
- func (t Tenant) GetDepartmentUserList(departmentId string, offset, pageSize int, fetchChild bool) (*vo.GetDepartmentUserListRespVo, error)
- func (t Tenant) GetDepartmentUserListV2(departmentId string, pageToken string, pageSize int, fetchChild bool) (*vo.GetDepartmentUserListV2RespVo, error)
- func (t Tenant) GetDocMeta(userAccessToken string, docToken string) (*vo.GetDocMetaRespVo, error)
- func (t Tenant) GetImage(imageKey string, isApp bool) (io.ReadCloser, error)
- func (t Tenant) GetJsTicket() (*vo.GetJsTicketResp, error)
- func (t Tenant) GetOrderInfo(orderId string) (*vo.OrderInfoResp, error)
- func (t Tenant) GetOrderList(req vo.GetOrderListReq) (*vo.GetOrderListResp, error)
- func (t Tenant) GetRoleList() (*vo.RoleListResp, error)
- func (t Tenant) GetRoleMemberList() (*vo.RoleMemberListResp, error)
- func (t Tenant) GetScope() (*vo.GetScopeRespVo, error)
- func (t Tenant) GetScopeV2() (*vo.GetScopeRespV2Vo, error)
- func (t Tenant) GetScopes() (*vo.GetScopesResp, error)
- func (t Tenant) GetUserBatchGet(employeeIds []string, openIds []string) (*vo.GetUserBatchGetRespVo, error)
- func (t Tenant) GetUserBatchGetV2(employeeIds []string, openIds []string) (*vo.GetUserBatchGetV2Resp, error)
- func (t Tenant) GetUsersV3(userIdType, departmentIdType, departmentId, pageToken string, pageSize int) (*vo.GetUsersV3Resp, error)
- func (t Tenant) GroupList(userAccessToken string, pageSize int, pageToken string) (*vo.GroupListRespVo, error)
- func (t Tenant) ImChatInfo(userAccessToken string, chatId string) (*vo.ImChatInfoRespVo, error)
- func (t Tenant) ImChatList(userAccessToken string, pageSize int, pageToken string, userIdType *string) (*vo.ImChatListRespVo, error)
- func (t Tenant) IsUserAdmin(openId string, employeeId string) (*vo.IsUserAdminResp, error)
- func (t Tenant) NewFileUploadRequest(uri string, params map[string]string, paramName, path string) error
- func (t Tenant) OrgInfo() (*vo.OrgInfoResp, error)
- func (t Tenant) RemoveChatUser(msg vo.UpdateChatMemberReqVo) (*vo.UpdateChatMemberRespVo, error)
- func (t Tenant) SearchCalendarV4(bodyParams vo.SearchCalendarV4Req, pageToken string, pageSize int) (*vo.SearchCalendarV4Resp, error)
- func (t Tenant) SearchDocs(userAccessToken string, req vo.SearchDocsReqVo) (*vo.SearchDocsRespVo, error)
- func (t Tenant) SendMessage(msg vo.MsgVo) (*vo.MsgResp, error)
- func (t Tenant) SendMessageBatch(msg vo.BatchMsgVo) (*vo.MsgResp, error)
- func (t Tenant) SubscribeCalendarV4(calendarId string) (*vo.SubscribeCalendarV4Resp, error)
- func (t Tenant) SubscriptionCalendarV4() (*vo.VoidV4Resp, error)
- func (t Tenant) UnsubscribeCalendarV4(calendarId string) (*vo.VoidV4Resp, error)
- func (t Tenant) UpdateCalendar(calendarId string, bodyParams vo.UpdateCalendarReq) (*vo.CommonCalendarResp, error)
- func (t Tenant) UpdateCalendarEvent(calendarId string, eventId string, bodyParams vo.CreateCalendarEventReq) (*vo.CommonCalendarEventResp, error)
- func (t Tenant) UpdateCalendarEventAttendees(calendarId string, eventId string, ...) (*vo.UpdateCalendarEventAtendeesResp, error)
- func (t Tenant) UpdateCalendarEventV4(calendarId string, eventId string, bodyParams vo.UpdateCalendarEventV4Req) (*vo.CalendarEventInfoV4Resp, error)
- func (t Tenant) UpdateCalendarV4(calendarId string, bodyParams vo.UpdateCalendarV4Req) (*vo.CommonCalendarV4Resp, error)
- func (t Tenant) UpdateChat(msg vo.UpdateChatReqVo) (*vo.UpdateChatRespVo, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppTicketResend ¶
重新推送 app_ticket https://open.feishu.cn/document/ukTMukTMukTM/uQjNz4CN2MjL0YzM
func AuthenAccessToken ¶ added in v0.4.4
func GetAppAccessToken ¶
func GetAppAccessToken(appId, appSecret, appTicket string) (*vo.AppAccessTokenRespVo, error)
获取 app_access_token(应用商店应用)https://open.feishu.cn/document/ukTMukTMukTM/uEjNz4SM2MjLxYzM
func GetAppAccessTokenInternal ¶
func GetAppAccessTokenInternal(appId, appSecret string) (*vo.AppAccessTokenInternalRespVo, error)
获取 app_access_token(企业自建应用)https://open.feishu.cn/document/ukTMukTMukTM/uADN14CM0UjLwQTN
func GetOAuth2UserInfo ¶
func GetOAuth2UserInfo(userAccessToken string) (*vo.OAuth2UserInfoRespVo, error)
获取用户信息 https://open.feishu.cn/document/ukTMukTMukTM/uAjNz4CM2MjLwYzM
func GetOauth2AccessToken ¶
func GetOauth2AccessToken(req vo.OAuth2AccessTokenReqVo) (*vo.OAuth2AccessTokenRespVo, error)
获取登录用户身份 https://open.feishu.cn/document/ukTMukTMukTM/ukTNz4SO1MjL5UzM
func GetTenantAccessToken ¶
func GetTenantAccessToken(appAccessToken string, tenantKey string) (*vo.TenantAccessTokenRespVo, error)
获取 tenant_access_token(应用商店应用)https://open.feishu.cn/document/ukTMukTMukTM/uMjNz4yM2MjLzYzM
func GetTenantAccessTokenInternal ¶
func GetTenantAccessTokenInternal(appId string, appSecret string) (*vo.TenantAccessTokenRespVo, error)
获取 tenant_access_token(企业自建应用)https://open.feishu.cn/document/ukTMukTMukTM/uIjNz4iM2MjLyYzM
func RefreshUserAccessToken ¶ added in v0.1.9
func RefreshUserAccessToken(appId, appSecret, appTicket, refreshToken string) (*vo.RefreshAccessTokenResp, error)
刷新access_token https://open.feishu.cn/document/ukTMukTMukTM/uQDO4UjL0gDO14CN4gTN
func TokenLoginValidate ¶ added in v0.0.4
func TokenLoginValidate(appAccessToken string, code string) (*vo.TokenLoginValidateResp, error)
code2session https://open.feishu.cn/document/ukTMukTMukTM/ukjM04SOyQjL5IDN?lang=zh-CN
Types ¶
type App ¶
func BuildInternalApp ¶
type Tenant ¶
type Tenant struct {
TenantAccessToken string
}
func BuildTenant ¶
func BuildTenantInternal ¶
func (Tenant) AddBot ¶ added in v0.1.9
拉机器人进群 https://open.feishu.cn/document/ukTMukTMukTM/uYDO04iN4QjL2gDN
func (Tenant) AddCalendarAclV4 ¶ added in v0.3.8
func (t Tenant) AddCalendarAclV4(calendarId string, userIdType string, body vo.AddCalendarAclV4Req) (*vo.AddCalendarAclV4Resp, error)
创建访问控制 https://open.feishu.cn/document/ukTMukTMukTM/uUjM3YjL1IzN24SNycjN
func (Tenant) AddCalendarAttendeesAcl ¶ added in v0.0.6
func (t Tenant) AddCalendarAttendeesAcl(calendarId string, bodyParams vo.AddCalendarAttendeesAclReq) (*vo.GetCalendarAttendeesResp, error)
创建访问控制 https://open.feishu.cn/document/ukTMukTMukTM/uQjM14CNyUjL0ITN
func (Tenant) AddCalendarEventAttendeesV4 ¶ added in v0.3.7
func (t Tenant) AddCalendarEventAttendeesV4(calendarId string, eventId string, userIdType string, bodyParams vo.AddCalendarEventAttendeesV4Req) (*vo.AddCalendarEventAttendeesV4Resp, error)
创建日程参与人v4 https://open.feishu.cn/document/ukTMukTMukTM/uAjM3YjLwIzN24CMycjN
func (Tenant) AddChatUser ¶ added in v0.1.8
func (t Tenant) AddChatUser(msg vo.UpdateChatMemberReqVo) (*vo.UpdateChatMemberRespVo, error)
拉用户进群 https://open.feishu.cn/document/ukTMukTMukTM/ucTO5QjL3kTO04yN5kDN
func (Tenant) AdminUserList ¶ added in v0.3.0
func (t Tenant) AdminUserList() (*vo.AdminUserListResp, error)
查询应用管理员列表 https://open.feishu.cn/document/ukTMukTMukTM/ucDOwYjL3gDM24yN4AjN
func (Tenant) ApplyScopes ¶ added in v0.3.6
func (t Tenant) ApplyScopes() (*vo.ApplyScopesResp, error)
申请授权 https://bytedance.feishu.cn/docs/doccnHJx2UbLZh5kiWjNawICyNd#kHHiAa
func (Tenant) BatchGetId ¶ added in v0.4.3
使用手机号或邮箱获取用户ID https://open.feishu.cn/document/ukTMukTMukTM/uUzMyUjL1MjM14SNzITN
func (Tenant) ChatInfo ¶ added in v0.1.8
func (t Tenant) ChatInfo(chatId string) (*vo.ChatInfoRespVo, error)
获取群信息 https://open.feishu.cn/document/ukTMukTMukTM/uMTO5QjLzkTO04yM5kDN
func (Tenant) ChatList ¶ added in v0.1.8
获取群列表 https://open.feishu.cn/document/ukTMukTMukTM/uITO5QjLykTO04iM5kDN
func (Tenant) ChatMembers ¶ added in v0.1.7
func (t Tenant) ChatMembers(userAccessToken string, chatId string, pageSize int, pageToken string) (*vo.ChatMembersRespVo, error)
获取群成员列表 https://open.feishu.cn/document/ukTMukTMukTM/uUzMwUjL1MDM14SNzATN
func (Tenant) ChatSearch ¶ added in v0.1.7
func (t Tenant) ChatSearch(userAccessToken string, query string, pageSize int, pageToken string) (*vo.GroupListRespVo, error)
搜索用户所在的群列表 https://open.feishu.cn/document/ukTMukTMukTM/uUTOyUjL1kjM14SN5ITN
func (Tenant) CheckUser ¶ added in v0.2.5
func (t Tenant) CheckUser(req vo.CheckUserReq) (*vo.CheckUserResp, error)
查询用户是否在应用开通范围 https://open.feishu.cn/document/ukTMukTMukTM/uATNwUjLwUDM14CM1ATN
func (Tenant) CreateCalendar ¶ added in v0.0.3
func (t Tenant) CreateCalendar(bodyParams vo.CreateCalendarReq) (*vo.CommonCalendarResp, error)
创建日历 https://open.feishu.cn/document/ukTMukTMukTM/uQTM14CNxUjL0ETN?lang=zh-CN
func (Tenant) CreateCalendarEvent ¶ added in v0.0.3
func (t Tenant) CreateCalendarEvent(calendarId string, bodyParams vo.CreateCalendarEventReq) (*vo.CommonCalendarEventResp, error)
创建日程 https://open.feishu.cn/document/ukTMukTMukTM/ugTM14COxUjL4ETN?lang=zh-CN
func (Tenant) CreateCalendarEventV4 ¶ added in v0.3.7
func (t Tenant) CreateCalendarEventV4(calendarId string, bodyParams vo.CreateCalendarEventV4Req) (*vo.CalendarEventInfoV4Resp, error)
创建日程v4 https://open.feishu.cn/document/ukTMukTMukTM/uYTM3YjL2EzN24iNxcjN
func (Tenant) CreateCalendarV4 ¶ added in v0.3.7
func (t Tenant) CreateCalendarV4(bodyParams vo.CreateCalendarV4Req) (*vo.CommonCalendarV4Resp, error)
CreateCalendarV4 创建日历v4版本 https://open.feishu.cn/document/ukTMukTMukTM/uUDM3YjL1AzN24SNwcjN
func (Tenant) CreateChat ¶ added in v0.1.8
func (t Tenant) CreateChat(msg vo.CreateChatReqVo) (*vo.CreateChatRespVo, error)
创建群 https://open.feishu.cn/document/ukTMukTMukTM/ukDO5QjL5gTO04SO4kDN
func (Tenant) DeleteCalendar ¶ added in v0.0.3
删除日历 https://open.feishu.cn/document/ukTMukTMukTM/uUTM14SNxUjL1ETN?lang=zh-CN
func (Tenant) DeleteCalendarAclV4 ¶ added in v0.3.8
删除访问控制 https://open.feishu.cn/document/ukTMukTMukTM/uYjM3YjL2IzN24iNycjN
func (Tenant) DeleteCalendarAttendeesAcl ¶ added in v0.0.6
删除访问控制 https://open.feishu.cn/document/ukTMukTMukTM/uUjM14SNyUjL1ITN
func (Tenant) DeleteCalendarEvent ¶ added in v0.0.3
删除日程 https://open.feishu.cn/document/ukTMukTMukTM/uAjM14CMyUjLwITN?lang=zh-CN
func (Tenant) DeleteCalendarEventAttendeesV4 ¶ added in v0.3.7
func (t Tenant) DeleteCalendarEventAttendeesV4(calendarId string, eventId string, userIdType string, bodyParams vo.DeleteCalendarEventAttendeesV4Req) (*vo.CommonVo, error)
删除日程参与人v4 https://open.feishu.cn/document/ukTMukTMukTM/uAzM3YjLwMzN24CMzcjN
func (Tenant) DeleteCalendarEventV4 ¶ added in v0.3.7
删除日程v4 https://open.feishu.cn/document/ukTMukTMukTM/ucTM3YjL3EzN24yNxcjN
func (Tenant) DeleteCalendarV4 ¶ added in v0.3.7
func (t Tenant) DeleteCalendarV4(calendarId string) (*vo.VoidV4Resp, error)
DeleteCalendarV4 删除日历 https://open.feishu.cn/document/ukTMukTMukTM/uYDM3YjL2AzN24iNwcjN
func (Tenant) DisbandChat ¶ added in v0.1.8
解散群 https://open.feishu.cn/document/ukTMukTMukTM/uUDN5QjL1QTO04SN0kDN
func (Tenant) GetCalendar ¶ added in v0.0.3
func (t Tenant) GetCalendar(calendarId string) (*vo.CommonCalendarResp, error)
获取日历 https://open.feishu.cn/document/ukTMukTMukTM/uMDN04yM0QjLzQDN?lang=zh-CN
func (Tenant) GetCalendarAclList ¶ added in v0.3.8
func (t Tenant) GetCalendarAclList(calendarId string, pageSize int, pageToken string) (*vo.GetCalendarAclListV4Resp, error)
获取访问控制列表 https://open.feishu.cn/document/ukTMukTMukTM/ucjM3YjL3IzN24yNycjN
func (Tenant) GetCalendarAttendeesAcl ¶ added in v0.0.6
func (t Tenant) GetCalendarAttendeesAcl(calendarId string) (*vo.GetCalendarAttendeesResp, error)
获取访问控制列表 https://open.feishu.cn/document/ukTMukTMukTM/uMjM14yMyUjLzITN
func (Tenant) GetCalendarEventAttendeesChatMembersV4 ¶ added in v0.3.7
func (t Tenant) GetCalendarEventAttendeesChatMembersV4(calendarId string, eventId string, attendeeId string, pageSize int, pageToken *string, userIdType string) (*vo.GetCalendarEventAttendeesV4Resp, error)
获取参与人群成员列表v4 https://open.feishu.cn/document/ukTMukTMukTM/uATN3YjLwUzN24CM1cjN
func (Tenant) GetCalendarEventAttendeesV4 ¶ added in v0.3.7
func (t Tenant) GetCalendarEventAttendeesV4(calendarId string, eventId string, pageSize int, pageToken *string, userIdType string) (*vo.GetCalendarEventAttendeesV4Resp, error)
获取日程参与人列表v4 https://open.feishu.cn/document/ukTMukTMukTM/uEzM3YjLxMzN24SMzcjN
func (Tenant) GetCalendarEventList ¶ added in v0.0.3
func (t Tenant) GetCalendarEventList(calendarId string, maxResults *int64, pageToken *string, syncToken *string) (*vo.CalendarEventListResp, error)
获取日程列表 https://open.feishu.cn/document/ukTMukTMukTM/ukTM14SOxUjL5ETN
func (Tenant) GetCalendarEventListV4 ¶ added in v0.3.7
func (t Tenant) GetCalendarEventListV4(calendarId string, eventId string, pageSize int, pageToken *string, syncToken *string) (*vo.GetCalendarEventListV4Resp, error)
获取日程列表v4 https://open.feishu.cn/document/ukTMukTMukTM/ukTM3YjL5EzN24SOxcjN
func (Tenant) GetCalendarEventV4 ¶ added in v0.3.7
func (t Tenant) GetCalendarEventV4(calendarId string, eventId string) (*vo.CalendarEventInfoV4Resp, error)
获取日程v4 https://open.feishu.cn/document/ukTMukTMukTM/ugTM3YjL4EzN24COxcjN
func (Tenant) GetCalendarList ¶ added in v0.0.3
func (t Tenant) GetCalendarList(maxResults *int64, pageToken *string, syncToken *string) (*vo.CalendarListResp, error)
获取日历列表
func (Tenant) GetCalendarListV4 ¶ added in v0.3.7
func (t Tenant) GetCalendarListV4(pageSize int, pageToken, syncToken string) (*vo.GetCalendarListV4Resp, error)
获取日历列表 https://open.feishu.cn/document/ukTMukTMukTM/ugDM3YjL4AzN24COwcjN todo
func (Tenant) GetCalendarV4 ¶ added in v0.3.7
func (t Tenant) GetCalendarV4(calendarId string) (*vo.GetCalendarV4Resp, error)
GetCalendarV4 获取日历 https://open.feishu.cn/document/ukTMukTMukTM/ucDM3YjL3AzN24yNwcjN
func (Tenant) GetDepartmentInfo ¶
func (t Tenant) GetDepartmentInfo(departmentId string) (*vo.GetDepartmentInfoRespVo, error)
获取部门详情 https://open.feishu.cn/document/ukTMukTMukTM/uAzNz4CM3MjLwczM
func (Tenant) GetDepartmentInfoBatch ¶ added in v0.1.5
func (t Tenant) GetDepartmentInfoBatch(depIds []string) (*vo.GetDepartmentInfoBatchRespVo, error)
批量获取部门详情 https://bytedance.feishu.cn/docs/doccnOcR1fnxBACchoY9tlg7Amg#
func (Tenant) GetDepartmentSimpleList ¶
func (t Tenant) GetDepartmentSimpleList(departmentId string, offset, pageSize int, fetchChild bool) (*vo.GetDepartmentSimpleListRespVo, error)
获取子部门列表 https://open.feishu.cn/document/ukTMukTMukTM/ugzN3QjL4czN04CO3cDN
func (Tenant) GetDepartmentSimpleListV2 ¶ added in v0.1.4
func (t Tenant) GetDepartmentSimpleListV2(id string, pageToken string, pageSize int, fetchChild bool) (*vo.GetDepartmentSimpleListV2RespVo, error)
获取子部门列表v2 https://open.feishu.cn/document/ukTMukTMukTM/ugzN3QjL4czN04CO3cDN
func (Tenant) GetDepartmentUserDetailList ¶ added in v0.0.3
func (t Tenant) GetDepartmentUserDetailList(departmentId string, offset, pageSize int, fetchChild bool) (*vo.GetDepartmentUserDetailListRespVo, error)
获取部门用户详情列表 https://open.feishu.cn/document/ukTMukTMukTM/uYzN3QjL2czN04iN3cDN?lang=zh-CN
func (Tenant) GetDepartmentUserDetailListV2 ¶ added in v0.1.4
func (t Tenant) GetDepartmentUserDetailListV2(departmentId string, pageToken string, pageSize int, fetchChild bool) (*vo.GetUserBatchGetV2Resp, error)
获取部门用户详情列表V2 https://open.feishu.cn/document/ukTMukTMukTM/uYzN3QjL2czN04iN3cDN?lang=zh-CN
func (Tenant) GetDepartmentUserList ¶
func (t Tenant) GetDepartmentUserList(departmentId string, offset, pageSize int, fetchChild bool) (*vo.GetDepartmentUserListRespVo, error)
获取部门用户列表 https://open.feishu.cn/document/ukTMukTMukTM/uEzNz4SM3MjLxczM
func (Tenant) GetDepartmentUserListV2 ¶ added in v0.1.4
func (t Tenant) GetDepartmentUserListV2(departmentId string, pageToken string, pageSize int, fetchChild bool) (*vo.GetDepartmentUserListV2RespVo, error)
获取部门用户列表 https://open.feishu.cn/document/ukTMukTMukTM/uEzNz4SM3MjLxczM
func (Tenant) GetDocMeta ¶ added in v0.2.8
获取文档元信息 https://open.feishu.cn/document/ugTM5UjL4ETO14COxkTN/uczN3UjL3czN14yN3cTN
func (Tenant) GetImage ¶ added in v0.3.1
func (t Tenant) GetImage(imageKey string) ([]byte, error) {
func (Tenant) GetJsTicket ¶ added in v0.4.5
func (t Tenant) GetJsTicket() (*vo.GetJsTicketResp, error)
func (Tenant) GetOrderInfo ¶ added in v0.2.5
func (t Tenant) GetOrderInfo(orderId string) (*vo.OrderInfoResp, error)
查询订单详情 https://open.feishu.cn/document/ukTMukTMukTM/uITNwUjLyUDM14iM1ATN
func (Tenant) GetOrderList ¶ added in v0.2.5
func (t Tenant) GetOrderList(req vo.GetOrderListReq) (*vo.GetOrderListResp, error)
查询租户购买的付费方案 https://open.feishu.cn/document/ukTMukTMukTM/uETNwUjLxUDM14SM1ATN
func (Tenant) GetRoleList ¶ added in v0.0.3
func (t Tenant) GetRoleList() (*vo.RoleListResp, error)
获取角色列表 https://open.feishu.cn/document/ukTMukTMukTM/uYzMwUjL2MDM14iNzATN?lang=zh-CN
func (Tenant) GetRoleMemberList ¶ added in v0.0.3
func (t Tenant) GetRoleMemberList() (*vo.RoleMemberListResp, error)
获取角色成员列表 https://open.feishu.cn/document/ukTMukTMukTM/uczMwUjL3MDM14yNzATN?lang=zh-CN
func (Tenant) GetScope ¶ added in v0.0.9
func (t Tenant) GetScope() (*vo.GetScopeRespVo, error)
获取通讯录授权范围 https://open.feishu.cn/document/ukTMukTMukTM/ugjNz4CO2MjL4YzM?lang=zh-CN
func (Tenant) GetScopeV2 ¶ added in v0.1.4
func (t Tenant) GetScopeV2() (*vo.GetScopeRespV2Vo, error)
获取通讯录授权范围 v2 https://open.feishu.cn/document/ukTMukTMukTM/ugjNz4CO2MjL4YzM?lang=zh-CN
func (Tenant) GetScopes ¶ added in v0.3.6
func (t Tenant) GetScopes() (*vo.GetScopesResp, error)
1.查询租户授权状态 https://bytedance.feishu.cn/docs/doccnHJx2UbLZh5kiWjNawICyNd#dCNL6V
func (Tenant) GetUserBatchGet ¶
func (t Tenant) GetUserBatchGet(employeeIds []string, openIds []string) (*vo.GetUserBatchGetRespVo, error)
批量获取用户信息 https://open.feishu.cn/document/ukTMukTMukTM/uIzNz4iM3MjLyczM
func (Tenant) GetUserBatchGetV2 ¶ added in v0.1.2
func (t Tenant) GetUserBatchGetV2(employeeIds []string, openIds []string) (*vo.GetUserBatchGetV2Resp, error)
批量获取用户信息 https://open.feishu.cn/document/ukTMukTMukTM/uIzNz4iM3MjLyczM
func (Tenant) GetUsersV3 ¶ added in v0.4.1
func (Tenant) GroupList ¶ added in v0.1.7
func (t Tenant) GroupList(userAccessToken string, pageSize int, pageToken string) (*vo.GroupListRespVo, error)
获取用户所在的群列表 https://open.feishu.cn/document/ukTMukTMukTM/uQzMwUjL0MDM14CNzATN
func (Tenant) ImChatInfo ¶ added in v0.4.4
获取群信息 https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat/get
func (Tenant) ImChatList ¶ added in v0.4.4
func (t Tenant) ImChatList(userAccessToken string, pageSize int, pageToken string, userIdType *string) (*vo.ImChatListRespVo, error)
获取用户或机器人所在的群列表 https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat/list
func (Tenant) IsUserAdmin ¶ added in v0.1.3
校验应用管理员 https://open.feishu.cn/document/ukTMukTMukTM/uITN1EjLyUTNx4iM1UTM
func (Tenant) NewFileUploadRequest ¶ added in v0.3.1
func (Tenant) OrgInfo ¶ added in v0.4.2
func (t Tenant) OrgInfo() (*vo.OrgInfoResp, error)
获取企业信息 https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/tenant-v2/tenant/query
func (Tenant) RemoveChatUser ¶ added in v0.1.8
func (t Tenant) RemoveChatUser(msg vo.UpdateChatMemberReqVo) (*vo.UpdateChatMemberRespVo, error)
移除用户出群 https://open.feishu.cn/document/ukTMukTMukTM/uADMwUjLwADM14CMwATN
func (Tenant) SearchCalendarV4 ¶ added in v0.3.7
func (t Tenant) SearchCalendarV4(bodyParams vo.SearchCalendarV4Req, pageToken string, pageSize int) (*vo.SearchCalendarV4Resp, error)
SearchCalendarV4 搜索日历 https://open.feishu.cn/document/ukTMukTMukTM/uATM3YjLwEzN24CMxcjN
func (Tenant) SearchDocs ¶ added in v0.2.8
func (t Tenant) SearchDocs(userAccessToken string, req vo.SearchDocsReqVo) (*vo.SearchDocsRespVo, error)
文档搜索 https://open.feishu.cn/document/ugTM5UjL4ETO14COxkTN/ugDM4UjL4ADO14COwgTN
func (Tenant) SendMessage ¶ added in v0.0.3
发送消息卡片 https://open.feishu.cn/document/ukTMukTMukTM/uYTNwUjL2UDM14iN1ATN
func (Tenant) SendMessageBatch ¶ added in v0.0.3
发送消息卡片 https://open.feishu.cn/document/ukTMukTMukTM/uYTNwUjL2UDM14iN1ATN
func (Tenant) SubscribeCalendarV4 ¶ added in v0.3.7
func (t Tenant) SubscribeCalendarV4(calendarId string) (*vo.SubscribeCalendarV4Resp, error)
SubscribeCalendarV4 订阅日历 https://open.feishu.cn/document/ukTMukTMukTM/ucDO3YjL3gzN24yN4cjN
func (Tenant) SubscriptionCalendarV4 ¶ added in v0.3.7
func (t Tenant) SubscriptionCalendarV4() (*vo.VoidV4Resp, error)
SubscriptionCalendarV4 订阅日历变更事件 https://open.feishu.cn/document/ukTMukTMukTM/ugTO2YjL4kjN24CO5YjN/subscribe%20calendar%20changed%20event
func (Tenant) UnsubscribeCalendarV4 ¶ added in v0.3.7
func (t Tenant) UnsubscribeCalendarV4(calendarId string) (*vo.VoidV4Resp, error)
UnsubscribeCalendarV4 取消订阅日历 https://open.feishu.cn/document/ukTMukTMukTM/ugDO3YjL4gzN24CO4cjN
func (Tenant) UpdateCalendar ¶ added in v0.0.3
func (t Tenant) UpdateCalendar(calendarId string, bodyParams vo.UpdateCalendarReq) (*vo.CommonCalendarResp, error)
更新日历 https://open.feishu.cn/document/ukTMukTMukTM/uYTM14iNxUjL2ETN?lang=zh-CN
func (Tenant) UpdateCalendarEvent ¶ added in v0.0.3
func (t Tenant) UpdateCalendarEvent(calendarId string, eventId string, bodyParams vo.CreateCalendarEventReq) (*vo.CommonCalendarEventResp, error)
更新日程 https://open.feishu.cn/document/ukTMukTMukTM/uEjM14SMyUjLxITN
func (Tenant) UpdateCalendarEventAttendees ¶ added in v0.0.3
func (t Tenant) UpdateCalendarEventAttendees(calendarId string, eventId string, bodyParams vo.UpdateCalendarEventAtendeesReq) (*vo.UpdateCalendarEventAtendeesResp, error)
邀请/移除日程参与者 https://open.feishu.cn/document/ukTMukTMukTM/uIjM14iMyUjLyITN
func (Tenant) UpdateCalendarEventV4 ¶ added in v0.3.7
func (t Tenant) UpdateCalendarEventV4(calendarId string, eventId string, bodyParams vo.UpdateCalendarEventV4Req) (*vo.CalendarEventInfoV4Resp, error)
更新日程v4 https://open.feishu.cn/document/ukTMukTMukTM/uAjM3YjLwIzN24CMycjN
func (Tenant) UpdateCalendarV4 ¶ added in v0.3.7
func (t Tenant) UpdateCalendarV4(calendarId string, bodyParams vo.UpdateCalendarV4Req) (*vo.CommonCalendarV4Resp, error)
UpdateCalendarV4 更新日历 https://open.feishu.cn/document/ukTMukTMukTM/ukDM3YjL5AzN24SOwcjN
func (Tenant) UpdateChat ¶ added in v0.1.8
func (t Tenant) UpdateChat(msg vo.UpdateChatReqVo) (*vo.UpdateChatRespVo, error)
更新群信息 https://open.feishu.cn/document/ukTMukTMukTM/uYTO5QjL2kTO04iN5kDN
type User ¶ added in v0.1.2
type User struct {
UserAccessToken string
}
func (User) SearchUser ¶ added in v0.1.2
搜索用户 https://bytedance.feishu.cn/docs/doccnizryz7NKuUmVfkRJWeZGVc