Giter VIP home page Giter VIP logo

clouddisk's Introduction

yunpan

CloudDisk 360云盘存储SDK

10/20 360官方发表将不支持个人网盘啦,资源还在网盘上怎么办,快使用CloudDisk把资源备份下来吧^_^

快速向导

1. 如何得到 CloudDisk

  • maven 仓库下载
<dependency>
	<groupId>com.dounine</groupId>
	<artifactId>clouddisk</artifactId>
	<version>1.1.4</version>
</dependency>
  • github 中下载并编译
git clone https://github.com/dounine/clouddisk.git
mvn clean package

2. 如何使用 CloudDisk

  • 获取文件列表
LoginUserToken loginUserToken = new LoginUserToken("account","passport",false);

FileListParser fileListParser = new FileListParser(loginUserToken);
FileListParameter fileListParameter = new FileListParameter();
fileListParameter.setPath("/");
FileList fileList = fileListParser.parse(fileListParameter);

3. demo栗子 CloudDisk 已支持功能列表

  • 登录
  • 获取授权token令牌
  • 用户签到领取空间
  • 获取用户信息
  • 检查用户是否登录
  • 操作历史
  • 验证码
  • 服务器分压转发
  • 文件功能
    • 获取文件列表
    • 获取文件上传地址
    • 文件上传
    • 文件搜索
    • 文件版本回滚
    • 文件更名
    • 文件删除
    • 文件移动
    • 获取文件详细信息
    • 文件历史版本信息
    • 判断文件是否存在
    • 获取文件下载信息
    • 下载文件
    • 创建文件夹

clouddisk's People

Contributors

devfozgul avatar dounine avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

clouddisk's Issues

文件nid是什么

fileDownloadAddressParameter.setNid("14576185026173704");//文件nid
麻烦请教一下, 这里的文件nid是什么?

I've been researching the download process behind 360 cloud disk...I like to ask a question.

Ello, I'm creating this issue because I've been doing research about the downloading
behind 360 cloud disk since it's closure on Nov. 1st and want to you a question as
the dev behind the SDK clouddisk.

To explain, many days before the closure of 360 Cloud Disk, I was rushing to download
the last of my files I haven't backup yet. Dealing with the slow download speeds as everyone
else was, I began a series of research behind the DL process to learn why it's so slow.

I've learned why the files take so long to download and it's because they're fragmented
thus each file fragment is downloaded at a time.

So I almost stopped researching until my curiosity peaked at learning about
how downloads are requested! (Since the closure was so close and I didn't get
the last of my files downloaded before then).

Below is an example "Sync.getDownloadInfo" xml response when requesting a file to download:

<?xml version="1.0" encoding="utf-8"?><response errno="0" errmsg="" count="1" k="" u="" d="MzUw" t="MjAw"><file_info fpath="/Ese-Lolifox v0.3.8.9a.exe" ver="1" ctime="1433084529" mtime="1433084674" fsize="19068928" fhash="05347706c635dab7aaa09a54c6b0ac9de446c596" dt="79.75df0a0f6a706298a81010c53da5ff30_用户令牌遗漏了" nid="14715458879408627" compress="0" http="tb-dl3.yunpan.360.cn" addr_1="180.163.237.192,cnc,d"/></response>

I've been studying the attributes within these responses and learned quite a lot besides the obvious.
The "fhash" attribute is not just a mere "sha1" hash calculation but actually an hash calculation of all the bhash (file fragment block hashes) sha1 hashes in a single string, all in order.

Here's a link on where I learned it: (And yes, I tested it myself and can confirm it's true)
http://blog.csdn.net/gnicky/article/details/49247579

Nid and the other attributes, I already know or are obvious in itself...
But there's one, no, 5 attributes that I don't know what they are.

k, u, d, t: These are attributes I have no idea about and if you have any info about them, I would love to hear what they are and what they do.

Okay, here's why I'm making this issue...
The "DT" attribute...is an attribute that starts with a number then an MD5 hash.
This MD5 is unknown as I have looked everywhere and found no info on how it's calculated.
I tested one of my files that's on my cloud disk, hashing it for an MD5 value but found it's not
related. I looked online to see if any similar MD5 hash exists to no avail...

I've made a thread on the official BBS 360 forum but no one has or knows about it:
http://bbs.360.cn/forum.php?mod=viewthread&tid=15235597

So I'm asking you for help on this...
I know that 360 cloud disk (personal) is gone but still, this has been bugging me for a while.
Please, do you know what the "DT" attribute means? Please answer and thanks!

Oh and I emailed you but you haven't replied...
Hope I'm not a bother! ^-^

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.