日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > php >内容正文

php

php 蓝奏网盘上传文件,蓝奏云_文件上传_API

發布時間:2023/12/19 php 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。