Git Product home page Git Product logo

alistsdk-go's Introduction

alistsdk-go

Alist SDK for golang

Usage

import (
      "github.com/aliyun/alistsdk-go"
)

func main() {
    client := alistsdk.NewClient("endpoint", "username", "password")
    user,err:= client.Login()
    if err != nil {
        panic(err)
    }
    fmt.Println(user)

    //do something with client
}

API Endpoints

  • auth 验证类
    • POST /api/auth/login Token获取
    • POST /api/auth/login/hash Token获取hash
    • POST /api/auth/2fa/generate 生成2FA密钥
    • POST /api/auth/2fa/verify 验证2FA Code
  • fs 文件类
    • GET /api/me 获取用户信息
    • POST /api/fs/mkdir 创建文件夹
    • POST /api/fs/rename 重命名文件
    • PUT /api/fs/form 表单上传文件
    • POST /api/fs/list 列出文件目录
    • POST /api/fs/get 获取某个文件/目录信息
    • POST /api/fs/search 搜索文件或文件夹
    • POST /api/fs/dirs 获取目录
    • POST /api/fs/batch_rename 批量重命名
    • POST /api/fs/regex_rename 正则重命名
    • POST /api/fs/move 移动文件
    • POST /api/fs/recursive_move 聚合移动
    • POST /api/fs/copy 复制文件
    • POST /api/fs/remove 删除文件或文件夹
    • POST /api/fs/remove_empty_directory 删除空文件夹
    • PUT /api/fs/put 流式上传文件
    • POST /api/fs/add_aria2 添加aria2下载
    • POST /api/fs/add_qbit 添加qBittorrent下载
  • public 公共类
    • GET /ping ping检测
    • GET /api/public/settings 获取站点设置

alistsdk-go's People

Contributors

imshuai avatar

Watchers

 avatar

Forkers

miyunwangluo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.