| 20 | const clientSecret = `dbw2OtmVEeuUvIptb1Coyg` |
| 21 | |
| 22 | type PikPak struct { |
| 23 | Account string `json:"account"` |
| 24 | Password string `json:"password"` |
| 25 | JwtToken string `json:"token"` |
| 26 | refreshToken string |
| 27 | CaptchaToken string `json:"captchaToken"` |
| 28 | Sub string `json:"userId"` |
| 29 | DeviceId string `json:"deviceId"` |
| 30 | RefreshSecond int64 `json:"refreshSecond"` |
| 31 | client *http.Client |
| 32 | ctx context.Context |
| 33 | } |
| 34 | |
| 35 | func NewPikPak(account, password string) PikPak { |
| 36 | return NewPikPakWithContext(context.Background(), account, password) |
nothing calls this directly
no outgoing calls
no test coverage detected