Versions in this module Expand all Collapse all v1 v1.0.6 Apr 19, 2026 Changes in this version + const Accept + const AndroidTV + const ApiFamilyGetFileDownloadURL + const ApiFamilyListFiles + const ApiGetFamilyList + const ApiGetFileDownloadURL + const ApiGetFileInfo + const ApiGetFolderInfo + const ApiGetNewVLCVideoPlayURL + const ApiGetShareInfoByCode + const ApiGetUpResourceShare + const ApiGetUserInfo + const ApiGetUserPrivileges + const ApiListFiles + const ApiListResourceShareDir + const ApiListShareDir + const ApiSubscribeGetUser + const ApiUrl + const DefaultTimeout + const TVAppKey + const TVAppSignatureSecret + const TvChannelId + const TvVersion + const UserAgent + func AppKeySignatureHeader(url, method string) map[string]string + func AppKeySignatureOfHmac(sessionSecret, appKey, operate, fullUrl string, timestamp int64) string + type AccessCount struct + CopyCount int + DownloadCount int + PreviewCount int + type AccessTokenResponse struct + AccessToken string + ExpiresIn int64 + func LoginQuery(uuid string) (*AccessTokenResponse, error) + type ApiURL string + func (a ApiURL) RequiresToken() bool + type AppSessionResp struct + AccessToken string + IsSaveName string + RefreshToken string + type AuthToken interface + AccessToken func() string + ExpireDuration func() time.Duration + ExpireTime func() string + IsExpired func() bool + func NewAuthToken(accessToken string, expires int64) AuthToken + type Client interface + FamilyGetFileDownload func(ctx context.Context, familyId String, fileId String, ...) (*FamilyGetFileDownloadResponse, error) + FamilyListFiles func(ctx context.Context, familyId String, folderId String, ...) (*ListFilesResponse, error) + GetFamilyList func(ctx context.Context) (*GetFamilyListResponse, error) + GetFileDownload func(ctx context.Context, fileId String, opts ...GetFileDownloadOption) (*GetFileDownloadResponse, error) + GetFileInfo func(ctx context.Context, fileId String, opts ...GetFileFileOption) (*GetFileInfoResponse, error) + GetFolderInfo func(ctx context.Context, folder String, opts ...GetFolderFileOption) (*GetFolderInfoResponse, error) + GetNewVLCVideoPlayURL func(ctx context.Context, fileId String, ...) (*GetNewVLCVideoPlayURLResponse, error) + GetShareInfo func(ctx context.Context, shareCode string, opts ...GetShareInfoOption) (*GetShareInfoResponse, error) + GetUpResourceShare func(ctx context.Context, upUserId string, pageNum int64, pageSize int64, ...) (*GetUpResourceShareResponse, error) + GetUserInfo func(ctx context.Context) (*GetUserInfoResponse, error) + GetUserPrivileges func(ctx context.Context) (*GetUserPrivilegesResponse, error) + ListFiles func(ctx context.Context, folderId String, opts ...WithListFilesRequestOption) (*ListFilesResponse, error) + ListResourceShareDir func(ctx context.Context, upUserId string, shareId int64, fileId String, ...) (*ListFilesResponse, error) + ListShareDir func(ctx context.Context, shareId int64, fileId String, ...) (*ListFilesResponse, error) + SubscribeGetUser func(ctx context.Context, userId string) (*SubscribeGetUserResponse, error) + WithClient func(client *resty.Client) Client + WithDebug func(flags ...bool) Client + WithForceWithToken func(flags ...bool) Client + WithToken func(token AuthToken) Client + func New() Client + type E189AccessTokenResp struct + E189AccessToken string + ExpiresIn int64 + type FamilyGetFileDownloadOption func(*FamilyGetFileDownloadRequest) + type FamilyGetFileDownloadRequest struct + FamilyId String + FileId String + type FamilyGetFileDownloadResponse struct + FileDownloadUrl string + type FamilyInfo struct + Count int + CreateTime string + ExpireTime string + FamilyId String + RemarkName string + Type int + UseFlag int + UserRole int + type FamilyListFilesRequest struct + Descending bool + FamilyId String + FolderId String + IconOption int + MediaType int + OrderBy string + PageNum int + PageSize int + type FileInfo struct + CreateDate string + FileCata int + Id String + LastOpTime string + Md5 string + MediaType int + Name string + Orientation int + Rev string + Size int64 + StarLabel int + type FolderInfo struct + CreateDate string + FileCata int + FileCount int + FileListSize int + Id String + LastOpTime string + Name string + ParentId String + Rev string + StarLabel int + type GetFamilyListResponse struct + FamilyInfoResp []FamilyInfo + type GetFileDownloadOption func(*GetFileDownloadRequest) + type GetFileDownloadRequest struct + Dt int8 + FileId String + ShareId int64 + Short bool + type GetFileDownloadResponse struct + FileDownloadUrl string + ResCode int + ResMessage string + type GetFileFileOption func(*GetFileInfoRequest) + type GetFileInfoRequest struct + Dt int8 + FileId String + ShareId int64 + Short bool + type GetFileInfoResponse struct + CreateDate string + FileDownloadUrl string + FilePath string + Id String + LastOpTime int64 + LastOpTimeStr string + Md5 string + Name string + ParentId String + ResCode int + ResMessage string + Rev int64 + Size int + type GetFolderFileOption func(*GetFolderInfoRequest) + type GetFolderInfoRequest struct + Dt int8 + Folder String + ShareId int64 + type GetFolderInfoResponse struct + CreateDate string + CreateTime int64 + FileId String + FileName string + FilePath string + LastOpTime int64 + LastOpTimeStr string + ParentId String + ResCode int + ResMessage string + Rev int64 + type GetNewVLCVideoPlayURLRequest struct + Dt int8 + FileId String + ShareId string + Type int8 + type GetNewVLCVideoPlayURLResponse struct + Normal struct{ ... } + ResCode int + ResMessage string + type GetShareInfoOption func(*GetShareInfoRequest) + type GetShareInfoRequest struct + AccessCode string + ShareCode string + UUID string + type GetShareInfoResponse struct + AccessCode string + Creator struct{ ... } + ExpireTime int + ExpireType int + FileCreateDate string + FileId String + FileLastOpTime string + FileName string + FileSize int + FileType string + IsFolder bool + MediaType int + NeedAccessCode int + ResCode int + ResMessage string + ReviewStatus int + ShareDate int64 + ShareId int64 + ShareMode int + ShareType int + type GetUpResourceShareRequest struct + Descending bool + FileName string + IconOption string + OrderBy string + PageNum int64 + PageSize int64 + UpUserId string + type GetUpResourceShareRequestOption func(*GetUpResourceShareRequest) + type GetUpResourceShareResponse struct + Code string + Data *ShareFileList + Message string + type GetUserInfoResponse struct + Available int64 + Capacity int64 + ExtPicAvailable int + ExtPicCapacity int + ExtPicUsed int + HasFamily int + LoginName string + Mail189UsedSize int + MaxFilesize float64 + OrderAmount int + ProvinceCode string + ResCode int + ResMessage string + UEncrypt string + UMd5 string + type GetUserPrivilegesResponse struct + BeginTime string + ChannelId string + EndTime string + IsNetSDKOpen string + PackOverLimitSize int64 + PicEditRemainTimes int + PicEditTotalTimes int + PreDecomp int64 + ResCode int + ResMessage string + ShareFileNum int + TransChannel int + TransConcurrent int + TransDayFlow int64 + TransDownSpeed int + TransFileSize float64 + TransQos int + TransSpeed int + TransVideo int + TryNum int + UsedDayFlow int + UserLevel int + VipExpiredTime string + type ListFilesRequest struct + Descending bool + FolderId String + IconOption int + MediaType int + OrderBy string + PageNum int + PageSize int + type ListFilesResponse struct + FileListAO struct{ ... } + LastRev int64 + ResCode int + ResMessage string + type ListResourceShareFileRequest struct + Descending bool + FileId String + IconOption int + IsFolder bool + OrderBy string + PageNum int + PageSize int + ShareId string + UpUserId string + type ListShareFileRequest struct + AccessCode string + Descending bool + FileId String + IconOption int + IsFolder bool + OrderBy string + PageNum int + PageSize int + ShareDirFileId String + ShareId int64 + ShareMode int + type ListShareFileResponse struct + ExpireTime int + ExpireType int + FileListAO struct{ ... } + LastRev int64 + ResCode int + ResMessage string + type RespErr struct + Code string + ErrorCode string + ErrorMsg string + Error_ string + Message string + Msg string + ResCode any + ResMessage string + XMLName xml.Name + func (e *RespErr) Error() string + func (e *RespErr) HasError() bool + type ShareFileInfo struct + AccessCount AccessCount + AccessURL string + CreateDate string + ExpireTime int + ExpireType int + Folder int + Heat int + Id String + IsTop int + LastOpTime string + Md5 string + Name string + RedTip bool + Rev string + ReviewStatus int + ShareDate string + ShareId int64 + ShareType int + Size int64 + Status int + TopTime string + type ShareFileList struct + Count int64 + FileList []*ShareFileInfo + type String string + func (s *String) Unmarshal(b []byte) error + func (s *String) UnmarshalJSON(b []byte) error + func (s *String) UnmarshalXML(e *xml.Decoder, ee xml.StartElement) error + type SubscribeGetUserInfo struct + Brief interface{} + CreateTime time.Time + ExtendFour interface{} + ExtendOne string + ExtendThree interface{} + ExtendTwo string + FansNum int + FollowNum int + Id int64 + Ip interface{} + IsFirstSubscribe int + IsFollow interface{} + IsVip int + Name string + OrderNum interface{} + Phone string + Picture string + PushSwitch int + Status int + UpdateTime time.Time + UserId string + type SubscribeGetUserRequest struct + UserId string + type SubscribeGetUserResponse struct + Code string + Data SubscribeGetUserInfo + Msg string + type UUIDInfoResp struct + UUID string + func LoginInit() (*UUIDInfoResp, error) + type UserSessionResp struct + FamilySessionKey string + FamilySessionSecret string + GetFileDiffSpan int + GetUserInfoSpan int + KeepAlive int + LoginName string + ResCode int + ResMessage string + SessionKey string + SessionSecret string + type WithFamilyListFilesRequestOption func(*FamilyListFilesRequest) + type WithGetNewVLCVideoPlayURLRequestOption func(*GetNewVLCVideoPlayURLRequest) + type WithListFilesRequestOption func(*ListFilesRequest) + type WithListResourceShareDirRequestOption func(*ListResourceShareFileRequest) + type WithListShareFileRequestOption func(*ListShareFileRequest)