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

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.