<commit_before>phpViddler API v2 Library
http://developers.viddler.com/documentation/
================================

A PHP class for Viddler's API version 2.

For more information, visit [our developer site](http://developers.viddler.com/)

Installation Instructions
--------------------------------
1. [Download the most recent version](https://github.com/viddler/phpviddler/downloads).
2. Upload phpviddler.php
3. Include phpviddler.php
4. Initiate Viddler class like this $v = new Viddler_V2('YOUR API KEY HERE');

Usage
--------------------------------
    $v = new Viddler_V2('Your API Key');
    
    // Example find videos by user
    $videos = $v->viddler_videos_getByUser('viddlerdevtest');
    foreach($videos['list_result']['video_list'] as $video) {
      print_r($video);
    }
    
Notes
--------------------------------
viddler_videos_upload() can accept a second parameter for defining the upload end-point that the API has given you to use. This is best practice for the very quickest upload possible. Find the example code in /examples/uploadExample.php and also the How to: Upload video article: http://developers.viddler.com/documentation/articles/howto-upload-video/

Included in PHPviddler is an /examples/ directory with a few code examples. These have been updated to use version 2 of our API and include GET, POST, and upload examples.

Embedding
--------------------------------
Viddler now supports a few different embed codes types. To retrieve a proper embed code, you may want to use: http://developers.viddler.com/documentation/api-v2/#toc-viddler-videos-getembedcodetypes  and then grab an embed code with http://developers.viddler.com/documentation/api-v2/#toc-viddler-videos-getembedcode

Need help?
--------------------------------
Subscribe to our Developer's Mailing List and ask the question there. The Viddler development community are subscribed to help you: http://groups.google.com/group/viddler-development-talk


Licensing
--------------------------------
phpViddler is dual-licensed under the MIT License. The details of this can be found MITlicense.txt


Changelog (started with tag 3.9) - Read overall API changelog [here]()
--------------------------------
### 3.9 - April 26, 2012

- Jumped tag numbers like whoa to keep consistent with internal versioning
- Added new method 'viddler.videos.addClosedCaptioning' (POST)
- Added new method 'viddler.videos.delClosedCaptioning' (POST)
- Added new method 'viddler.videos.setClosedCaptioning' (POST)
- Updates to viddler.encoding.(set|get)Settings
- Added new method viddler.videos.comments.get (GET)
- Updates to viddler.videos.(get|set)Details<commit_msg>Updated readme file<commit_after>phpViddler API v2 Library
http://developers.viddler.com/documentation/
================================

A PHP class for Viddler's API version 2.

For more information, visit [our developer site](http://developers.viddler.com/)

Installation Instructions
--------------------------------
1. [Download the most recent version](https://github.com/viddler/phpviddler/downloads).
2. Upload phpviddler.php
3. Include phpviddler.php
4. Initiate Viddler class like this $v = new Viddler_V2('YOUR API KEY HERE');

Usage
--------------------------------
    $v = new Viddler_V2('Your API Key');
    
    // Example find videos by user
    $videos = $v->viddler_videos_getByUser('viddlerdevtest');
    foreach($videos['list_result']['video_list'] as $video) {
      print_r($video);
    }
    
Notes
--------------------------------
viddler_videos_upload() can accept a second parameter for defining the upload end-point that the API has given you to use. This is best practice for the very quickest upload possible. Find the example code in /examples/uploadExample.php and also the How to: Upload video article: http://developers.viddler.com/documentation/articles/howto-upload-video/

Included in PHPviddler is an /examples/ directory with a few code examples. These have been updated to use version 2 of our API and include GET, POST, and upload examples.

Embedding
--------------------------------
Viddler now supports a few different embed codes types. To retrieve a proper embed code, you may want to use: http://developers.viddler.com/documentation/api-v2/#toc-viddler-videos-getembedcodetypes  and then grab an embed code with http://developers.viddler.com/documentation/api-v2/#toc-viddler-videos-getembedcode

Need help?
--------------------------------
Subscribe to our Developer's Mailing List and ask the question there. The Viddler development community are subscribed to help you: http://groups.google.com/group/viddler-development-talk


Licensing
--------------------------------
phpViddler is dual-licensed under the MIT License. The details of this can be found MITlicense.txt


Changelog (started with tag 3.9) - Read overall API changelog [here]()
--------------------------------
### 3.9 - April 26, 2012

- Jumped tag numbers like whoa to keep consistent with internal versioning
- Added new method 'viddler.videos.addClosedCaptioning' (POST)
- Added new method 'viddler.videos.delClosedCaptioning' (POST)
- Added new method 'viddler.videos.setClosedCaptioning' (POST)
- Updates to viddler.encoding.(set|get)Settings
- Added new method viddler.videos.comments.get (GET)
- Updates to viddler.videos.(get|set)Details
- Added new examples in the examples directory
{'fraction_non_alphanumeric': 0.17434271862763379, 'fraction_numerical': 0.007831437628193175, 'mean_word_length': 3.0209895052473765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '603205', 'n_tokens_mistral': 1590, 'n_tokens_neox': 1482, 'n_words': 524}