🖴 A 115 cloud driver package.
package main
import (
"github.com/SheltonZhu/115driver/pkg/driver"
"log"
)
func main() {
cr := &driver.Credential{
UID: "xxx",
CID: "xxx",
SEID: "xxx",
}
// or err := cr.FromCookie(cookieStr)
client := driver.Defalut().ImportCredential(cr)
if err := driver.LoginCheck(); err != nil {
log.Fatalf("login error: %s", err)
}
}
More examples can be found in reference.
SheltonZhu |
xhofe |
Ovear |
power721 |