azhida/baiduwangpan-api

0.0.5 2023-04-14 03:15 UTC

This package is auto-updated.

Last update: 2024-11-14 07:55:00 UTC


README

百度网盘API.

Installing

$ composer require azhida/baiduwangpan-api -vvv

Usage

$config = [
    'AppID' => '',
    'Appkey' => '',
    'Secretkey' => '',
    'RedirectUri' => 'http://localhost/bd_pan/get_code',
    'rtype' => 1,
    'FileFragmentSize' => 4, // 分片上传的单个文件片段大小,单位 M,默认:4M
];
$bdPan = new \Azhida\BaiduwangpanApi\BdPan($config);

// 授权
$bdPan->authorize();

// 上传文件
$bdPan->upload('./111.zip', '/apps/111.zip');

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.

License

MIT