# README
Zelig.CTFile
城通网盘的API Go语言实现
作者 Icy
Web http://zelig.cn
目前实现的
- EMail 登录 ✔
- Token 登录 ✔
- 获取用户信息 ✔
- 获取网盘容量 ✔
- 获取网盘直连流量 ✔
- 创建文件夹 ✔
- 获取文件夹信息 ✔
- 获取文件夹列表 ✔
- 修改文件夹信息 ✔
- 获取文件列表 ✔
- 获取指定文件列表 ✔
- 文件上传完成 ✔
- 获取文件信息 ✔
- 获取收入信息 ✔
package main
import (
"fmt"
z "github.com/Icy2010/ZeligCTFile"
)
func FileList(ctfile z.TCTFile) {
files, err := ctfile.PublicCloud().FileList("d41982115", 0, 0, "", "", "")
if err == nil {
for i := 0; i < len(files); i++ {
fmt.Println(files[i])
}
} else {
fmt.Println(err)
}
}
func FileListFromIds(ctfile z.TCTFile) {
files, err := ctfile.PublicCloud().FileIdsList([]string{"d41982115", "d39859968"})
if err == nil {
for i := 0; i < len(files); i++ {
fmt.Println(files[i])
}
} else {
fmt.Println(err)
}
}
func main() {
var ctfile z.TCTFile
err := ctfile.LoginFromToken("d11e6b01e40daa604280000c199d4f16")
if err == nil {
fmt.Println(ctfile.Quota)
fmt.Println(ctfile.Bandwidth)
fmt.Println(ctfile.Profile)
//基本信息
FileList(ctfile)
FileListFromIds(ctfile)
//文件列取
forders, e := ctfile.PublicCloud().FolderList(`d0`)
if e == nil {
for i := 0; i < len(forders); i++ {
fmt.Println(forders[i])
}
//.........................
// 其他的实现
} else {
fmt.Println(e)
}
//列取文件夹
} else {
fmt.Println(err)
}
}
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author