Giter Site home page Giter Site logo

seafile_webapi's Introduction

Seafile_WebAPI

Seafile_webapi is the Web api of Seafile implemented by java,all of them base on the Seafile Web API V2.1

List of the API

  • Account
    • ping()
    • obtainAuthToken()
    • checkAccountInfo()
    • getServerInformation()
  • Starred Files
    • listStarredFiles()
  • Library
    • listLibraries()
    • getLibraryInfo()
    • getLibraryHistory()
    • createLibrary()
    • deleteLibrary()
  • File
    • getFileDownloadLink()
    • getFileDetail()
    • getFileHistory()
    • createFile()
    • renameFile()
    • moveFile()
    • revertFile()
    • deleteFile()
    • upload File
      • getUploadLink()
      • uploadFile()
    • update File
      • getUpdateLink()
      • updateFile()
  • Directory
    • List Directories
      • listDirEntriesByP()
      • listAllDirEntries()
    • createNewDir()
    • renameDir()
    • deleteDir()
    • downloadDirectory
      • getDirDownloadToken()
      • queryZipProgress()
      • getDirDownloadLink()
    • revertDirectory()

Examples

String SERVICE_URL= "https://cloud.seafile.com";
String FILE_SERVER_ROOT = "https://cloud.seafile.com/seafhttp";

OkHttpClient client = new OkHttpClient();

SeafileApi api = new SeafileApi(SERVICE_URL, FILE_SERVER_ROOT);
String token = api.obtainAuthToken(client, Account.username, Account.password);

System.out.println("token = " + token);

Dependency

  • fastjson-1.2.36
  • okhttp-3.8.1
    • okio-1.13.0

Complete documentation

  • You can see the Complete documentation of Seafile Web Api in Seafile-WebAPI-V2.1,
  • The more examples of Seafile_WebAPI_JAVA , you can see in SeafileApiTest.java

seafile_webapi's People

Contributors

ericwyn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.