sygnomi/scryptos-api
Composer 安装命令:
composer require sygnomi/scryptos-api
包简介
API Class for SCRYPTOS (app.scryptos.com)
README 文档
README
SCRYPTOS API Library
Using the SCRYPTOS API class you can connect to your SCRYPTOS account and integrate it into your application.
Requirements
- PHP >= 7.0
- cUrl Extension
Installation
composer require sygnomi/scryptos-api
Usage
Create a new instance using your SCRYPTOS client name, group (dropfolder) and password
$dropfolder = new Sygnomi\ScryptosApi\Dropfolder(
['client' => 'Test',
'group' => 'test',
'password' => 'test'
'form_data' => array('field_name' => 'value') //optional
]
);
Upload files into the Sharefolder
$dropfolder->upload([
[
'name' => 'yourfilename.txt',
'file_path' => './local/path/To/File.txt'
'file_stream' => stream // Optionally you can send a file stream instead of file path
]
]);
Get upload errors
$dropfolder->getUploadErrors(); //returns error array
Features
- Upload files to Dropfolder
Standards
- PSR-4 autoloading compliant structure
- Unit-Testing with PHPUnit
TODO
- Add sharefolder class
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-26