Documentation
¶
Index ¶
- Constants
- Variables
- func BuildCustomUserAgent(...) string
- func GetAction(method string, url string) string
- type Addition
- type CaptchaTokenRequest
- type CaptchaTokenResponse
- type Common
- func (c *Common) GetCaptchaSign() (timestamp, sign string)
- func (c *Common) GetCaptchaToken() string
- func (c *Common) GetClientID() string
- func (c *Common) GetDeviceID() string
- func (c *Common) GetUserAgent() string
- func (c *Common) SetCaptchaToken(captchaToken string)
- func (c *Common) SetDeviceID(deviceID string)
- func (c *Common) SetUserAgent(userAgent string)
- type ErrResp
- type File
- type Media
- type PikPakShare
- func (d *PikPakShare) Config() driver.Config
- func (d *PikPakShare) Drop(ctx context.Context) error
- func (d *PikPakShare) GetAddition() driver.Additional
- func (d *PikPakShare) Init(ctx context.Context) error
- func (d *PikPakShare) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *PikPakShare) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *PikPakShare) RefreshCaptchaToken(action, userID string) error
- type ShareResp
Constants ¶
View Source
const ( AndroidClientID = "YNxT9w7GMdWvEOKa" AndroidClientSecret = "dbw2OtmVEeuUvIptb1Coyg" AndroidClientVersion = "1.49.3" AndroidPackageName = "com.pikcloud.pikpak" AndroidSdkVersion = "2.0.4.204101" WebClientID = "YUMx5nI8ZU8Ap8pm" WebClientSecret = "dbw2OtmVEeuUvIptb1Coyg" WebClientVersion = "undefined" WebPackageName = "drive.mypikpak.com" WebSdkVersion = "8.0.3" PCClientID = "YvtoWO6GNHiuCl7x" PCClientSecret = "1NIH5R1IEe2pAxZE3hv3uA" PCClientVersion = "undefined" // 2.5.6.4831 PCPackageName = "mypikpak.com" PCSdkVersion = "8.0.3" )
Variables ¶
View Source
var AndroidAlgorithms = []string{
"7xOq4Z8s",
"QE9/9+IQco",
"WdX5J9CPLZp",
"NmQ5qFAXqH3w984cYhMeC5TJR8j",
"cc44M+l7GDhav",
"KxGjo/wHB+Yx8Lf7kMP+/m9I+",
"wla81BUVSmDkctHDpUT",
"c6wMr1sm1WxiR3i8LDAm3W",
"hRLrEQCFNYi0PFPV",
"o1J41zIraDtJPNuhBu7Ifb/q3",
"U",
"RrbZvV0CTu3gaZJ56PVKki4IeP",
"NNuRbLckJqUp1Do0YlrKCUP",
"UUwnBbipMTvInA0U0E9",
"VzGc",
}
View Source
var PCAlgorithms = []string{
"KHBJ07an7ROXDoK7Db",
"G6n399rSWkl7WcQmw5rpQInurc1DkLmLJqE",
"JZD1A3M4x+jBFN62hkr7VDhkkZxb9g3rWqRZqFAAb",
"fQnw/AmSlbbI91Ik15gpddGgyU7U",
"/Dv9JdPYSj3sHiWjouR95NTQff",
"yGx2zuTjbWENZqecNI+edrQgqmZKP",
"ljrbSzdHLwbqcRn",
"lSHAsqCkGDGxQqqwrVu",
"TsWXI81fD1",
"vk7hBjawK/rOSrSWajtbMk95nfgf3",
}
View Source
var WebAlgorithms = []string{
"fyZ4+p77W1U4zcWBUwefAIFhFxvADWtT1wzolCxhg9q7etmGUjXr",
"uSUX02HYJ1IkyLdhINEFcCf7l2",
"iWt97bqD/qvjIaPXB2Ja5rsBWtQtBZZmaHH2rMR41",
"3binT1s/5a1pu3fGsN",
"8YCCU+AIr7pg+yd7CkQEY16lDMwi8Rh4WNp5",
"DYS3StqnAEKdGddRP8CJrxUSFh",
"crquW+4",
"ryKqvW9B9hly+JAymXCIfag5Z",
"Hr08T/NDTX1oSJfHk90c",
"i",
}
Functions ¶
func BuildCustomUserAgent ¶
Types ¶
type CaptchaTokenRequest ¶
type CaptchaTokenResponse ¶
type Common ¶
type Common struct {
CaptchaToken string
// 必要值,签名相关
ClientID string
ClientSecret string
ClientVersion string
PackageName string
Algorithms []string
DeviceID string
UserAgent string
// 验证码token刷新成功回调
RefreshCTokenCk func(token string)
// contains filtered or unexported fields
}
func (*Common) GetCaptchaSign ¶
GetCaptchaSign 获取验证码签名
func (*Common) GetCaptchaToken ¶
func (*Common) GetClientID ¶
func (*Common) GetDeviceID ¶
func (*Common) GetUserAgent ¶
func (*Common) SetCaptchaToken ¶
func (*Common) SetDeviceID ¶
func (*Common) SetUserAgent ¶
type ErrResp ¶
type Media ¶
type Media struct {
MediaId string `json:"media_id"`
MediaName string `json:"media_name"`
Video struct {
Height int `json:"height"`
Width int `json:"width"`
Duration int `json:"duration"`
BitRate int `json:"bit_rate"`
FrameRate int `json:"frame_rate"`
VideoCodec string `json:"video_codec"`
AudioCodec string `json:"audio_codec"`
VideoType string `json:"video_type"`
} `json:"video"`
Link struct {
Url string `json:"url"`
Token string `json:"token"`
Expire time.Time `json:"expire"`
} `json:"link"`
NeedMoreQuota bool `json:"need_more_quota"`
VipTypes []interface{} `json:"vip_types"`
RedirectLink string `json:"redirect_link"`
IconLink string `json:"icon_link"`
IsDefault bool `json:"is_default"`
Priority int `json:"priority"`
IsOrigin bool `json:"is_origin"`
ResolutionName string `json:"resolution_name"`
IsVisible bool `json:"is_visible"`
Category string `json:"category"`
}
type PikPakShare ¶
type PikPakShare struct {
}
func (*PikPakShare) Config ¶
func (d *PikPakShare) Config() driver.Config
func (*PikPakShare) GetAddition ¶
func (d *PikPakShare) GetAddition() driver.Additional
func (*PikPakShare) RefreshCaptchaToken ¶
func (d *PikPakShare) RefreshCaptchaToken(action, userID string) error
RefreshCaptchaToken 刷新验证码token
Click to show internal directories.
Click to hide internal directories.