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