vega6/syvid-sdk 问题修复 & 功能扩展

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

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

vega6/syvid-sdk

Composer 安装命令:

composer require vega6/syvid-sdk

包简介

Manage user campaigns and upload videos to user's campaign using access token.

README 文档

README

Get user's campaign and post videos to the campaign of SyVid from other integrated applications.
This package is meant for internal use in Vega6 webware technologies.

Using the Library

Installation

Intall library in PHP project using composer

composer require vega6/syvid-sdk

Using Library

$syvid = new SyVid();

set access token

$syvid->setAccessToken('access_token');

Get Campaigns

$campaigns = $syvid->getCampaigns();

returns array of campaigns created by the authorised user.

Upload Video

$upload = $syvid->uploadVideo('campaign_id', 'title', 'description', 'video_path');

Call this endpoint to upload videos to the campaign.

By default the video will initiate distribution as soon as upload is complete.
If you don't want to initiate the upload and just want to upload the video, pass last parameter in uploadVideo to false

$upload = $syvid->uploadVideo('campaign_id', 'title', 'description', 'video_path', false);

Exception Handling

Ex:

try {
    $syvid->uploadVideo();
} catch (Exception $exception) {
    echo $exception->getMessage();
}

Bug Reporting

If you found any bug, create an issue.

Support and Contribution

Something is missing?

  • Fork the repositroy
  • Make your contribution
  • make a pull request

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-11-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固