Skip to content

Latest commit

 

History

History
56 lines (33 loc) · 1.39 KB

README.md

File metadata and controls

56 lines (33 loc) · 1.39 KB

OpenLoad

Packagist GitHub license Travis branch Codacy branch

It's just a php client of the OpenLoad.co service.

Install

composer require ideneal/openload:~1.0

Usage

All api features are implemented, from retrieve account info

<?php

include_once './vendor/autoload.php';

use Ideneal\OpenLoad\OpenLoadClient;

$openload = new OpenLoadClient('apiLogin', 'apiKey');

$accountInfo = $openload->getAccountInfo();
echo $accountInfo->getEmail(); //account@email.com

to upload a file

<?php

include_once './vendor/autoload.php';

use Ideneal\OpenLoad\OpenLoadClient;

$openload = new OpenLoadClient('apiLogin', 'apiKey');

$openload->uploadFile('/home/user/Pictures/image.jpg');

It's also possible find more about what you can to do at OpenLoad Api.

Author

Daniele Pedone

License

MIT