Versions in this module Expand all Collapse all v1 v1.0.0 Jul 27, 2023 Changes in this version + type BatchInviteOptions struct + Party []int + Tag []int + User []string + type BatchInviteSchema struct + Invalidparty []int + Invalidtag []int + Invaliduser []string + type BatchJob struct + ErrCode int + ErrMsg string + JobId string + JobType string + type BatchJobResultCallbackMessage struct + BatchJob BatchJob + type CallbackMessage struct + ChangeType string + CreateTime int + Event string + FromUserName string + MsgType string + ToUserName string + type CallbackMessageLog struct + ExternalUserID string + UserID string + type Client struct + func NewClient(cfg *config.Config) (client *Client, err error) + func (r *Client) BatchInvite(options BatchInviteOptions) (info BatchInviteSchema, err error) + func (r *Client) CorpGetJoinQrcode(options CorpGetJoinQrcodeOptions) (info CorpGetJoinQrcodeSchema, err error) + func (r *Client) CreateTag(options CreateTagOption) (info TagCommonError, err error) + func (r *Client) DepartmentCreate(options DepartmentCreateOptions) (info DepartmentCreateSchema, err error) + func (r *Client) DepartmentDelete(options DepartmentDeleteOptions) (info util.CommonError, err error) + func (r *Client) DepartmentList(options DepartmentListOptions) (info DepartmentListSchema, err error) + func (r *Client) DepartmentUpdate(options DepartmentUpdateOptions) (info util.CommonError, err error) + func (r *Client) EnableUser(optionJson string) (info util.CommonError, err error) + func (r *Client) GetCallbackMessage(signatureOptions SignatureOptions, encryptedMsg []byte) (rawData []byte, msg CallbackMessage, err error) + func (r *Client) GetUserSyncJob(options UserSyncJobOptions) (info UserSyncJobSchema, err error) + func (r *Client) UserAuthsucc(options UserAuthsuccOptions) (info util.CommonError, err error) + func (r *Client) UserBatchdelete(options UserBatchdeleteOptions) (info util.CommonError, err error) + func (r *Client) UserConvertToOpenid(options UserConvertToOpenidOptions) (info UserConvertToOpenidSchema, err error) + func (r *Client) UserConvertToUserid(options UserConvertToUseridOptions) (info UserConvertToUseridSchema, err error) + func (r *Client) UserCreate(options UserCreateOptions) (info util.CommonError, err error) + func (r *Client) UserDelete(options UserDeleteOptions) (info util.CommonError, err error) + func (r *Client) UserGet(options UserGetOptions) (info UserGetSchema, err error) + func (r *Client) UserGetActiveStat(options UserGetActiveStatOptions) (info UserGetActiveStatSchema, err error) + func (r *Client) UserList(options UserListOptions) (info UserListSchema, err error) + func (r *Client) UserListId(options UserListIdOptions) (info UserListIdSchema, err error) + func (r *Client) UserSimplelist(options UserSimplelistOptions) (info UserSimplelistSchema, err error) + func (r *Client) UserSync(options UserSyncOptions) (info UserSyncSchema, err error) + func (r *Client) UserUpdate(options UserUpdateOptions) (info util.CommonError, err error) + func (r *Client) VerifyURL(options SignatureOptions) (string, error) + type CommonError struct + ErrCode int64 + ErrMsg string + type CorpGetJoinQrcodeOptions struct + SizeType int + type CorpGetJoinQrcodeSchema struct + JoinQrcode int + type CreatePartyCallbackMessage struct + Id int + Name string + Order int + ParentId int + type CreateTagOption struct + TagId int + TagName string + type CreateUserCallbackMessage struct + Address string + Alias string + Avatar string + Department string + Email string + ExtAttr map[string]interface{} + Gender string + IsLeaderInDept string + MainDepartment int + Mobile string + Name string + NewUserID string + Position string + Status int + Telephone string + UserID string + type DeletePartyCallbackMessage struct + Id int + type DeleteUserCallbackMessage struct + UserID string + type DepartmentCreateOptions struct + Id int + Name string + NameEn string + Order int + Parentid int + type DepartmentCreateSchema struct + Id int + type DepartmentDeleteOptions struct + Id string + type DepartmentInfoSchema struct + Id int + Name string + NameEn string + Order int + Parentid int + type DepartmentListOptions struct + Id string + type DepartmentListSchema struct + DepartmentList []DepartmentInfoSchema + type DepartmentUpdateOptions struct + Id int + Name string + NameEn string + Order int + Parentid int + type EnableUserOptions struct + Enable int + Userid string + type Error string + const SDKAccessTokenExpired + const SDKAccessTokenInvalid + const SDKAccessTokenMissing + const SDKApiContactMoreThanLimit + const SDKApiForbidden + const SDKApiFreqOutOfLimit + const SDKApiNotOpen + const SDKCacheUnavailable + const SDKContactWayMoreThanLimit + const SDKDecryptMSGFailed + const SDKInitFailed + const SDKInvalidCorpID + const SDKInvalidCredential + const SDKInvalidOpenKFID + const SDKNotUseInWeCom + const SDKOpenKFIDNotExist + const SDKUnknownError + const SDKValidateSignatureFailed + const SDKWeWorkAlready + func NewSDKErr(code int64, msgList ...string) Error + func (r Error) Error() string + type SignatureOptions struct + EchoStr string + Encrypt string + Nonce string + Signature string + TimeStamp string + type TagCommonError struct + CommonError CommonError + TagId int + type UpdatePartyCallbackMessage struct + Id int + Name string + ParentId int + type UpdateTagCallbackMessage struct + AddPartyItems string + AddUserItems string + DelPartyItems string + DelUserItems string + TagId int + type UpdateUserCallbackMessage struct + NewUserID string + type UserAuthsuccOptions struct + Userid string + type UserBatchdeleteOptions struct + Useridlist []string + type UserConvertToOpenidOptions struct + Userid string + type UserConvertToOpenidSchema struct + Openid string + type UserConvertToUseridOptions struct + Openid string + type UserConvertToUseridSchema struct + Userid string + type UserCreateOptions struct + Address string + Alias string + Avatar string + Department []int + Email string + Enable int + Extattr map[string]interface{} + ExternalPosition string + ExternalProfile map[string]interface{} + Gender string + HideMobile int + IsLeaderInDept []int + Isleader int + LeaderInDept []int + MainDepartment int + Mobile string + Name string + OpenUserid string + Order []int + Position string + QrCode string + Telephone string + ThumbAvatar string + Userid string + type UserDeleteOptions struct + Userid string + type UserGetActiveStatOptions struct + Date string + type UserGetActiveStatSchema struct + ActiveCnt int + type UserGetOptions struct + Userid string + type UserGetSchema struct + Status int + type UserListIdDeptUser struct + Department int + Userid string + type UserListIdOptions struct + Cursor string + Limit int + type UserListIdSchema struct + DeptUser []UserListIdDeptUser + NextCursor string + type UserListInfoSchema struct + Status int + type UserListOptions struct + DepartmentId string + FetchChild string + type UserListSchema struct + Userlist []UserListInfoSchema + type UserSimpleInfoSchema struct + Department []int + Name string + OpenUserid string + Userid string + type UserSimplelistOptions struct + DepartmentId string + FetchChild string + type UserSimplelistSchema struct + Userlist []UserSimpleInfoSchema + type UserSyncCallbackOptions struct + Encodingaeskey string + Token string + Url string + type UserSyncInfoSchema struct + Userid string + type UserSyncJobOptions struct + JobId string + type UserSyncJobSchema struct + Percentage int + Result []UserSyncInfoSchema + Status int + Total int + Type string + type UserSyncOptions struct + MediaId string + ToInvite bool + type UserSyncSchema struct + Jobid string + type UserUpdateOptions struct + AvatarMediaid string