pierreminiggio/heropost-and-youtube-api-based-video-poster 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pierreminiggio/heropost-and-youtube-api-based-video-poster

Composer 安装命令:

composer require pierreminiggio/heropost-and-youtube-api-based-video-poster

包简介

README 文档

README

Install using composer :

composer require pierreminiggio/heropost-and-youtube-api-based-video-poster
use PierreMiniggio\GoogleTokenRefresher\GoogleClient;
use PierreMiniggio\HeropostAndYoutubeAPIBasedVideoPoster\Video;
use PierreMiniggio\HeropostAndYoutubeAPIBasedVideoPoster\VideoPosterFactory;
use PierreMiniggio\HeropostYoutubePosting\YoutubeCategoriesEnum;
use PierreMiniggio\HeropostYoutubePosting\YoutubeVideo;
use Psr\Log\LoggerInterface;

require __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

class TestLogger implements LoggerInterface
{

    public function emergency($message, array $context = [])
    {
        $this->log('emergency', $message, $context);
    }

    public function alert($message, array $context = [])
    {
        $this->log('alert', $message, $context);
    }

    public function critical($message, array $context = [])
    {
        $this->log('critical', $message, $context);
    }

    public function error($message, array $context = [])
    {
        $this->log('error', $message, $context);
    }

    public function warning($message, array $context = [])
    {
        $this->log('warning', $message, $context);
    }

    public function notice($message, array $context = [])
    {
        $this->log('notice', $message, $context);
    }

    public function info($message, array $context = [])
    {
        $this->log('info', $message, $context);
    }

    public function debug($message, array $context = [])
    {
        $this->log('debug', $message, $context);
    }

    public function log($level, $message, array $context = [])
    {
        var_dump($level, $message, $context);
    }
}

$poster = (new VideoPosterFactory())->make(new TestLogger());
$poster->post(
    'login',
    'password',
    'youtubeChannelId',
    new Video(
        new YoutubeVideo(
            'title',
            'description',
            YoutubeCategoriesEnum::EDUCATION
        ),
        ['tag1', 'tag2', 'tag3'],
        false,
        'video.mp4',
        'thumbnail.png'
    ),
    new GoogleClient(
        'clientId',
        'clientSecret',
        'refreshToken'
    )
);

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-04-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固