我使用this simple PHP code将文件上传到mega.nz云,代码正常运行。
代码返回如下数组:
h => GxsyWLTK
t => 0
a => KxaM1xBhlW8oAc1zECKfnk7uSulGtHy0FKagNNF2iFo
k => 6ffMqPn8b0Y:fsN980rUUZhmDNBnDZM7PjM2S5rQe-7oTjLVbssQ2F4
p => jwsyAbxY
ts => 1422434349
u => 6ffMqPn8b0Y
s => 30751
但我想知道:我如何获得上传文件的下载链接,就像这个链接一样? https://mega.nz/#!SttF0BiC!BXQIrgxB9Q5qWmccdjMnsISUCyRV4Hr6f-v5RjQxB_w
答案 0 :(得分:1)
对于每个节点,结果包含以下信息:
h: The ID of the node ; --> <ID-NODE>
p: The ID of the parent node (directory) ;
u: The owner of the node ;
t: The type of the node:
0: File
1: Directory
2: Special node: Root (“Cloud Drive”)
3: Special node: Inbox
4: Special node: Trash Bin
a: The attributes of the node. Currently only contains its name.
k: The key of the node; --> <KEY-NODE>
s: The size of the node ;
ts: The time of the last modification of the node
General Mega下载链接:
https://mega.nz/#! <ID-NODE> ! <KEY-NODE>
示例(包含您的数据):
https://mega.nz/#!GxsyWLTK!6ffMqPn8b0Y:fsN980rUUZhmDNBnDZM7PjM2S5rQe-7oTjLVbssQ2F4
希望这有帮助。