sygnomi / scryptos-api
API Class for SCRYPTOS (app.scryptos.com)
v1.0.4
2018-06-18 12:32 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.3
- guzzlehttp/promises: ^1.3
- guzzlehttp/psr7: ^1.4
Requires (Dev)
- phpunit/phpunit: ^7
This package is not auto-updated.
Last update: 2024-11-10 06:33:21 UTC
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