<commit_before>Put.io OAuth API Wrapper written in PHP
=======================================
**(OAuth/API Version 2)**

A simple, but powerful PHP class for [put.io](https://put.io/)'s [OAuth API](https://api.put.io/v2/docs/) (version 2).
Supports all features that put.io's API provides, including file uploads, downloads, transfers, friends, etc...

Requires PHP 5.3, and the following PHP extensions: [cURL](http://php.net/book.curl) and [JSON](http://php.net/book.json).

Take a look at the [Wiki](https://github.com/nicoSWD/put.io-API-v2-Wrapper/wiki/) and [put.io's API documentation](https://api.put.io/v2/docs/) to get started.

**Pull requests are welcome!**

You can also find me on Twitter: @[nicoSWD](https://twitter.com/nicoSWD)


EXAMPLES
========

<pre>
<code>
require 'PutIO.php';
$putio = new PutIO($access_token);

// Retrieve a an array of files on your account.
$files = $putio->files->listall();

// Upload a file.
$file = 'path/to/file.jpg';
$putio->files->upload($file);

// Download a file.
$saveAs = 'my-file.jpg';
$fileID = 1234;

$putio->files->download($fileID, $saveAs);

// Search for files you have access to.
$query = 'my file';
$files = $putio->files->search($query);

// Add a new transfer (file or torrent)
$url = 'http://torrent.site.com/legal_video.torrent';
$putio->transfers->add($url);

// Get status of a transfer
$transferID = 1234;
$info = $putio->transfers->info($transferID);

// And a lot more...
</code>
</pre>


LICENSE
=======
Copyright (C) 2012  N<NAME>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.<commit_msg>Made readme prettier<commit_after>Put.io OAuth API Wrapper written in PHP
=======================================
**(OAuth/API Version 2)**

A simple, but powerful PHP class for [put.io](https://put.io/)'s [OAuth API](https://api.put.io/v2/docs/) (version 2).
Supports all features that put.io's API provides, including file uploads, downloads, transfers, friends, etc...

Requires PHP 5.3, and the following PHP extensions: [cURL](http://php.net/book.curl) and [JSON](http://php.net/book.json).

Take a look at the [Wiki](https://github.com/nicoSWD/put.io-API-v2-Wrapper/wiki/) and [put.io's API documentation](https://api.put.io/v2/docs/) to get started.

**Pull requests are welcome!**

You can also find me on Twitter: @[nicoSWD](https://twitter.com/nicoSWD)


EXAMPLES
========

<pre>
require 'PutIO.php';
$putio = new PutIO($access_token);

// Retrieve a an array of files on your account.
$files = $putio->files->listall();

// Upload a file.
$file = 'path/to/file.jpg';
$putio->files->upload($file);

// Download a file.
$saveAs = 'my-file.jpg';
$fileID = 1234;
$putio->files->download($fileID, $saveAs);

// Search for files you have access to.
$query = 'my file';
$files = $putio->files->search($query);

// Add a new transfer (file or torrent)
$url = 'http://torrent.site.com/legal_video.torrent';
$putio->transfers->add($url);

// Get status of a transfer
$transferID = 1234;
$info = $putio->transfers->info($transferID);

// And a lot more...
</pre>


LICENSE
=======
Copyright (C) 2012  <NAME>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
{'fraction_non_alphanumeric': 0.15976470588235295, 'fraction_numerical': 0.009411764705882352, 'mean_word_length': 4.267657992565056, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 37, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '434829', 'n_tokens_mistral': 1378, 'n_tokens_neox': 1321, 'n_words': 493}