Documentation
¶
Index ¶
- type AccessTokenResp
- type AppLoginParams
- type AppLoginResult
- type AppLoginToken
- type AppSessionResp
- type ShareFile
- type ShareFiles
- type ShareFolder
- type ShareInfo
- type ShareLink
- type Telecom
- func (t *Telecom) DownloadFile(url string) (io.ReadCloser, error)
- func (t *Telecom) DownloadURL(shareCode, shareID, fileID string) (string, error)
- func (t *Telecom) ShareCode(accessURL string) (string, error)
- func (t *Telecom) ShareFiles(accessURL, accessCode string) (*ShareInfo, []ShareFile, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenResp ¶ added in v0.9.3
type AppLoginParams ¶ added in v0.9.3
type AppLoginResult ¶ added in v0.9.3
type AppLoginToken ¶
type AppLoginToken struct { SessionKey string `json:"sessionKey"` SessionSecret string `json:"sessionSecret"` FamilySessionKey string `json:"familySessionKey"` FamilySessionSecret string `json:"familySessionSecret"` AccessToken string `json:"accessToken"` RefreshToken string `json:"refreshToken"` SskAccessToken string `json:"sskAccessToken"` SskAccessTokenExpiresIn int64 `json:"sskAccessTokenExpiresIn"` RsaPublicKey string `json:"rsaPublicKey"` }
type AppSessionResp ¶ added in v0.9.3
type AppSessionResp struct { ResCode int `json:"res_code"` ResMessage string `json:"res_message"` AccessToken string `json:"accessToken"` FamilySessionKey string `json:"familySessionKey"` FamilySessionSecret string `json:"familySessionSecret"` GetFileDiffSpan int `json:"getFileDiffSpan"` GetUserInfoSpan int `json:"getUserInfoSpan"` IsSaveName string `json:"isSaveName"` KeepAlive int `json:"keepAlive"` LoginName string `json:"loginName"` RefreshToken string `json:"refreshToken"` SessionKey string `json:"sessionKey"` SessionSecret string `json:"sessionSecret"` }
type ShareFiles ¶
type ShareFiles struct { int `json:"count"` FileList []ShareFile `json:"fileList"` FileListSize int64 `json:"fileListSize"` FolderList []ShareFolder `json:"folderList"` } `json:"fileListAO"` }Count
type ShareFolder ¶
type ShareFolder struct {}
type Telecom ¶
func (*Telecom) DownloadFile ¶
func (t *Telecom) DownloadFile(url string) (io.ReadCloser, error)
func (*Telecom) DownloadURL ¶
Click to show internal directories.
Click to hide internal directories.