PHP code example of vhall / web_sdk
1. Go to this page and download the library: Download vhall/web_sdk library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vhall / web_sdk example snippets
use Vhall\Webinar;
$webinarId = 250031234;
$config = [
'app_key' => '9100f829ccabfeb689de7b08a0a57f2e',
'secret_key' => 'dc9b53947c3d2d2a0d9c4067071576e6',
'show_request_url' => true, // 是否显示构造请求连接&参数 json console (请勿在生产环境打开)
'show_request_data' => true, // 是否显示接口返回数据 json console (请勿在生产环境打开)
];
$webinarObj = new Webinar($config);
// 添加封面
$result = $webinarObj->activeimage([
'image' => __DIR__ . '/logo.png',
'webinar_id' => $webinarId
]);
use vhall\Webinar;
$webinarId = 250031234;
$config = [
'app_key' => '9100f829ccabfeb689de7b08a0a57f2e',
'secret_key' => 'dc9b53947c3d2d2a0d9c4067071576e6',
'show_request_url' => true, // 是否显示构造请求连接&参数 json console (请勿在生产环境打开)
'show_request_data' => true, // 是否显示接口返回数据 json console (请勿在生产环境打开)
];
$webinarObj = new Webinar($config);
// 添加封面
$result = $webinarObj->activeimage([
'image' => __DIR__ . '/logo.png',
'webinar_id' => $webinarId
]);