ElevenGo
An API client of 115 Cloud Storage Service.
Example
package main
import (
"github.com/deadblue/elevengo"
"log"
)
func main() {
agent := elevengo.Default()
credential := &elevengo.Credential{
UID: "", CID: "", SEID: "",
}
if err := agent.CredentialImport(credential); err != nil {
log.Fatalf("Import credentail error: %s", err)
}
it, err := agent.FileIterate("dirId")
for ; err == nil; err = it.Next() {
file := &elevengo.File{}
if err = it.Get(file); err == nil {
log.Printf("File: %d => %#v", it.Index(), file)
}
}
if !elevengo.IsIteratorEnd(err) {
log.Fatalf("Iterate files error: %s", err)
}
}
More examples can be found in reference.
Features
- Login
- File
- Media
- Offline
- Other
License
MIT