Versions in this module Expand all Collapse all v0 v0.10.1 Jun 26, 2022 Changes in this version + const AgentAuthTypeAdmin + const AgentAuthTypeUsage + const ClientContextKey + const DefaultAPI + const EventMessageType + const MentionAll + const MessageTypeFile + const MessageTypeImage + const MessageTypeMarkdown + const MessageTypeNews + const MessageTypeTemplateCard + const MessageTypeText + const RootDepartmentID + func Debug(o *middlewareOptions) + func NewContext(ctx context.Context, v *Client) context.Context + func RandAES256Key() string + func RegisterEventModel(e ...EventModel) + func UnmarshalEvent(data []byte) (EventModel, *CommonPushEvent, error) + func WebhookSend(r *WebhookSendRequest) (err error) + func WithProviderAccessToken(o *middlewareOptions) + func WithSuiteAccessToken(o *middlewareOptions) + func WithoutAccessToken(o *middlewareOptions) + type AddCalendar struct + Color string + Description string + Organizer string + Readonly int + SetAsDefault int + Shares []AddCalendarRequestShares + Summary string + type AddCalendarRequest struct + AgentID int + Calendar AddCalendar + type AddCalendarRequestShares struct + Readonly int + UserID string + type AddCalendarResponse struct + CalenderID string + type AddContactWayRequest struct + ChatExpiresIn int + Conclusions *Conclusions + ExpiresIn int + IsTemp bool + Party []int + Remark string + Scene int + SkipVerify bool + State string + Style int + Type int + UnionID string + User []string + type AddContactWayResponse struct + ConfigID string + QrCode string + type AddCorpTagRequest struct + AgentID int + GroupID string + GroupName string + Order int + Tag []AddCorpTagRequestTag + type AddCorpTagRequestTag struct + Name string + Order int + type AddCorpTagResponse struct + TagGroup AddCorpTagResponseTagGroup + type AddCorpTagResponseTagGroup struct + CreateTime int + GroupID string + GroupName string + Order int + Tag []AddCorpTagResponseTagGroupTag + type AddCorpTagResponseTagGroupTag struct + CreateTime int + ID string + Name string + Order int + type AddGroupWelcomeTemplateRequest struct + AgentID int + File AddGroupWelcomeTemplateRequestFile + Image AddGroupWelcomeTemplateRequestImage + Link AddGroupWelcomeTemplateRequestLink + MiniProgram AddGroupWelcomeTemplateRequestMiniProgram + Notify int + Text AddGroupWelcomeTemplateRequestText + Video AddGroupWelcomeTemplateRequestVideo + type AddGroupWelcomeTemplateRequestFile struct + MediaID string + type AddGroupWelcomeTemplateRequestImage struct + MediaID string + PicURL string + type AddGroupWelcomeTemplateRequestLink struct + Desc string + PicURL string + Title string + URL string + type AddGroupWelcomeTemplateRequestMiniProgram struct + AppID string + Page string + PicMediaID string + Title string + type AddGroupWelcomeTemplateRequestText struct + Content string + type AddGroupWelcomeTemplateRequestVideo struct + MediaID string + type AddGroupWelcomeTemplateResponse struct + TemplateID string + type AddMessageTemplateRequest struct + Attachments []AddMessageTemplateRequestAttachments + ChatType string + ExternalUserID []string + File AddMessageTemplateRequestFile + Image AddMessageTemplateRequestImage + Link AddMessageTemplateRequestLink + MiniProgram AddMessageTemplateRequestMiniProgram + Sender string + Text AddMessageTemplateRequestText + Video AddMessageTemplateRequestVideo + type AddMessageTemplateRequestAttachments struct + MessageType string + type AddMessageTemplateRequestFile struct + MediaID string + type AddMessageTemplateRequestImage struct + MediaID string + PicURL string + type AddMessageTemplateRequestLink struct + Desc string + PicURL string + Title string + URL string + type AddMessageTemplateRequestMiniProgram struct + AppID string + Page string + PicMediaID string + Title string + type AddMessageTemplateRequestText struct + Content string + type AddMessageTemplateRequestVideo struct + MediaID string + type AddMessageTemplateResponse struct + FailList []string + MessageID string + type AddSchedulePushEvent struct + CalID string + CreateTime int64 + Event string + FromUsername string + MsgType string + ScheduleID string + ToUsername string + XMLName xml.Name + func (AddSchedulePushEvent) EventType() string + func (AddSchedulePushEvent) MessageType() string + type AddScheduleRequest struct + AgentID int + Schedule AddScheduleRequestSchedule + type AddScheduleRequestSchedule struct + Attendees []AddScheduleRequestScheduleAttendees + CalenderID string + Description string + EndTime int + Location string + Organizer string + Reminders AddScheduleRequestScheduleReminders + StartTime int + Summary string + type AddScheduleRequestScheduleAttendees struct + UserID string + type AddScheduleRequestScheduleReminders struct + IsCustomRepeat int + IsRemind int + IsRepeat int + RemindBeforeEventSecs int + RepeatDayOfMonth []int + RepeatDayOfWeek []int + RepeatInterval int + RepeatType int + RepeatUntil int + Timezone int + type AddScheduleResponse struct + ScheduleID string + type AddTagUsersRequest struct + PartyList []int + TagID int + UserList []string + type AddTagUsersResponse struct + InvalidList string + InvalidParty string + type AgentAuthType int + func (v AgentAuthType) String() string + type AuthSuccessRequest struct + UserID string + type BatchDeleteUserRequest struct + UserIDList []string + type BatchGetByUserRequest struct + Cursor string + Limit int + UserIDList []string + type BatchGetByUserResponse struct + ExternalContactList []BatchGetByUserResponseExternalContactList + NextCursor string + type BatchGetByUserResponseExternalContactList struct + ExternalContact ExternalContactResponse + FollowInfo GetExternalContactResponseFollowUser + type BatchGetResult struct + ErrorCode int + ErrorMessage string + UserID string + type BatchGetResultRequest struct + JobID string + type BatchGetResultResponse struct + Percentage int + Result []BatchGetResult + Status int + Total int + Type string + type BatchInviteRequest struct + Party string + Tag string + User string + type BatchInviteResponse struct + InvalidParty string + InvalidTag string + InvalidUser string + type BatchJobResultPushEvent struct + CreateTime int64 + ErrCode string + ErrMsg string + Event string + FromUsername string + JobID string + JobType string + MsgType string + ToUsername string + XMLName xml.Name + func (BatchJobResultPushEvent) EventType() string + func (BatchJobResultPushEvent) MessageType() string + type BatchReplacePartyRequest struct + Callback BatchSyncCallback + MediaID string + type BatchReplacePartyResponse struct + JobID string + type BatchReplaceUserRequest struct + Callback BatchSyncCallback + MediaID string + ToInvite bool + type BatchReplaceUserResponse struct + JobID string + type BatchSyncCallback struct + EncodingAesKey string + Token string + URL string + type BatchSyncUserRequest struct + Callback BatchSyncCallback + MediaID string + ToInvite bool + type BatchSyncUserResponse struct + JobID string + type CancelAuthPushEvent struct + AuthCorpID string + InfoType string + SuiteID string + Timestamp int64 + XMLName xml.Name + func (CancelAuthPushEvent) EventType() string + type ChangeAuthPushEvent struct + AuthCorpID string + InfoType string + SuiteID string + Timestamp int64 + XMLName xml.Name + func (ChangeAuthPushEvent) EventType() string + type ChangeContactCreatePartyPushEvent struct + ChangeType string + CreateTime int64 + Event string + FromUsername string + ID string + MsgType string + Name string + Order string + ParentID string + ToUsername string + XMLName xml.Name + func (ChangeContactCreatePartyPushEvent) EventChangeType() string + func (ChangeContactCreatePartyPushEvent) EventType() string + func (ChangeContactCreatePartyPushEvent) MessageType() string + type ChangeContactCreateUserPushEvent struct + AuthCorpID string + Avatar string + ChangeType string + Department string + Email string + EnglishName string + ExtAttr string + Gender string + InfoType string + IsLeader string + Mobile string + Name string + Position string + Status string + SuiteID string + Telephone string + Timestamp int64 + UserID string + XMLName xml.Name + func (ChangeContactCreateUserPushEvent) EventChangeType() string + func (ChangeContactCreateUserPushEvent) EventType() string + type ChangeContactDeletePartyPushEvent struct + AuthCorpID string + ChangeType string + ID string + InfoType string + SuiteID string + Timestamp int64 + XMLName xml.Name + func (ChangeContactDeletePartyPushEvent) EventChangeType() string + func (ChangeContactDeletePartyPushEvent) EventType() string + type ChangeContactDeleteUserPushEvent struct + AuthCorpID string + ChangeType string + InfoType string + SuiteID string + Timestamp int64 + UserID string + XMLName xml.Name + func (ChangeContactDeleteUserPushEvent) EventChangeType() string + func (ChangeContactDeleteUserPushEvent) EventType() string + type ChangeContactExtAttr struct + Item []ChangeContactExtAttrItem + type ChangeContactExtAttrItem struct + Name string + Value string + type ChangeContactUpdatePartyPushEvent struct + AuthCorpID string + ChangeType string + ID string + InfoType string + Name string + ParentID string + SuiteID string + Timestamp int64 + XMLName xml.Name + func (ChangeContactUpdatePartyPushEvent) EventChangeType() string + func (ChangeContactUpdatePartyPushEvent) EventType() string + type ChangeContactUpdateTagPushEvent struct + AddPartyItems string + AddUserItems string + AuthCorpID string + ChangeType string + DelPartyItems string + DelUserItems string + InfoType string + SuiteID string + TagID string + Timestamp int64 + XMLName xml.Name + func (ChangeContactUpdateTagPushEvent) EventChangeType() string + func (ChangeContactUpdateTagPushEvent) EventType() string + type ChangeContactUpdateUserPushEvent struct + AuthCorpID string + Avatar string + ChangeType string + Department string + Email string + EnglishName string + ExtAttr string + Gender string + InfoType string + IsLeader string + Mobile string + Name string + NewUserID string + Position string + Status string + SuiteID string + Telephone string + Timestamp int64 + UserID string + XMLName xml.Name + func (ChangeContactUpdateUserPushEvent) EventChangeType() string + func (ChangeContactUpdateUserPushEvent) EventType() string + type ChangeExternalChatCreatePushEvent struct + AuthCorpID string + ChangeType string + ChatID string + InfoType string + SuiteID string + Timestamp int64 + XMLName xml.Name + func (ChangeExternalChatCreatePushEvent) EventChangeType() string + func (ChangeExternalChatCreatePushEvent) EventType() string + type ChangeExternalChatDismissPushEvent struct + AuthCorpID string + ChangeType string + ChatID string + InfoType string + SuiteID string + Timestamp int64 + XMLName xml.Name + func (ChangeExternalChatDismissPushEvent) EventChangeType() string + func (ChangeExternalChatDismissPushEvent) EventType() string + type ChangeExternalChatUpdatePushEvent struct + AuthCorpID string + ChangeType string + ChatID string + InfoType string + JoinScene string + MemChangeCnt string + QuitScene string + SuiteID string + Timestamp int64 + UpdateDetail string + XMLName xml.Name + func (ChangeExternalChatUpdatePushEvent) EventChangeType() string + func (ChangeExternalChatUpdatePushEvent) EventType() string + type ChangeExternalContactAddExternalContactPushEvent struct + AuthCorpID string + ChangeType string + ExternalUserID string + InfoType string + State string + SuiteID string + Timestamp int64 + UserID string + WelcomeCode string + XMLName xml.Name + func (ChangeExternalContactAddExternalContactPushEvent) EventChangeType() string + func (ChangeExternalContactAddExternalContactPushEvent) EventType() string + type ChangeExternalContactAddHalfExternalContactPushEvent struct + AuthCorpID string + ChangeType string + ExternalUserID string + InfoType string + State string + SuiteID string + Timestamp int64 + UserID string + WelcomeCode string + XMLName xml.Name + func (ChangeExternalContactAddHalfExternalContactPushEvent) EventChangeType() string + func (ChangeExternalContactAddHalfExternalContactPushEvent) EventType() string + type ChangeExternalContactDelExternalContactPushEvent struct + AuthCorpID string + ChangeType string + ExternalUserID string + InfoType string + SuiteID string + Timestamp int64 + UserID string + XMLName xml.Name + func (ChangeExternalContactDelExternalContactPushEvent) EventChangeType() string + func (ChangeExternalContactDelExternalContactPushEvent) EventType() string + type ChangeExternalContactDelFollowUserPushEvent struct + AuthCorpID string + ChangeType string + ExternalUserID string + InfoType string + SuiteID string + Timestamp int64 + UserID string + XMLName xml.Name + func (ChangeExternalContactDelFollowUserPushEvent) EventChangeType() string + func (ChangeExternalContactDelFollowUserPushEvent) EventType() string + type ChangeExternalContactEditExternalContactPushEvent struct + AuthCorpID string + ChangeType string + ExternalUserID string + InfoType string + SuiteID string + Timestamp int64 + UserID string + XMLName xml.Name + func (ChangeExternalContactEditExternalContactPushEvent) EventChangeType() string + func (ChangeExternalContactEditExternalContactPushEvent) EventType() string + type ChangeExternalContactMessageAuditApproved struct + ChangeType string + CreateTime int64 + Event string + ExternalUserID string + FromUserName string + MsgType string + ToUserName string + UserID string + WelcomeCode string + XMLName xml.Name + func (ChangeExternalContactMessageAuditApproved) EventChangeType() string + func (ChangeExternalContactMessageAuditApproved) EventType() string + type ChangeExternalContactTransferFailPushEvent struct + AuthCorpID string + ChangeType string + ExternalUserID string + FailReason string + InfoType string + SuiteID string + Timestamp int64 + UserID string + XMLName xml.Name + func (ChangeExternalContactTransferFailPushEvent) EventChangeType() string + func (ChangeExternalContactTransferFailPushEvent) EventType() string + type ChangeExternalTagCreatePushEvent struct + AuthCorpID string + ChangeType string + ID string + InfoType string + SuiteID string + TagType string + Timestamp int64 + XMLName xml.Name + func (ChangeExternalTagCreatePushEvent) EventChangeType() string + func (ChangeExternalTagCreatePushEvent) EventType() string + type ChangeExternalTagDeletePushEvent struct + AuthCorpID string + ChangeType string + ID string + InfoType string + SuiteID string + TagType string + Timestamp int64 + XMLName xml.Name + func (ChangeExternalTagDeletePushEvent) EventChangeType() string + func (ChangeExternalTagDeletePushEvent) EventType() string + type ChangeExternalTagUpdatePushEvent struct + AuthCorpID string + ChangeType string + ID string + InfoType string + SuiteID string + TagType string + Timestamp int64 + XMLName xml.Name + func (ChangeExternalTagUpdatePushEvent) EventChangeType() string + func (ChangeExternalTagUpdatePushEvent) EventType() string + type ClickPushEvent struct + AgentID string + CreateTime int64 + Event string + EventKey string + FromUsername string + MsgType string + ToUsername string + XMLName xml.Name + func (ClickPushEvent) EventType() string + func (ClickPushEvent) MessageType() string + type Client struct + Conf Conf + Request req.Request + TokenProvider TokenProvider + func FromContext(ctx context.Context) *Client + func NewClient(conf Conf) *Client + func (c *Client) AccessToken() (string, error) + func (c *Client) AddCalendar(r *AddCalendarRequest, opts ...interface{}) (out AddCalendarResponse, err error) + func (c *Client) AddContactWay(r *AddContactWayRequest, opts ...interface{}) (out AddContactWayResponse, err error) + func (c *Client) AddCorpTag(r *AddCorpTagRequest, opts ...interface{}) (out AddCorpTagResponse, err error) + func (c *Client) AddGroupWelcomeTemplate(r *AddGroupWelcomeTemplateRequest, opts ...interface{}) (out AddGroupWelcomeTemplateResponse, err error) + func (c *Client) AddMessageTemplate(r *AddMessageTemplateRequest, opts ...interface{}) (out AddMessageTemplateResponse, err error) + func (c *Client) AddSchedule(r *AddScheduleRequest, opts ...interface{}) (out AddScheduleResponse, err error) + func (c *Client) AddTagUsers(r *AddTagUsersRequest, opts ...interface{}) (out AddTagUsersResponse, err error) + func (c *Client) AgentTicket() (string, error) + func (c *Client) AuthCorpAccessToken() (string, error) + func (c *Client) AuthSuccess(r *AuthSuccessRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) BatchDeleteUser(r *BatchDeleteUserRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) BatchGetByUser(r *BatchGetByUserRequest, opts ...interface{}) (out BatchGetByUserResponse, err error) + func (c *Client) BatchGetResult(r *BatchGetResultRequest, opts ...interface{}) (out BatchGetResultResponse, err error) + func (c *Client) BatchInvite(r *BatchInviteRequest, opts ...interface{}) (out BatchInviteResponse, err error) + func (c *Client) BatchReplaceParty(r *BatchReplacePartyRequest, opts ...interface{}) (out BatchReplacePartyResponse, err error) + func (c *Client) BatchReplaceUser(r *BatchReplaceUserRequest, opts ...interface{}) (out BatchReplaceUserResponse, err error) + func (c *Client) BatchSyncUser(r *BatchSyncUserRequest, opts ...interface{}) (out BatchSyncUserResponse, err error) + func (c *Client) CloseTempChat(r *CloseTempChatRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) ConvertToOpenID(r *ConvertToOpenIDRequest, opts ...interface{}) (out ConvertToOpenIDResponse, err error) + func (c *Client) CreateDepartment(r *CreateDepartmentRequest, opts ...interface{}) (out CreateDepartmentResponse, err error) + func (c *Client) CreateTag(r *CreateTagRequest, opts ...interface{}) (out CreateTagResponse, err error) + func (c *Client) CreateUser(r *CreateUserRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) DeleteCalendar(r *DeleteCalendarRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) DeleteContactWay(r *DeleteContactWayRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) DeleteCorpTag(r *DeleteCorpTagRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) DeleteDepartment(r *DeleteDepartmentRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) DeleteGroupWelcomeTemplate(r *DeleteGroupWelcomeTemplateRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) DeleteSchedule(r *DeleteScheduleRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) DeleteTag(r *DeleteTagRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) DeleteTagUsers(r *DeleteTagUsersRequest, opts ...interface{}) (out DeleteTagUsersResponse, err error) + func (c *Client) DeleteUser(r *DeleteUserRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) EditCorpTag(r *EditCorpTagRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) EditGroupWelcomeTemplate(r *EditGroupWelcomeTemplateRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) ExportDepartment(r *ExportDepartmentRequest, opts ...interface{}) (out ExportDepartmentResponse, err error) + func (c *Client) ExportGetResult(r *ExportGetResultRequest, opts ...interface{}) (out ExportGetResultResponse, err error) + func (c *Client) ExportSimpleUser(r *ExportSimpleUserRequest, opts ...interface{}) (out ExportSimpleUserResponse, err error) + func (c *Client) ExportTagUser(r *ExportTagUserRequest, opts ...interface{}) (out ExportTagUserResponse, err error) + func (c *Client) ExportUser(r *ExportUserRequest, opts ...interface{}) (out ExportUserResponse, err error) + func (c *Client) GetAPIDomainIP() (out IPListResponse, err error) + func (c *Client) GetActiveStat(r *GetActiveStatRequest, opts ...interface{}) (out GetActiveStatResponse, err error) + func (c *Client) GetAgent(r *GetAgentRequest, opts ...interface{}) (out GetAgentResponse, err error) + func (c *Client) GetAgentTicket() (out TicketResponse, err error) + func (c *Client) GetCalendar(r *GetCalendarRequest, opts ...interface{}) (out GetCalendarResponse, err error) + func (c *Client) GetCallbackIP() (out IPListResponse, err error) + func (c *Client) GetContactWay(r *GetContactWayRequest, opts ...interface{}) (out GetContactWayResponse, err error) + func (c *Client) GetCorpTagList(r *GetCorpTagListRequest, opts ...interface{}) (out GetCorpTagListResponse, err error) + func (c *Client) GetExternalContact(r *GetExternalContactRequest, opts ...interface{}) (out GetExternalContactResponse, err error) + func (c *Client) GetFollowUserList(opts ...interface{}) (out GetFollowUserListResponse, err error) + func (c *Client) GetGroupChat(r *GetGroupChatRequest, opts ...interface{}) (out GetGroupChatResponse, err error) + func (c *Client) GetGroupMessageListV2(r *GetGroupMessageListV2Request, opts ...interface{}) (out GetGroupMessageListV2Response, err error) + func (c *Client) GetGroupMessageSendResult(r *GetGroupMessageSendResultRequest, opts ...interface{}) (out GetGroupMessageSendResultResponse, err error) + func (c *Client) GetGroupMessageTask(r *GetGroupMessageTaskRequest, opts ...interface{}) (out GetGroupMessageTaskResponse, err error) + func (c *Client) GetGroupWelcomeTemplate(r *GetGroupWelcomeTemplateRequest, opts ...interface{}) (out GetGroupWelcomeTemplateResponse, err error) + func (c *Client) GetJoinQrcode(r *GetJoinQrcodeRequest, opts ...interface{}) (out GetJoinQrcodeResponse, err error) + func (c *Client) GetJsAPITicket() (out TicketResponse, err error) + func (c *Client) GetMomentComments(r *GetMomentCommentsRequest, opts ...interface{}) (out GetMomentCommentsResponse, err error) + func (c *Client) GetMomentCustomerList(r *GetMomentCustomerListRequest, opts ...interface{}) (out GetMomentCustomerListResponse, err error) + func (c *Client) GetMomentList(r *GetMomentListRequest, opts ...interface{}) (out GetMomentListResponse, err error) + func (c *Client) GetMomentSendResult(r *GetMomentSendResultRequest, opts ...interface{}) (out GetMomentSendResultResponse, err error) + func (c *Client) GetMomentTask(r *GetMomentTaskRequest, opts ...interface{}) (out GetMomentTaskResponse, err error) + func (c *Client) GetProviderToken() (out ProviderTokenResponse, err error) + func (c *Client) GetSchedule(r *GetScheduleRequest, opts ...interface{}) (out GetScheduleResponse, err error) + func (c *Client) GetTag(r *GetTagRequest, opts ...interface{}) (out GetTagResponse, err error) + func (c *Client) GetToken() (out TokenResponse, err error) + func (c *Client) GetUnassignedList(r *GetUnassignedListRequest, opts ...interface{}) (out GetUnassignedListResponse, err error) + func (c *Client) GetUser(r *GetUserRequest, opts ...interface{}) (out GetUserResponse, err error) + func (c *Client) GetUserBehaviorData(r *GetUserBehaviorDataRequest, opts ...interface{}) (out GetUserBehaviorDataResponse, err error) + func (c *Client) GetUserInfo(r *GetUserInfoRequest) (out GetUserInfoResponse, err error) + func (c *Client) GetWorkbenchTemplate(r *GetWorkbenchTemplateRequest, opts ...interface{}) (out GetWorkbenchTemplateResponse, err error) + func (c *Client) GroupChatStatistic(r *GroupChatStatisticRequest, opts ...interface{}) (out GroupChatStatisticResponse, err error) + func (c *Client) JsAPITicket() (string, error) + func (c *Client) LinkGetPermList(opts ...interface{}) (out LinkGetPermListResponse, err error) + func (c *Client) LinkGetUser(r *LinkGetUserRequest, opts ...interface{}) (out LinkGetUserResponse, err error) + func (c *Client) LinkListDepartment(r *LinkListDepartmentRequest, opts ...interface{}) (out LinkListDepartmentResponse, err error) + func (c *Client) LinkListUser(r *LinkListUserRequest, opts ...interface{}) (out LinkListUserResponse, err error) + func (c *Client) LinkSimpleListUser(r *LinkSimpleListUserRequest, opts ...interface{}) (out LinkSimpleListUserResponse, err error) + func (c *Client) ListAgent(opts ...interface{}) (out ListAgentResponse, err error) + func (c *Client) ListDepartment(r *ListDepartmentRequest, opts ...interface{}) (out ListDepartmentResponse, err error) + func (c *Client) ListExternalContact(r *ListExternalContactRequest, opts ...interface{}) (out ListExternalContactResponse, err error) + func (c *Client) ListGroupChat(r *ListGroupChatRequest, opts ...interface{}) (out ListGroupChatResponse, err error) + func (c *Client) ListTag(opts ...interface{}) (out ListTagResponse, err error) + func (c *Client) ListUser(r *ListUserRequest, opts ...interface{}) (out ListUserResponse, err error) + func (c *Client) MarkTagExternalContact(r *MarkTagExternalContactRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) MessageAuditCheckRoomAgree(r *MessageAuditCheckRoomAgreeRequest, opts ...interface{}) (out MessageAuditCheckRoomAgreeResponse, err error) + func (c *Client) MessageAuditCheckSingleAgree(r *MessageAuditCheckSingleAgreeRequest, opts ...interface{}) (out MessageAuditCheckSingleAgreeResponse, err error) + func (c *Client) MessageAuditGetGroupChat(r *MessageAuditGetGroupChatRequest, opts ...interface{}) (out MessageAuditGetGroupChatResponse, err error) + func (c *Client) MessageAuditGetPermitUserList(r *MessageAuditGetPermitUserListRequest, opts ...interface{}) (out MessageAuditGetPermitUserListResponse, err error) + func (c *Client) ProviderAccessToken() (string, error) + func (c *Client) ProviderBatchGetResult(r *ProviderBatchGetResultRequest, opts ...interface{}) (out ProviderBatchGetResultResponse, err error) + func (c *Client) ProviderGetAdminList(r *ProviderGetAdminListRequest, opts ...interface{}) (out ProviderGetAdminListResponse, err error) + func (c *Client) ProviderGetAuthInfo(r *ProviderGetAuthInfoRequest, opts ...interface{}) (out ProviderGetAuthInfoResponse, err error) + func (c *Client) ProviderGetCorpToken(r *ProviderGetCorpTokenRequest, opts ...interface{}) (out ProviderGetCorpTokenResponse, err error) + func (c *Client) ProviderGetLoginInfo(r *ProviderGetLoginInfoRequest) (out ProviderGetLoginInfoResponse, err error) + func (c *Client) ProviderGetPermanentCode(r *ProviderGetPermanentCodeRequest, opts ...interface{}) (out ProviderGetPermanentCodeResponse, err error) + func (c *Client) ProviderGetPreAuthCode(r *ProviderGetPreAuthCodeRequest, opts ...interface{}) (out PreAuthCodeResponse, err error) + func (c *Client) ProviderGetSuiteToken(r *ProviderGetSuiteTokenRequest, opts ...interface{}) (out SuiteTokenResponse, err error) + func (c *Client) ProviderIDTranslateContact(r *ProviderIDTranslateContactRequest, opts ...interface{}) (out ProviderIDTranslateContactResponse, err error) + func (c *Client) ProviderSetSessionInfo(r *ProviderSetSessionInfoRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) ProviderSortContact(r *ProviderSortContactRequest, opts ...interface{}) (out ProviderSortContactResponse, err error) + func (c *Client) ProviderUploadMedia(r *ProviderUploadMediaRequest, opts ...interface{}) (out ProviderUploadMediaResponse, err error) + func (c *Client) RemarkExternalContact(r *RemarkExternalContactRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) ScheduleGetByCalendar(r *ScheduleGetByCalendarRequest, opts ...interface{}) (out ScheduleGetByCalendarResponse, err error) + func (c *Client) SendWelcomeMessage(r *SendWelcomeMessageRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) SetWorkbenchData(r *SetWorkbenchDataRequest, opts ...interface{}) (out SetWorkbenchDataResponse, err error) + func (c *Client) SetWorkbenchTemplate(r *SetWorkbenchTemplateRequest, opts ...interface{}) (out SetWorkbenchTemplateResponse, err error) + func (c *Client) SignAgentConfig(url string) (*JsSdkAgentConfig, error) + func (c *Client) SignConfig(url string) (*JsSdkConfig, error) + func (c *Client) SimpleListUser(r *SimpleListUserRequest, opts ...interface{}) (out SimpleListUserResponse, err error) + func (c *Client) StatisticGroupByDay(r *StatisticGroupByDayRequest, opts ...interface{}) (out StatisticGroupByDayResponse, err error) + func (c *Client) SuiteAccessToken() (string, error) + func (c *Client) SuiteGetUserDetail(r *SuiteGetUserDetailRequest) (out SuiteGetUserDetailResponse, err error) + func (c *Client) SuiteGetUserInfo(r *SuiteGetUserInfoRequest) (out SuiteGetUserInfoResponse, err error) + func (c *Client) TransferCustomerExternalContact(r *TransferCustomerExternalContactRequest, opts ...interface{}) (out TransferCustomerExternalContactResponse, err error) + func (c *Client) TransferCustomerResigned(r *TransferCustomerResignedRequest, opts ...interface{}) (out TransferCustomerResignedResponse, err error) + func (c *Client) TransferGroupChat(r *TransferGroupChatRequest, opts ...interface{}) (out TransferGroupChatResponse, err error) + func (c *Client) TransferResultExternalContact(r *TransferResultExternalContactRequest, opts ...interface{}) (out TransferResultExternalContactResponse, err error) + func (c *Client) TransferResultResigned(r *TransferResultResignedRequest, opts ...interface{}) (out TransferResultResignedResponse, err error) + func (c *Client) UnionIDToExternalUserID(r *UnionIDToExternalUserIDRequest, opts ...interface{}) (out UnionIDToExternalUserIDResponse, err error) + func (c *Client) UpdateCalendar(r *UpdateCalendarRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) UpdateContactWay(r *UpdateContactWayRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) UpdateDepartment(r *UpdateDepartmentRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) UpdateSchedule(r *UpdateScheduleRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) UpdateTag(r *UpdateTagRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) UpdateUser(r *UpdateUserRequest, opts ...interface{}) (out GenericResponse, err error) + func (c *Client) With(conf Conf) (neo *Client) + type CloseTempChatRequest struct + ExternalUserID string + UserID string + type CommonPushEvent struct + AgentID int + AuthCorpID string + ChangeType string + CreateTime int64 + Event string + FromUsername string + InfoType string + MsgID int64 + MsgType string + ServiceCorpID string + SuiteID string + Timestamp int64 + ToUsername string + XMLName xml.Name + func UnmarshalCommonEvent(data []byte) (*CommonPushEvent, error) + func (e CommonPushEvent) GetEventType() string + func (e CommonPushEvent) GetMessageType() string + func (e CommonPushEvent) GetTimestamp() int64 + func (e CommonPushEvent) IsEvent() bool + func (e CommonPushEvent) IsMessage() bool + func (e CommonPushEvent) IsProviderEvent() bool + type Conclusions struct + Image struct{ ... } + Link struct{ ... } + MiniProgram struct{ ... } + Text struct{ ... } + type Conf struct + AgentID int + AuthCorpID string + AuthCorpPermanentCode string + CorpID string + CorpSecret string + ProviderSecret string + SuiteID string + SuiteSecret string + SuiteTicket string + TokenProvider TokenProvider + type ConvertToOpenIDRequest struct + UserID string + type ConvertToOpenIDResponse struct + OpenID string + type CreateAuthPushEvent struct + AuthCode string + InfoType string + SuiteID string + Timestamp int64 + XMLName xml.Name + func (CreateAuthPushEvent) EventType() string + type CreateDepartmentRequest struct + ID int + Name string + NameEn string + Order int + ParentID int + type CreateDepartmentResponse struct + ID int + type CreateTagRequest struct + TagID int + TagName string + type CreateTagResponse struct + TagID string + type CreateUserRequest struct + Address string + Alias string + AvatarMediaID string + Department []int + Email string + Enable int + ExtAttr ExtAttrs + ExternalPosition string + ExternalProfile ExternalProfile + Gender string + IsLeaderInDept []int + MainDepartment int + Mobile string + Name string + Nickname string + Order []int + Position string + Telephone string + ToInvite bool + UserID string + type DeleteCalendarPushEvent struct + CalID string + CreateTime int64 + Event string + FromUsername string + MsgType string + ToUsername string + XMLName xml.Name + func (DeleteCalendarPushEvent) EventType() string + func (DeleteCalendarPushEvent) MessageType() string + type DeleteCalendarRequest struct + CalenderID string + type DeleteContactWayRequest struct + ConfigID string + type DeleteCorpTagRequest struct + AgentID int + GroupID []string + TagID []string + type DeleteDepartmentRequest struct + ID string + type DeleteGroupWelcomeTemplateRequest struct + AgentID int + TemplateID string + type DeleteSchedulePushEvent struct + CalID string + CreateTime int64 + Event string + FromUsername string + MsgType string + ScheduleID string + ToUsername string + XMLName xml.Name + func (DeleteSchedulePushEvent) EventType() string + func (DeleteSchedulePushEvent) MessageType() string + type DeleteScheduleRequest struct + ScheduleID string + type DeleteTagRequest struct + TagID string + type DeleteTagUsersRequest struct + PartyList []int + TagID int + UserList []string + type DeleteTagUsersResponse struct + InvalidList string + InvalidParty string + type DeleteUserRequest struct + UserID string + type EditCorpTagRequest struct + AgentID int + ID string + Name string + Order int + type EditGroupWelcomeTemplateRequest struct + AgentID int + File EditGroupWelcomeTemplateRequestFile + Image EditGroupWelcomeTemplateRequestImage + Link EditGroupWelcomeTemplateRequestLink + MiniProgram EditGroupWelcomeTemplateRequestMiniProgram + TemplateID string + Text EditGroupWelcomeTemplateRequestText + Video EditGroupWelcomeTemplateRequestVideo + type EditGroupWelcomeTemplateRequestFile struct + MediaID string + type EditGroupWelcomeTemplateRequestImage struct + MediaID string + PicURL string + type EditGroupWelcomeTemplateRequestLink struct + Desc string + PicURL string + Title string + URL string + type EditGroupWelcomeTemplateRequestMiniProgram struct + AppID string + Page string + PicMediaID string + Title string + type EditGroupWelcomeTemplateRequestText struct + Content string + type EditGroupWelcomeTemplateRequestVideo struct + MediaID string + type EncryptPushEvent struct + AgentID string + Encrypt string + ToUserName string + XMLName xml.Name + type EnterAgentPushEvent struct + AgentID string + CreateTime int64 + Event string + EventKey string + FromUsername string + MsgType string + ToUsername string + XMLName xml.Name + func (EnterAgentPushEvent) EventType() string + func (EnterAgentPushEvent) MessageType() string + type EventChangeModel interface + EventChangeType func() string + type EventModel interface + EventType func() string + func NewEventModel(infoType string, changeType string) EventModel + type ExportDepartmentRequest struct + BlockSize int + EncodingAesKey string + type ExportDepartmentResponse struct + JobID string + type ExportGetResultRequest struct + JobID string + type ExportGetResultResponse struct + DataList ExportGetResultResponseDataList + Status string + type ExportGetResultResponseDataList struct + Md5 string + Size int + URL string + type ExportSimpleUserRequest struct + BlockSize int + EncodingAesKey string + type ExportSimpleUserResponse struct + JobID string + type ExportTagUserRequest struct + BlockSize int + EncodingAesKey string + TagID int + type ExportTagUserResponse struct + JobID string + type ExportUserRequest struct + BlockSize int + EncodingAesKey string + type ExportUserResponse struct + JobID string + type ExtAttr struct + MiniProgram struct{ ... } + Name string + Text struct{ ... } + Type int + Web struct{ ... } + type ExtAttrs struct + Attrs []ExtAttr + type ExternalContactAddWay int + const ExternalContactAddWayAssign + const ExternalContactAddWayChannel + const ExternalContactAddWayCustomService + const ExternalContactAddWayGroup + const ExternalContactAddWayInternalShare + const ExternalContactAddWayPhoneContact + const ExternalContactAddWayScanQR + const ExternalContactAddWaySearchEMail + const ExternalContactAddWaySearchPhone + const ExternalContactAddWayShareContactCard + const ExternalContactAddWayUnknown + const ExternalContactAddWayWeChatContact + const ExternalContactAddWayWeChatFriendRequest + type ExternalContactGroupChatStatusType int + const ExternalContactGroupChatStatusTypeNormal + const ExternalContactGroupChatStatusTypeResign + const ExternalContactGroupChatStatusTypeTransferred + const ExternalContactGroupChatStatusTypeTransferring + type ExternalContactProfileResponse struct + ExternalAttr []ExtAttr + type ExternalContactResponse struct + Avatar string + CorpFullName string + CorpName string + ExternalProfile ExternalProfile + ExternalUserID string + Gender int + Name string + Position string + Type int + UnionID string + type ExternalContactSourceType int + const ExternalContactSourceTypeGroupChat + const ExternalContactSourceTypeInternalShare + const ExternalContactSourceTypeManagerAssignment + const ExternalContactSourceTypeMobileContact + const ExternalContactSourceTypeProviderCustomerService + const ExternalContactSourceTypeScanQR + const ExternalContactSourceTypeSearchEmail + const ExternalContactSourceTypeSearchMobile + const ExternalContactSourceTypeShareContact + const ExternalContactSourceTypeUnknown + const ExternalContactSourceTypeWechatContact + const ExternalContactSourceTypeWechatFriendRequest + type ExternalContactType int + const ExternalContactTypeWechat + const ExternalContactTypeWecom + type ExternalProfile struct + ExternalAttr []ExtAttr + ExternalCorpName string + WechatChannels struct{ ... } + type GenericResponse struct + ErrorCode int + ErrorMessage string + func (r GenericResponse) AsError() error + func (r GenericResponse) Error() string + type GenericToken struct + Depends string + ExpiresAt int64 + ExpiresIn int + OwnerID string + Secret string + Type string + func (t *GenericToken) IsValid() bool + func (t *GenericToken) Refresh(exp *GenericToken, f func() (OpaqueToken, error)) (bool, error) + func (t *GenericToken) SetFromToken(token OpaqueToken) + func (t *GenericToken) ShouldRefresh(exp *GenericToken) bool + func (t GenericToken) GetAccessToken() string + func (t GenericToken) GetExpiresAt() int64 + func (t GenericToken) GetExpiresIn() int + type GetActiveStatRequest struct + Date string + type GetActiveStatResponse struct + ActiveCount int + type GetAdminListItem struct + AuthType int + OpenUserID string + UserID string + type GetAgentAllowParties struct + PartyIDs []int + type GetAgentAllowTags struct + TagIDs []int + type GetAgentAllowUserInfos struct + Users []struct{ ... } + type GetAgentRequest struct + AgentID int + type GetAgentResponse struct + AgentID int + AllowParties GetAgentAllowParties + AllowTags GetAgentAllowTags + AllowUserInfos GetAgentAllowUserInfos + Close int + Description string + HomeURL string + IsReportEnter int + Name string + RedirectDomain string + ReportLocationFlag int + SquareLogoURL string + type GetCalendarRequest struct + CalenderIDList []string + type GetCalendarResponse struct + CalendarList []GetCalendarResponseItem + type GetCalendarResponseItem struct + CalID string + Color string + Description string + Organizer string + Readonly int + Shares []GetCalendarResponseShares + Summary string + type GetCalendarResponseShares struct + Readonly int + UserID string + type GetContactWayRequest struct + ConfigID string + type GetContactWayResponse struct + ChatExpiresIn string + Conclusions string + ConfigID string + ExpiresIn string + IsTemp string + Party string + QrCode string + Remark string + Scene string + SkipVerify string + State string + Style string + Type string + UnionID string + User string + type GetCorpTagListRequest struct + GroupID []string + TagID []string + type GetCorpTagListResponse struct + TagGroup []GetCorpTagListResponseTagGroup + type GetCorpTagListResponseTagGroup struct + CreateTime int + Deleted bool + GroupID string + GroupName string + Order int + Tag []GetCorpTagListResponseTagGroupTag + type GetCorpTagListResponseTagGroupTag struct + CreateTime int + Deleted bool + ID string + Name string + Order int + type GetExternalContactRequest struct + Cursor string + ExternalUserID string + type GetExternalContactResponse struct + ExternalContact ExternalContactResponse + FollowUser []GetExternalContactResponseFollowUser + NextCursor string + type GetExternalContactResponseFollowUser struct + AddWay int + CreateTime int + Description string + OperUserID string + Remark string + RemarkCorpName string + RemarkMobiles []string + State string + Tags []GetExternalContactResponseFollowUserTags + UserID string + type GetExternalContactResponseFollowUserTags struct + GroupName string + TagID string + TagName string + Type int + type GetFollowUserListResponse struct + FollowUser []string + type GetGroupChatRequest struct + ChatID string + NeedName int + type GetGroupChatResponse struct + GroupChat GetGroupChatResponseGroupChat + type GetGroupChatResponseGroupChat struct + AdminList []GetGroupChatResponseGroupChatAdminList + ChatID string + CreateTime int + MemberList []GetGroupChatResponseGroupChatMemberList + Name string + Notice string + Owner string + type GetGroupChatResponseGroupChatAdminList struct + UserID string + type GetGroupChatResponseGroupChatMemberList struct + GroupNickname string + Invitor GetGroupChatResponseGroupChatMemberListInvitor + JoinScene int + JoinTime int + Name string + Type int + UnionID string + UserID string + type GetGroupChatResponseGroupChatMemberListInvitor struct + UserID string + type GetGroupMessageListV2Request struct + ChatType string + Creator string + Cursor string + EndTime int + FilterType int + Limit int + StartTime int + type GetGroupMessageListV2Response struct + GroupMessageList []GetGroupMessageListV2ResponseGroupMessageList + NextCursor string + type GetGroupMessageListV2ResponseGroupMessageList struct + Attachments []GetGroupMessageListV2ResponseGroupMessageListAttachments + CreateTime string + CreateType int + Creator string + MessageID string + Text GetGroupMessageListV2ResponseGroupMessageListText + type GetGroupMessageListV2ResponseGroupMessageListAttachments struct + File GetGroupMessageListV2ResponseGroupMessageListAttachmentsFile + Image GetGroupMessageListV2ResponseGroupMessageListAttachmentsImage + Link GetGroupMessageListV2ResponseGroupMessageListAttachmentsLink + MessageType string + MiniProgram GetGroupMessageListV2ResponseGroupMessageListAttachmentsMiniProgram + Video GetGroupMessageListV2ResponseGroupMessageListAttachmentsVideo + type GetGroupMessageListV2ResponseGroupMessageListAttachmentsFile struct + MediaID string + type GetGroupMessageListV2ResponseGroupMessageListAttachmentsImage struct + MediaID string + PicURL string + type GetGroupMessageListV2ResponseGroupMessageListAttachmentsLink struct + Desc string + PicURL string + Title string + URL string + type GetGroupMessageListV2ResponseGroupMessageListAttachmentsMiniProgram struct + AppID string + Page string + Title string + type GetGroupMessageListV2ResponseGroupMessageListAttachmentsVideo struct + MediaID string + type GetGroupMessageListV2ResponseGroupMessageListText struct + Content string + type GetGroupMessageSendResultRequest struct + Cursor string + Limit int + MessageID string + UserID string + type GetGroupMessageSendResultResponse struct + NextCursor string + SendList []GetGroupMessageSendResultResponseSendList + type GetGroupMessageSendResultResponseSendList struct + ChatID string + ExternalUserID string + SendTime int + Status int + UserID string + type GetGroupMessageTaskRequest struct + Cursor string + Limit int + MessageID string + type GetGroupMessageTaskResponse struct + NextCursor string + TaskList []GetGroupMessageTaskResponseTaskList + type GetGroupMessageTaskResponseTaskList struct + SendTime int + Status int + UserID string + type GetGroupWelcomeTemplateRequest struct + TemplateID string + type GetGroupWelcomeTemplateResponse struct + File GetGroupWelcomeTemplateResponseFile + Image GetGroupWelcomeTemplateResponseImage + Link GetGroupWelcomeTemplateResponseLink + MiniProgram GetGroupWelcomeTemplateResponseMiniProgram + Text GetGroupWelcomeTemplateResponseText + Video GetGroupWelcomeTemplateResponseVideo + type GetGroupWelcomeTemplateResponseFile struct + MediaID string + type GetGroupWelcomeTemplateResponseImage struct + PicURL string + type GetGroupWelcomeTemplateResponseLink struct + Desc string + PicURL string + Title string + URL string + type GetGroupWelcomeTemplateResponseMiniProgram struct + AppID string + Page string + PicMediaID string + Title string + type GetGroupWelcomeTemplateResponseText struct + Content string + type GetGroupWelcomeTemplateResponseVideo struct + MediaID string + type GetJoinQrcodeRequest struct + SizeType string + type GetJoinQrcodeResponse struct + JoinQrcode string + type GetMomentCommentsRequest struct + MomentID string + UserID string + type GetMomentCommentsResponse struct + CommentList []GetMomentCommentsResponseCommentList + LikeList []GetMomentCommentsResponseLikeList + type GetMomentCommentsResponseCommentList struct + CreateTime int + ExternalUserID string + UserID string + type GetMomentCommentsResponseLikeList struct + CreateTime int + ExternalUserID string + UserID string + type GetMomentCustomerListRequest struct + Cursor string + Limit int + MomentID string + UserID string + type GetMomentCustomerListResponse struct + CustomerList []GetMomentCustomerListResponseCustomerList + NextCursor string + type GetMomentCustomerListResponseCustomerList struct + ExternalUserID string + UserID string + type GetMomentListRequest struct + Creator string + Cursor string + EndTime int + FilterType int + Limit int + StartTime int + type GetMomentListResponse struct + MomentList []GetMomentListResponseMomentList + NextCursor string + type GetMomentListResponseMomentList struct + CreateTime string + CreateType int + Creator string + Image []GetMomentListResponseMomentListImage + Link GetMomentListResponseMomentListLink + Location GetMomentListResponseMomentListLocation + MomentID string + Text GetMomentListResponseMomentListText + Video GetMomentListResponseMomentListVideo + VisibleType int + type GetMomentListResponseMomentListImage struct + MediaID string + type GetMomentListResponseMomentListLink struct + Title string + URL string + type GetMomentListResponseMomentListLocation struct + Latitude string + Longitude string + Name string + type GetMomentListResponseMomentListText struct + Content string + type GetMomentListResponseMomentListVideo struct + MediaID string + ThumbMediaID string + type GetMomentSendResultRequest struct + Cursor string + Limit int + MomentID string + UserID string + type GetMomentSendResultResponse struct + CustomerList []GetMomentSendResultResponseCustomerList + NextCursor string + type GetMomentSendResultResponseCustomerList struct + ExternalUserID string + type GetMomentTaskRequest struct + Cursor string + Limit int + MomentID string + type GetMomentTaskResponse struct + NextCursor string + TaskList []GetMomentTaskResponseTaskList + type GetMomentTaskResponseTaskList struct + PublishStatus int + UserID string + type GetProviderTokenRequest struct + CorpID string + ProviderSecret string + type GetScheduleRequest struct + ScheduleIDList []string + type GetScheduleResponse struct + ScheduleList []GetScheduleResponseScheduleList + type GetScheduleResponseScheduleList struct + Attendees []GetScheduleResponseScheduleListAttendees + CalenderID string + Description string + EndTime int + Location string + Organizer string + Reminders GetScheduleResponseScheduleListReminders + ScheduleID string + StartTime int + Status int + Summary string + type GetScheduleResponseScheduleListAttendees struct + ResponseStatus int + UserID string + type GetScheduleResponseScheduleListReminders struct + ExcludeTimeList []GetScheduleResponseScheduleListRemindersExcludeTimeList + IsCustomRepeat int + IsRemind int + IsRepeat int + RemindBeforeEventSecs int + RemindTimeDiffs []int + RepeatDayOfMonth []int + RepeatDayOfWeek []int + RepeatInterval int + RepeatType int + RepeatUntil int + Timezone int + type GetScheduleResponseScheduleListRemindersExcludeTimeList struct + StartTime int + type GetTagRequest struct + TagID string + type GetTagResponse struct + PartyList []int + TagName string + UserList []GetTagResponseUserItem + type GetTagResponseUserItem struct + Name string + UserID string + type GetUnassignedListRequest struct + Cursor string + PageID string + PageSize string + type GetUnassignedListResponse struct + Info []GetUnassignedListResponseInfo + IsLast bool + NextCursor string + type GetUnassignedListResponseInfo struct + DismissionTime int + ExternalUserID string + HandoverUserID string + type GetUserBehaviorDataRequest struct + EndTime int + PartyID []int + StartTime int + UserID []string + type GetUserBehaviorDataResponse struct + BehaviorData []GetUserBehaviorDataResponseBehaviorData + type GetUserBehaviorDataResponseBehaviorData struct + AvgReplyTime int + ChatCount int + MessageCount int + NegativeFeedbackCount int + NewApplyCount int + NewContactCount int + ReplyPercentage float64 + StatTime int + type GetUserInfoRequest struct + AccessToken string + Code string + type GetUserInfoResponse struct + DeviceID string + ExternalUserID string + OpenID string + UserID string + type GetUserRequest struct + UserID string + type GetUserResponse struct + Address string + Alias string + Avatar string + Department []int + Email string + ExtAttr ExtAttrs + ExternalPosition string + ExternalProfile ExternalProfile + Gender json.Number + IsLeaderInDept []int + MainDepartment int + Mobile string + Name string + Nickname string + OpenUserID string + Order []int + Position string + QrCode string + Status int + Telephone string + ThumbAvatar string + UserID string + type GetWorkbenchTemplateRequest struct + AgentID int + type GetWorkbenchTemplateResponse struct + AccessToken string + AgentID string + Image WorkbenchTemplateItemImage + KeyData WorkbenchTemplateItemKeyData + List []WorkbenchTemplateItemList + Type string + UserID string + Webview []WorkbenchTemplateItemWebView + type GroupChatStatisticRequest struct + DayBeginTime int + DayEndTime int + Limit int + Offset int + OrderAsc int + OrderBy int + OwnerFilter GroupChatStatisticRequestOwnerFilter + type GroupChatStatisticRequestOwnerFilter struct + UserIDList []string + type GroupChatStatisticResponse struct + Items []GroupChatStatisticResponseItems + NextOffset int + Total int + type GroupChatStatisticResponseItems struct + Data GroupChatStatisticResponseItemsData + Owner string + type GroupChatStatisticResponseItemsData struct + ChatHasMessage int + ChatTotal int + MemberHasMessage int + MemberTotal int + MessageTotal int + MigrateTraineeChatCount int + NewChatCount int + NewMemberCount int + type IPListResponse struct + IPList []string + type JsSdkAgentConfig struct + AgentID int + CorpID string + Nonce string + Signature string + Timestamp int64 + func (o *JsSdkAgentConfig) Sign(ticket string, url string) + type JsSdkConfig struct + AppID string + Nonce string + Signature string + Timestamp int64 + func (o *JsSdkConfig) Sign(ticket string, url string) + type LinkGetPermListResponse struct + DepartmentIds []string + UserIds []string + type LinkGetUserRequest struct + UserID string + type LinkGetUserResponse struct + UserInfo LinkGetUserResponseUserInfo + type LinkGetUserResponseUserInfo struct + CorpID string + Department []string + Email string + ExtAttr ExtAttrs + Mobile string + Name string + Position string + Telephone string + UserID string + type LinkListDepartmentRequest struct + DepartmentID string + type LinkListDepartmentResponse struct + DepartmentList []LinkListDepartmentResponseItem + type LinkListDepartmentResponseItem struct + DepartmentID string + DepartmentName string + Order int + ParentID string + type LinkListUserRequest struct + DepartmentID string + FetchChild bool + type LinkListUserResponse struct + UserList []LinkListUserResponseItem + type LinkListUserResponseItem struct + CorpID string + Department []string + Email string + ExtAttr ExtAttrs + Mobile string + Name string + Position string + Telephone string + UserID string + type LinkSimpleListUserRequest struct + DepartmentID string + FetchChild bool + type LinkSimpleListUserResponse struct + UserList []LinkSimpleListUserResponseItem + type LinkSimpleListUserResponseItem struct + CorpID string + Department []string + Name string + UserID string + type ListAgentResponse struct + AgentList []ListAgentResponseItem + type ListAgentResponseItem struct + AgentID int + Name string + SquareLogoURL string + type ListDepartmentRequest struct + ID int + type ListDepartmentResponse struct + Department []ListDepartmentResponseItem + type ListDepartmentResponseItem struct + ID int + Name string + NameEn string + Order int + ParentID int + type ListExternalContactRequest struct + UserID string + type ListExternalContactResponse struct + ExternalUserID []string + type ListGroupChatRequest struct + Cursor string + Limit int + OwnerFilter ListGroupChatRequestOwnerFilter + StatusFilter int + type ListGroupChatRequestOwnerFilter struct + UserIDList []string + type ListGroupChatResponse struct + GroupChatList []ListGroupChatResponseGroupChatList + NextCursor string + type ListGroupChatResponseGroupChatList struct + ChatID string + Status int + type ListTagResponse struct + TagList []ListTagResponseItem + type ListTagResponseItem struct + TagID int + TagName string + type ListUserRequest struct + DepartmentID string + FetchChild string + type ListUserResponse struct + UserList []ListUserResponseItem + type ListUserResponseItem struct + Address string + Alias string + Avatar string + BizMail string + Department []int + Email string + EnglishName string + ExtAttr ExtAttrs + ExternalPosition string + ExternalProfile ExternalProfile + Gender string + HideMobile int + IsLeaderInDept []int + MainDepartment int + Mobile string + Name string + OpenUserID string + Order []int + Position string + QrCode string + Status int + Telephone string + ThumbAvatar string + UserID string + type LocationPushEvent struct + AgentID string + AppType string + CreateTime int64 + Event string + FromUsername string + Latitude string + Longitude string + MsgType string + Precision string + ToUsername string + XMLName xml.Name + func (LocationPushEvent) EventType() string + func (LocationPushEvent) MessageType() string + type MarkTagExternalContactRequest struct + AddTag []string + ExternalUserID string + RemoveTag []string + UserID string + type MessageAuditCheckRoomAgreeRequest struct + RoomID string + type MessageAuditCheckRoomAgreeResponse struct + AgreeInfo []struct{ ... } + type MessageAuditCheckSingleAgreeRequest struct + Info []struct{ ... } + type MessageAuditCheckSingleAgreeResponse struct + AgreeInfo []struct{ ... } + type MessageAuditGetGroupChatMember struct + JoinTime int64 + MemberID string + type MessageAuditGetGroupChatRequest struct + RoomID string + type MessageAuditGetGroupChatResponse struct + Creator string + Members []MessageAuditGetGroupChatMember + Notice string + RoomCreateTime int + RoomName string + type MessageAuditGetPermitUserListRequest struct + Type int + type MessageAuditGetPermitUserListResponse struct + Ids []string + type MessageAuditNotifyPushEvent struct + AgentID int + CreateTime string + Event string + FromUserName string + MsgType string + ToUserName string + XMLName xml.Name + func (MessageAuditNotifyPushEvent) EventType() string + type MessageContent interface + MessageType func() string + type MessageImagePushEvent struct + AgentID string + CreateTime int64 + FromUsername string + MediaID string + MsgID string + MsgType string + PicURL string + ToUsername string + XMLName xml.Name + func (MessageImagePushEvent) MessageType() string + func (e MessageImagePushEvent) EventType() string + type MessageLinkPushEvent struct + AgentID string + CreateTime int64 + Description string + FromUsername string + MsgID string + MsgType string + PicURL string + Title string + ToUsername string + URL string + XMLName xml.Name + func (MessageLinkPushEvent) MessageType() string + func (e MessageLinkPushEvent) EventType() string + type MessageLocationPushEvent struct + AgentID string + AppType string + CreateTime int64 + FromUsername string + Label string + LocationX string + LocationY string + MsgID string + MsgType string + Scale string + ToUsername string + XMLName xml.Name + func (MessageLocationPushEvent) MessageType() string + func (e MessageLocationPushEvent) EventType() string + type MessageModel interface + MessageType func() string + type MessageTextPushEvent struct + AgentID string + Content string + CreateTime int64 + FromUsername string + MsgID string + MsgType string + ToUsername string + XMLName xml.Name + func (MessageTextPushEvent) MessageType() string + func (e MessageTextPushEvent) EventType() string + type MessageVideoPushEvent struct + AgentID string + CreateTime int64 + FromUsername string + MediaID string + MsgID string + MsgType string + ThumbMediaID string + ToUsername string + XMLName xml.Name + func (MessageVideoPushEvent) MessageType() string + func (e MessageVideoPushEvent) EventType() string + type MessageVoicePushEvent struct + AgentID string + CreateTime int64 + Format string + FromUsername string + MediaID string + MsgID string + MsgType string + ToUsername string + XMLName xml.Name + func (MessageVoicePushEvent) MessageType() string + func (e MessageVoicePushEvent) EventType() string + type ModifyCalendarPushEvent struct + CalID string + CreateTime int64 + Event string + FromUsername string + MsgType string + ToUsername string + XMLName xml.Name + func (ModifyCalendarPushEvent) EventType() string + func (ModifyCalendarPushEvent) MessageType() string + type ModifySchedulePushEvent struct + CalID string + CreateTime int64 + Event string + FromUsername string + MsgType string + ScheduleID string + ToUsername string + XMLName xml.Name + func (ModifySchedulePushEvent) EventType() string + func (ModifySchedulePushEvent) MessageType() string + type OpaqueToken interface + GetAccessToken func() string + GetExpiresIn func() int + type OpenApprovalChangePushEvent struct + AgentID string + ApplyTime string + ApplyUserID string + ApplyUserImage string + ApplyUserName string + ApplyUserParty string + ApprovalInfo string + ApprovalNode string + ApprovalNodes string + Approverstep string + CreateTime int64 + Event string + FromUsername string + Item string + ItemImage string + ItemName string + ItemOpTime string + ItemSpeech string + ItemStatus string + ItemUserID string + Items string + MsgType string + NodeAttr string + NodeStatus string + NodeType string + NotifyNode string + NotifyNodes string + OpenSpName string + OpenSpStatus string + OpenTemplateID string + ThirdNo string + ToUsername string + XMLName xml.Name + func (OpenApprovalChangePushEvent) EventType() string + func (OpenApprovalChangePushEvent) MessageType() string + type PreAuthCodeResponse struct + ExpireAt int64 + ExpiresIn int + PreAuthCode string + func (r PreAuthCodeResponse) GetAccessToken() string + func (r PreAuthCodeResponse) GetExpiresIn() int + type ProviderBatchGetResult struct + ContactIDTranslate struct{ ... } + type ProviderBatchGetResultRequest struct + JobID string + ProviderAccessToken string + type ProviderBatchGetResultResponse struct + Result ProviderBatchGetResult + Status int + Type string + type ProviderBatchJobResultPushEvent struct + AuthCorpID string + BatchJob struct{ ... } + InfoType string + ServiceCorpID string + TimeStamp string + XMLName xml.Name + func (ProviderBatchJobResultPushEvent) EventType() string + type ProviderChangeContactCreatePartyPushEvent struct + AuthCorpID string + ChangeType string + ID string + InfoType string + Name string + Order string + ParentID string + SuiteID string + Timestamp int64 + XMLName xml.Name + func (ProviderChangeContactCreatePartyPushEvent) EventChangeType() string + func (ProviderChangeContactCreatePartyPushEvent) EventType() string + type ProviderGetAdminListRequest struct + AgentID int + AuthCorpID string + type ProviderGetAdminListResponse struct + Admin []GetAdminListItem + type ProviderGetAuthInfoRequest struct + AuthCorpID string + PermanentCode string + type ProviderGetAuthInfoResponse struct + AuthCorpInfo ProviderGetAuthInfoResponseAuthCorpInfo + AuthInfo ProviderGetAuthInfoResponseAuthInfo + DealerCorpInfo ProviderGetAuthInfoResponseDealerCorpInfo + type ProviderGetAuthInfoResponseAuthCorpInfo struct + CorpFullName string + CorpID string + CorpIndustry string + CorpName string + CorpScale string + CorpSquareLogoURL string + CorpSubIndustry string + CorpType string + CorpUserMax int + CorpWxQrCode string + SubjectType int + VerifiedEndTime int + type ProviderGetAuthInfoResponseAuthInfo struct + Agent []ProviderGetAuthInfoResponseAuthInfoAgent + type ProviderGetAuthInfoResponseAuthInfoAgent struct + AgentID int + AppID int + AuthMode int + IsCustomizedApp bool + Name string + Privilege ProviderGetAuthInfoResponseAuthInfoAgentPrivilege + RoundLogoURL string + SharedFrom ProviderGetAuthInfoResponseAuthInfoAgentSharedFrom + SquareLogoURL string + type ProviderGetAuthInfoResponseAuthInfoAgentPrivilege struct + AllowParty []int + AllowTag []int + AllowUser []string + ExtraParty []int + ExtraTag []int + ExtraUser []string + Level int + type ProviderGetAuthInfoResponseAuthInfoAgentSharedFrom struct + CorpID string + type ProviderGetAuthInfoResponseDealerCorpInfo struct + CorpID string + CorpName string + type ProviderGetCorpTokenRequest struct + AuthCorpID string + PermanentCode string + type ProviderGetCorpTokenResponse struct + AccessToken string + ExpiresIn int + func (r ProviderGetCorpTokenResponse) GetAccessToken() string + func (r ProviderGetCorpTokenResponse) GetExpiresIn() int + type ProviderGetLoginInfoRequest struct + AuthCode string + type ProviderGetLoginInfoResponse struct + Agent []struct{ ... } + AuthInfo struct{ ... } + CorpInfo struct{ ... } + UserInfo struct{ ... } + UserType int + type ProviderGetPermanentCodeRequest struct + AuthCode string + type ProviderGetPermanentCodeResponse struct + AccessToken string + AuthCorpInfo ProviderGetPermanentCodeResponseAuthCorpInfo + AuthInfo ProviderGetPermanentCodeResponseAuthInfo + AuthUserInfo ProviderGetPermanentCodeResponseAuthUserInfo + DealerCorpInfo ProviderGetPermanentCodeResponseDealerCorpInfo + ExpiresIn int + PermanentCode string + RegisterCodeInfo ProviderGetPermanentCodeResponseRegisterCodeInfo + type ProviderGetPermanentCodeResponseAuthCorpInfo struct + CorpAgentMax int + CorpFullName string + CorpID string + CorpIndustry string + CorpName string + CorpScale string + CorpSquareLogoURL string + CorpSubIndustry string + CorpType string + CorpUserMax int + CorpWxQrCode string + SubjectType int + VerifiedEndTime int + type ProviderGetPermanentCodeResponseAuthInfo struct + Agent []ProviderGetPermanentCodeResponseAuthInfoAgent + type ProviderGetPermanentCodeResponseAuthInfoAgent struct + AgentID int + AppID int + AuthMode int + IsCustomizedApp bool + Name string + Privilege ProviderGetPermanentCodeResponseAuthInfoAgentPrivilege + RoundLogoURL string + SharedFrom ProviderGetPermanentCodeResponseAuthInfoAgentSharedFrom + SquareLogoURL string + type ProviderGetPermanentCodeResponseAuthInfoAgentPrivilege struct + AllowParty []int + AllowTag []int + AllowUser []string + ExtraParty []int + ExtraTag []int + ExtraUser []string + Level int + type ProviderGetPermanentCodeResponseAuthInfoAgentSharedFrom struct + CorpID string + type ProviderGetPermanentCodeResponseAuthUserInfo struct + Avatar string + Name string + OpenUserID string + UserID string + type ProviderGetPermanentCodeResponseDealerCorpInfo struct + CorpID string + CorpName string + type ProviderGetPermanentCodeResponseRegisterCodeInfo struct + RegisterCode string + State string + TemplateID string + type ProviderGetPreAuthCodeRequest struct + SuiteAccessToken string + type ProviderGetSuiteTokenRequest struct + SuiteID string + SuiteSecret string + SuiteTicket string + type ProviderIDTranslateContactRequest struct + AuthCorpID string + MediaIDList []string + OutputFileFormat string + OutputFileName string + ProviderAccessToken string + type ProviderIDTranslateContactResponse struct + JobID string + type ProviderSetSessionInfoRequest struct + PreAuthCode string + SessionInfo SetSessionInfo + SuiteAccessToken string + type ProviderSortContactRequest struct + AuthCorpID string + ProviderAccessToken string + SortType string + UserIDList string + type ProviderSortContactResponse struct + UserIDList string + type ProviderTokenResponse struct + ExpiresAt int64 + ExpiresIn int + ProviderAccessToken string + func (r ProviderTokenResponse) GetAccessToken() string + func (r ProviderTokenResponse) GetExpiresIn() int + type ProviderUploadMediaRequest struct + CreatedAt string + MediaID string + Type string + type ProviderUploadMediaResponse struct + CreatedAt string + MediaID string + Type string + type PushRequestParams struct + EchoString string + MessageSignature string + Nonce string + Timestamp string + type RemarkExternalContactRequest struct + Description string + ExternalUserID string + Remark string + RemarkCompany string + RemarkMobiles []string + RemarkPicMediaID string + UserID string + type ScheduleGetByCalendarRequest struct + CalenderID string + Limit int + Offset int + type ScheduleGetByCalendarResponse struct + ScheduleList []ScheduleGetByCalendarResponseScheduleList + type ScheduleGetByCalendarResponseScheduleList struct + Attendees []ScheduleGetByCalendarResponseScheduleListAttendees + CalenderID string + Description string + EndTime int + Location string + Organizer string + Reminders ScheduleGetByCalendarResponseScheduleListReminders + ScheduleID string + Sequence int + StartTime int + Status int + Summary string + type ScheduleGetByCalendarResponseScheduleListAttendees struct + ResponseStatus int + UserID string + type ScheduleGetByCalendarResponseScheduleListReminders struct + IsCustomRepeat int + IsRemind int + IsRepeat int + RemindBeforeEventSecs int + RepeatDayOfMonth []int + RepeatDayOfWeek []int + RepeatInterval int + RepeatType int + RepeatUntil int + Timezone int + type SendFileContent struct + MediaID string + func (SendFileContent) MessageType() string + type SendImageContent struct + Base64 string + MD5 string + func (SendImageContent) MessageType() string + type SendMarkdownContent struct + Content string + func (SendMarkdownContent) MessageType() string + type SendNewsArticle struct + Description string + PictureURL string + Title string + URL string + type SendNewsContent struct + Articles []SendNewsArticle + func (SendNewsContent) MessageType() string + type SendPayload struct + File *SendFileContent + Image *SendImageContent + Markdown *SendMarkdownContent + MessageType string + News *SendNewsContent + TemplateCard *SendTemplateCardContent + Text *SendTextContent + func (p *SendPayload) SetContent(c MessageContent) (err error) + type SendTemplateCardContent struct + CardAction struct{ ... } + CardType string + EmphasisContent struct{ ... } + HorizontalContentList []struct{ ... } + JumpList []struct{ ... } + MainTitle struct{ ... } + Source struct{ ... } + SubTitleText string + func (SendTemplateCardContent) MessageType() string + type SendTextContent struct + Content string + MentionedList []string + MentionedMobileList []string + func (SendTextContent) MessageType() string + type SendWelcomeMessageRequest struct + Attachments []SendWelcomeMessageRequestAttachments + File SendWelcomeMessageRequestFile + Image SendWelcomeMessageRequestImage + Link SendWelcomeMessageRequestLink + MiniProgram SendWelcomeMessageRequestMiniProgram + Text SendWelcomeMessageRequestText + Video SendWelcomeMessageRequestVideo + WelcomeCode string + type SendWelcomeMessageRequestAttachments struct + MessageType string + type SendWelcomeMessageRequestFile struct + MediaID string + type SendWelcomeMessageRequestImage struct + MediaID string + PicURL string + type SendWelcomeMessageRequestLink struct + Desc string + PicURL string + Title string + URL string + type SendWelcomeMessageRequestMiniProgram struct + AppID string + Page string + PicMediaID string + Title string + type SendWelcomeMessageRequestText struct + Content string + type SendWelcomeMessageRequestVideo struct + MediaID string + type SetSessionInfo struct + AppID []int + AuthType int + type SetWorkbenchDataRequest struct + AgentID int + Image WorkbenchTemplateItemImage + KeyData WorkbenchTemplateItemKeyData + List []WorkbenchTemplateItemList + Type string + UserID string + Webview []WorkbenchTemplateItemWebView + type SetWorkbenchDataResponse struct + AccessToken string + AgentID string + Image string + KeyData string + List string + Type string + UserID string + Webview string + type SetWorkbenchTemplateRequest struct + AgentID int + Image WorkbenchTemplateItemImage + KeyData WorkbenchTemplateItemKeyData + List []WorkbenchTemplateItemList + ReplaceUserData bool + Type string + Webview []WorkbenchTemplateItemWebView + type SetWorkbenchTemplateResponse struct + AccessToken string + AgentID string + type ShareAgentChangePushEvent struct + AgentID string + CreateTime int64 + Event string + FromUsername string + MsgType string + ToUsername string + XMLName xml.Name + func (ShareAgentChangePushEvent) EventType() string + func (ShareAgentChangePushEvent) MessageType() string + type SimpleListUserRequest struct + DepartmentID string + FetchChild string + type SimpleListUserResponse struct + UserList []SimpleListUserResponseItem + type SimpleListUserResponseItem struct + Department []int + Name string + OpenUserID string + UserID string + type StatisticGroupByDayRequest struct + DayBeginTime int + DayEndTime int + OwnerFilter StatisticGroupByDayRequestOwnerFilter + type StatisticGroupByDayRequestOwnerFilter struct + UserIDList []string + type StatisticGroupByDayResponse struct + Items []StatisticGroupByDayResponseItems + type StatisticGroupByDayResponseItems struct + Data StatisticGroupByDayResponseItemsData + StatTime int + type StatisticGroupByDayResponseItemsData struct + ChatHasMessage int + ChatTotal int + MemberHasMessage int + MemberTotal int + MessageTotal int + MigrateTraineeChatCount int + NewChatCount int + NewMemberCount int + type SubscribePushEvent struct + AgentID string + CreateTime int64 + Event string + EventKey string + FromUsername string + MsgType string + ToUsername string + XMLName xml.Name + func (SubscribePushEvent) EventType() string + func (SubscribePushEvent) MessageType() string + type SuiteBatchJobResultPushEvent struct + BatchJob struct{ ... } + CreateTime int64 + InfoType string + SuiteID string + TimeStamp int64 + XMLName xml.Name + func (SuiteBatchJobResultPushEvent) EventType() string + type SuiteGetUserDetailRequest struct + SuiteAccessToken string + UserTicket string + type SuiteGetUserDetailResponse struct + Avatar string + CorpID string + Gender string + Name string + QrCode string + UserID string + type SuiteGetUserInfoRequest struct + Code string + SuiteAccessToken string + type SuiteGetUserInfoResponse struct + CorpID string + DeviceID string + ExpiresAt int64 + ExpiresIn int + OpenID string + OpenUserID string + UserID string + UserTicket string + type SuiteInstalledRequestParams struct + AuthCode string + ExpiresIn int + State string + func (r SuiteInstalledRequestParams) IsValid() bool + type SuiteTicketPushEvent struct + InfoType string + SuiteID string + SuiteTicket string + Timestamp int64 + XMLName xml.Name + func (SuiteTicketPushEvent) EventType() string + type SuiteTokenResponse struct + ExpireAt int64 + ExpiresIn int + SuiteAccessToken string + func (r SuiteTokenResponse) GetAccessToken() string + func (r SuiteTokenResponse) GetExpiresIn() int + type SwitchWorkbenchModePushEvent struct + AgentID int + CreateTime int64 + Event string + FromUsername string + Mode int + MsgType string + ToUsername string + XMLName xml.Name + func (SwitchWorkbenchModePushEvent) EventType() string + type SyncMapStore struct + OnChange func(s *SyncMapStore) + func (s *SyncMapStore) Dump() []byte + func (s *SyncMapStore) Get(out *GenericToken) (found bool, err error) + func (s *SyncMapStore) Load(out *GenericToken, ...) (changed bool, err error) + func (s *SyncMapStore) Restore(data []byte) error + func (s *SyncMapStore) Set(in *GenericToken) (err error) + type TemplateCardEventPushEvent struct + AgentID string + CardType string + CreateTime int64 + Event string + EventKey string + FromUsername string + MsgType string + OptionIds string + QuestionKey string + ResponseCode string + TaskID string + ToUsername string + XMLName xml.Name + func (TemplateCardEventPushEvent) EventType() string + func (TemplateCardEventPushEvent) MessageType() string + type TicketResponse struct + ExpiresAt int64 + ExpiresIn int + Ticket string + func (r TicketResponse) GetAccessToken() string + func (r TicketResponse) GetExpiresIn() int + type Token struct + AccessToken string + Expiry time.Time + RefreshToken string + TokenKey string + TokenType string + func (t *Token) Extra(key string) interface{} + func (t *Token) SetAuthHeader(r *http.Request) + func (t *Token) Type() string + func (t *Token) Valid() bool + func (t *Token) WithExtra(extra interface{}) *Token + type TokenCache struct + Store TokenLoadStore + func (tc *TokenCache) Refresh(exp *GenericToken, f func() (OpaqueToken, error)) (string, error) + type TokenLoadStore interface + Load func(out *GenericToken, ...) (changed bool, err error) + type TokenProvider interface + Refresh func(exp *GenericToken, f func() (OpaqueToken, error)) (string, error) + type TokenResponse struct + AccessToken string + ExpiresAt int64 + ExpiresIn int + func (r TokenResponse) GetAccessToken() string + func (r TokenResponse) GetExpiresIn() int + type TokenSource interface + Token func(ctx context.Context) (*Token, error) + func ReuseTokenSource(t *Token, src TokenSource) TokenSource + type TokenSourceFunc func(context.Context) (*Token, error) + func (f TokenSourceFunc) Token(ctx context.Context) (token *Token, err error) + type TokenType = string + const TokenTypeAccessToken + const TokenTypeAgentTicket + const TokenTypeAuthCorpAccessToken + const TokenTypeAuthCorpPermanentCode + const TokenTypeJsAPITicket + const TokenTypeProviderAccessToken + const TokenTypeSuiteAccessToken + const TokenTypeSuitePreAuthCode + const TokenTypeSuiteTicket + type TransferCustomerExternalContactRequest struct + ExternalUserID []string + HandoverUserID string + TakeoverUserID string + TransferSuccessMessage string + type TransferCustomerExternalContactResponse struct + Customer []TransferCustomerExternalContactResponseCustomer + type TransferCustomerExternalContactResponseCustomer struct + ErrorCode int + ExternalUserID string + type TransferCustomerResignedRequest struct + ExternalUserID []string + HandoverUserID string + TakeoverUserID string + type TransferCustomerResignedResponse struct + Customer []TransferCustomerResignedResponseCustomer + type TransferCustomerResignedResponseCustomer struct + ErrorCode int + ExternalUserID string + type TransferGroupChatRequest struct + ChatIDList []string + NewOwner string + type TransferGroupChatResponse struct + FailedChatList []TransferGroupChatResponseFailedChatList + type TransferGroupChatResponseFailedChatList struct + ChatID string + ErrorCode int + ErrorMessage string + type TransferResultExternalContactRequest struct + Cursor string + HandoverUserID string + TakeoverUserID string + type TransferResultExternalContactResponse struct + Customer []TransferResultExternalContactResponseCustomer + NextCursor string + type TransferResultExternalContactResponseCustomer struct + ExternalUserID string + Status int + TakeoverTime int + type TransferResultResignedRequest struct + Cursor string + HandoverUserID string + TakeoverUserID string + type TransferResultResignedResponse struct + Customer []TransferResultResignedResponseCustomer + NextCursor string + type TransferResultResignedResponseCustomer struct + ExternalUserID string + Status int + TakeoverTime int + type UnionIDToExternalUserIDRequest struct + UnionID string + type UnionIDToExternalUserIDResponse struct + ExternalUserID string + type UnsubscribePushEvent SubscribePushEvent + func (UnsubscribePushEvent) EventType() string + type UpdateCalendar struct + CalID string + Color string + Description string + Readonly int + Shares []UpdateCalendarRequestShares + Summary string + type UpdateCalendarRequest struct + Calendar UpdateCalendar + type UpdateCalendarRequestShares struct + Readonly int + UserID string + type UpdateContactWayRequest struct + ChatExpiresIn int + Conclusions *Conclusions + ConfigID string + ExpiresIn int + Party []int + Remark string + SkipVerify bool + State string + Style int + UnionID string + User []string + type UpdateDepartmentRequest struct + ID int + Name string + NameEn string + Order int + ParentID int + type UpdateScheduleRequest struct + Schedule UpdateScheduleRequestSchedule + type UpdateScheduleRequestSchedule struct + Attendees []UpdateScheduleRequestScheduleAttendees + Description string + EndTime int + Location string + Organizer string + Reminders UpdateScheduleRequestScheduleReminders + ScheduleID string + StartTime int + Summary string + type UpdateScheduleRequestScheduleAttendees struct + UserID string + type UpdateScheduleRequestScheduleReminders struct + IsCustomRepeat int + IsRemind int + IsRepeat int + RemindBeforeEventSecs int + RepeatDayOfMonth []int + RepeatDayOfWeek []int + RepeatInterval int + RepeatType int + RepeatUntil int + Timezone int + type UpdateTagRequest struct + TagID int + TagName string + type UpdateUserRequest struct + Address string + Alias string + AvatarMediaID string + Department []int + Email string + Enable int + ExtAttr ExtAttrs + ExternalPosition string + ExternalProfile ExternalProfile + Gender string + IsLeaderInDept []int + MainDepartment int + Mobile string + Name string + Nickname string + Order []int + Position string + Telephone string + UserID string + type UserGenderType int + const UserGenderTypeFemale + const UserGenderTypeMale + const UserGenderTypeUnknown + func (v *UserGenderType) UnmarshalJSON(data []byte) error + type UserStatusType int + const UserStatusTypeDisabled + const UserStatusTypeEnabled + const UserStatusTypeExit + const UserStatusTypeForbid + type WebhookSendRequest struct + Content MessageContent + Context context.Context + Key string + Request req.Request + type WebhookSendResponse struct + type WebhookUploadMediaRequest struct + Context context.Context + File fs.File + Key string + Request req.Request + type WebhookUploadMediaResponse struct + CreatedAt json.Number + MediaID string + Type string + func WebhookUploadMedia(r *WebhookUploadMediaRequest) (out WebhookUploadMediaResponse, err error) + func (v WebhookUploadMediaResponse) CreatedAtTime() time.Time + type WorkbenchTemplateItemImage struct + JumpURL string + PagePath string + URL string + type WorkbenchTemplateItemKeyData struct + Items []WorkbenchTemplateItemKeyDataItem + type WorkbenchTemplateItemKeyDataItem struct + Data string + JumpURL string + Key string + PagePath string + type WorkbenchTemplateItemList struct + JumpURL string + PagePath string + Title string + type WorkbenchTemplateItemWebView struct + JumpURL string + PagePath string + URL string