<commit_before># Wistia API Wrapper

This is a `PHP` wrapper for the Wistia Data Api. A full list of Objects and Methods are at the bottom.

This is still in development.  I will remove this warning when it is safe to use.

<br />
Scenario 1: If you wanted to `show` a particular project with the id of `1234`

```php
$apikey = "Your api key from wistia";

//Get Projects Object
$projects = \Wistia\Wistia::getResource("Projects", $apikey);

//Then call the method on the projects
$results = $projects->show("1234");

```
<br />
Scenario 2: If you wanted to `delete` a caption for a video `1234` with language `eng`

```php
$apikey = "Your api key from wistia";

//Get Captions Object
$captions = \Wistia\Wistia::getResource("Captions", $apikey);

//Then call the method on captions
$results = $captions->delete("1234", array(
	"language" => "eng"
));

```
<br />
The `$results` you receive from the methods is a simple object with three methods.

```php
$results = $projects->show("project id");

//Get Status Code from Response Header
$results->getStatus();    //200 or 201 or 404 ...

//Get Response JSON string 
$results->getResults();   //{"wistia":"json"}

//Test if result is Successful
//returns true if status === 200 or 201
//and false for everything else
$results->isSuccess();		

```

<br />
If for some weird reason you would like to instantiate the classes directly, you can!

```php
$apikey = "Your api key from wistia";

//Get Captions Object
$captions = new \Wistia\Resources\Captions\Captions($apikey);

//Then call the method on captions
$results = $captions->delete("1234", array(
	"language"
));
```

<br />
The full list of Objects, Methods and their parameters,  map directly to the Wistia Data Api (for the most part).
Any place wistia uses `list`  we have to use `listOf`, since list is a protected word in php. The break down of the list below is
`Object -> Method -> Parameter`.  `[$param] =  Optional parameter`

* Projects
	- listOf
		* [$params] - wistia api parameters see Wistia documentation
	- show
		* $project_id - wistia api hashed project id
		* [$params] - wistia api parameters see Wistia documentation
	- create
	- update
	- delete
	- copy

* Sharings
	- listOf
	- show
	- create
	- update
	- delete

* Medias
	- listOf
	- show
	- update
	- delete
	- copy
	- stats

* Account
	- get

* Customizations
	- show
	- create
	- update
	- delete

* Captions
	- index
	- create
	- show
	- update
	- delete
	- purchase

<commit_msg>readme changes<commit_after># Wistia API Wrapper

This is a `PHP` wrapper for the Wistia Data Api. A full list of Objects and Methods are at the bottom.

This is still in development.  I will remove this warning when it is safe to use.

<br />
Scenario 1: If you wanted to `show` a particular project with the id of `1234`

```php
$apikey = "Your api key from wistia";

//Get Projects Object
$projects = \Wistia\Wistia::getResource("Projects", $apikey);

//Then call the method on the projects
$results = $projects->show("1234");

```
<br />
Scenario 2: If you wanted to `delete` a caption for a video `1234` with language `eng`

```php
$apikey = "Your api key from wistia";

//Get Captions Object
$captions = \Wistia\Wistia::getResource("Captions", $apikey);

//Then call the method on captions
$results = $captions->delete("1234", array(
	"language" => "eng"
));

```
<br />
The `$results` you receive from the methods is a simple object with three methods.

```php
$results = $projects->show("project id");

//Get Status Code from Response Header
$results->getStatus();    //200 or 201 or 404 ...

//Get Response JSON string 
$results->getResults();   //{"wistia":"json"}

//Test if result is Successful
//returns true if status === 200 or 201
//and false for everything else
$results->isSuccess();		

```

<br />
If for some weird reason you would like to instantiate the classes directly, you can!

```php
$apikey = "Your api key from wistia";

//Get Captions Object
$captions = new \Wistia\Resources\Captions\Captions($apikey);

//Then call the method on captions
$results = $captions->delete("1234", array(
	"language"
));
```

<br />
The full list of Objects, Methods and their parameters,  map directly to the Wistia Data Api (for the most part).
Any place wistia uses `list`  we have to use `listOf`, since list is a protected word in php. The break down of the list below is
`Object -> Method -> Parameter`.  `[$param] =  Optional parameter`

* Projects
	- listOf
		* [$params] - wistia api parameters see Wistia documentation
	- show
		* $project_id - wistia api hashed project id
		* [$params] - wistia api parameters see Wistia documentation
	- create
		* [$params] - wistia api parameters see Wistia documentation
	- update
		* [$params] - wistia api parameters see Wistia documentation
	- delete
		* [$params] - wistia api parameters see Wistia documentation
	- copy
		* [$params] - wistia api parameters see Wistia documentation

* Sharings
	- listOf
		* [$params] - wistia api parameters see Wistia documentation
	- show
		* [$params] - wistia api parameters see Wistia documentation
	- create
		* [$params] - wistia api parameters see Wistia documentation
	- update
		* [$params] - wistia api parameters see Wistia documentation
	- delete
		* [$params] - wistia api parameters see Wistia documentation

* Medias
	- listOf
		* [$params] - wistia api parameters see Wistia documentation
	- show
		* [$params] - wistia api parameters see Wistia documentation
	- update
		* [$params] - wistia api parameters see Wistia documentation
	- delete
		* [$params] - wistia api parameters see Wistia documentation
	- copy
		* [$params] - wistia api parameters see Wistia documentation
	- stats
		* [$params] - wistia api parameters see Wistia documentation

* Account
	- get
		* [$params] - wistia api parameters see Wistia documentation

* Customizations
	- show
		* [$params] - wistia api parameters see Wistia documentation
	- create
		* [$params] - wistia api parameters see Wistia documentation
	- update
		* [$params] - wistia api parameters see Wistia documentation
	- delete
		* [$params] - wistia api parameters see Wistia documentation

* Captions
	- index
		* [$params] - wistia api parameters see Wistia documentation
	- create
		* [$params] - wistia api parameters see Wistia documentation
	- show
		* [$params] - wistia api parameters see Wistia documentation
	- update
		* [$params] - wistia api parameters see Wistia documentation
	- delete
		* [$params] - wistia api parameters see Wistia documentation
	- purchase
		* [$params] - wistia api parameters see Wistia documentation


{'fraction_non_alphanumeric': 0.1111618699558398, 'fraction_numerical': 0.011268463529770062, 'mean_word_length': 3.6123595505617976, 'pattern_counts': {'":': 2, '<': 13, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3151585', 'n_tokens_mistral': 2191, 'n_tokens_neox': 2025, 'n_words': 825}