Total Pageviews

Thursday 11 June 2020

一个基于java的网盘程序korpu


Intro

Dropbox + Google

Dir

  • Web
  • korpu-rest
  • Readme.md

KÖRPÜ-REST

korpu-rest.war => jetty or tomcat 
conf => dropbox.xml
Resoudre pb de CORS 500 => proxy.php

List des méthodes

  • Format normal
// success
{
 "dropbox":[],
 "google":[]
}
// cas error
{
 "error":msg
}
  • callbackDropbox
{
 "access_token":"xxx",
 "uid":"xxx",
 "token_type":"bearer"
}
  • callbackGoogle
{
 "access_token":"xxx",
 "uid":"xxx",
 "token_type":"bearer"
}
  • ls
{
  "dropbox": {
    "thumb_exists": false,
    "path": "\/",
    "size": "0 bytes",
    "contents": [
      {
        "thumb_exists": false,
        "path": "\/dotfiles",
        "rev": "5b3a041b6cba",
        "size": "0 bytes",
        "read_only": false,
        "is_dir": true,
        "bytes": 0,
        "modifier": null,
        "root": "dropbox",
        "icon": "folder",
        "modified": "Sun, 13 Mar 2016 18:28:45 +0000",
        "revision": 23354
      },...}
    "google":{
     regarde sur google
     }
  • info
{
 "dropbox":{...},
 "google":{...}
}
  • detailFile(String file);
{
 "dropbox":{...},
 "google":{...}
}
  • rm(String file) =>api/v1/rm?name=xxx
{
 "dropbox":{...},
 "google":{...}
}
pas envie de tous détailler, reagrde Api.java
  • mv(String from,String to)
  • mkdir(String dir)
  • share(String name)
  • login(user,passwd)
  • upload()

No comments:

Post a Comment