retrowaver / chomikuj2
There is no license information available for the latest version (v0.1-alpha) of this package.
Unofficial Chomikuj.pl PHP API
v0.1-alpha
2018-08-26 16:51 UTC
Requires
- php: ^7.1
- php-64bit: *
- guzzlehttp/guzzle: ^6.3
- psr/http-message: ^1.0
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-12-29 05:50:19 UTC
README
Unofficial Chomikuj.pl PHP API.
Installing
composer require retrowaver/chomikuj2
Usage
Initialization
use Chomikuj\Api; //... $chomikuj = new Api(); $chomikuj->login('username', 'password');
Creating folders
// Create some folders in root folder (0) $chomikuj->createFolder('some folder', 0); $chomikuj->createFolder('some NSFW folder', 0, true); $chomikuj->createFolder('some password-protected folder', 0, false, 'some_password');
Removing folders
// Remove folder with id 12345 $chomikuj->removeFolder(12345);
Uploading files
// Upload a file to root folder $chomikuj->uploadFile(0, 'path/to/file.zip');
// Upload a file to a folder with id 12 $chomikuj->uploadFile(12, 'path/to/another/file.zip');
Logging out
$chomikuj->logout();
Built with
License
This project is licensed under the MIT License - see the LICENSE file for details.