php 蓝奏网盘上传文件,蓝奏云_文件上传_API
~~~[api]
post:https://api-lanzou.anyhulian.ml/v2/upload.php
*content-type=multipart/form-data; boundary=----WebKitFormBoundarysshowsEF5hSwyLGF#協(xié)議頭
*id=WU_FILE_1#類型
*name=dll安裝方法.txt#文件名稱
*type=text/plain#傳輸文件類型
*lastModifiedDate=Sun Sep 08 2019 12:54:43 GMT+0800 (中國標(biāo)準(zhǔn)時間)#文件修改時間
*size=23957#文件大小*注:字節(jié)為單位
*filename=dll安裝方法.txt#文件名
*byte=自行讀取#文件字節(jié)集
key=聯(lián)系QQ:3426097652獲取秘鑰#!從這里以下的參數(shù)選填! GET請求 VIP功能
folder_id=文件夾ID*自行獲取#文件夾ID GET請求 VIP功能
user_cookie=你的藍(lán)奏云Cookie#默認(rèn) GET請求 VIP功能 *請進(jìn)行Base64編碼
<<<
成功
{"code":"1","xc":{"u":"https:\/\/www.lanzous.com\/i6bg6nc","size":"23.4 K","id":"12339492","name":"dll\u5b89\u88c5\u65b9\u6cd5.txt"}}*自行Json轉(zhuǎn)碼
<<<
失敗
{"code":"-1","msg":"\u6587\u4ef6\u7c7b\u578b\u9519\u8bef"}*自行Json轉(zhuǎn)碼
<<<
例子
**協(xié)議頭:**
content-type: multipart/form-data; boundary=----WebKitFormBoundarysshowsEF5hSwyLGF
**POST提交數(shù)據(jù):**
------WebKitFormBoundarysshowsEF5hSwyLGF
Content-Disposition: form-data; name="id"
WU_FILE_1
------WebKitFormBoundarysshowsEF5hSwyLGF
Content-Disposition: form-data; name="name"
dll安裝方法.txt
------WebKitFormBoundarysshowsEF5hSwyLGF
Content-Disposition: form-data; name="type"
text/plain
------WebKitFormBoundarysshowsEF5hSwyLGF
Content-Disposition: form-data; name="lastModifiedDate"
Sun Sep 08 2019 12:54:43 GMT+0800 (中國標(biāo)準(zhǔn)時間)
------WebKitFormBoundarysshowsEF5hSwyLGF
Content-Disposition: form-data; name="size"
23957
------WebKitFormBoundarysshowsEF5hSwyLGF
Content-Disposition: form-data; name="file"; filename="dll安裝方法.txt"
Content-Type: text/plain
*這里填文件字節(jié)集 數(shù)據(jù)
------WebKitFormBoundarysshowsEF5hSwyLGF--
總結(jié)
以上是生活随笔為你收集整理的php 蓝奏网盘上传文件,蓝奏云_文件上传_API的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 图书馆管理系统
- 下一篇: php显示类别名,如何在single.p