for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Realshadow\Redtube\Endpoints;
use Illuminate\Support\Collection;
use Realshadow\Redtube\Entities\Categories;
/**
* Category Endpoint
*
* @package Realshadow\Redtube\Endpoints
* @author Lukáš Homza <[email protected]>
*/
class CategoryEndpoint extends AbstractEndpoint
{
* Get all categories
* @return Collection
* @throws \RuntimeException
public function getAll()
$response = $this->call('Categories.getCategoriesList');
return $this->serializer
->deserialize($response, Categories::class, static::OUTPUT_FORMAT)
->flatten();
}