Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yutao8/pan123
123pan 123云盘 开放平台 php SDK 123云盘解析 123云盘直链解析
https://github.com/yutao8/pan123
123pan pan123
Last synced: 16 days ago
JSON representation
123pan 123云盘 开放平台 php SDK 123云盘解析 123云盘直链解析
- Host: GitHub
- URL: https://github.com/yutao8/pan123
- Owner: yutao8
- Created: 2024-04-01T09:40:22.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-07-18T00:15:23.000Z (4 months ago)
- Last Synced: 2024-10-01T06:58:18.456Z (about 1 month ago)
- Topics: 123pan, pan123
- Language: PHP
- Homepage: https://www.123pan.com/
- Size: 20.5 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 123pan sdk for php
website : https://www.123pan.com/
dev: https://www.123pan.com/developer
doc : https://123yunpan.yuque.com/org-wiki-123yunpan-muaork/cr6ced# composer
```bash
composer require yutao/pan123
```## demo
[demo.php](https://github.com/yutao8/pan123/blob/master/demo.php)## 目录程序
[123index](https://github.com/yutao8/123index)## new
```php
use Yutao\Pan123\Client;
$sdk= Client::boot('your clientID', 'your clientSecret');
```## API
### 账号
- 获取账号信息 `$sdk->user->info(); `### 文件
- 获取文件列表 `$sdk->file->list();`
- 获取文件列表(新) `$sdk->file->list_v2();`
- 创建文件夹 `$sdk->file->mkdir();`
- 移动文件 `$sdk->file->move();`
- 删除文件 `$sdk->file->delete();`
- 恢复文件 `$sdk->file->recover();`
- 销毁文件 `$sdk->file->destroy();`### 上传
- 一键上传 `$sdk->upload->upload();`
- 创建文件 `$sdk->upload->create();`
- 获取上传URL `$sdk->upload->getUploadUrl();`
- 上传文件 `$sdk->upload->chunk();`
- 获取分片列表 `$sdk->upload->queryChunk();`
- 结束上传 `$sdk->upload->finish();`
- 获取上传状态 `$sdk->upload->status();`### 直链
- 开启文件夹直连 `$sdk->link->enable();`
- 关闭文件夹直连 `$sdk->link->disable();`
- 获取直链URL ` $sdk->link->url();`
- 获取直链鉴权URL ` $sdk->link->sign();`
- 执行视频文件转码 ` $sdk->link->doTrans();`
- 查询转码结果 ` $sdk->link->queryTrans();`
- 获取视频转码URL ` $sdk->link->m3u8();`### 离线下载
- 离线下载 `$sdk->download->add();`### 分享
- 创建分享 `$sdk->share->create();`### 其他
- 获取错误信息 `$sdk->getError();`
- 修改api域名 `$sdk->setUrlBase();`
- 修改缓存目录 `$sdk->setCacheDir();`