定制 nicholasmt/zoom_library 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nicholasmt/zoom_library

Composer 安装命令:

composer require nicholasmt/zoom_library

包简介

this a zoom api library for laravel

README 文档

README

Laravel Package library for Zoom API to create, update and delete meetings.

This is a zoom api library package

To get started Run

composer require nicholasmt/zoom_library

Note: if You encounter this or any other error which means you are using the old version of those packages

Your requirements could not be resolved to an installable set of packages.

To Resolve simply run

 composer update
 

After successfull composer update then install the package again with composer require nicholasmt/zoom_webhook

Note: if you encounter any error based on poor network during update,

just backup the vender file, delete and run composer update again with composer update

Configure in .env file

ACCOUNT_ID    =  your zoom app Acount ID .
CLIENT_ID     =  your zoom app Client ID.
CLIENT_SECRET =  your zoom app Client Secret key.

Create a Controller

php artisan make:controller ZoomController
 

Require the package as below:

 use Nicholasmt\ZoomLibrary\Zoom;
 

To create zoom meeting use code in Method:

$zoom_meeting = new Zoom();
$data = array();
// meeting details array
$data['topic'] 		= 'Meeting Title';
$data['start_date'] = '25/04/2023';
$data['duration'] 	=  25; /*in minutes*/
$data['type'] 		= 2;
$data['password'] 	=  '12345';
// create meeting
$response = $zoom_meeting->createMeeting($data);
return $response;
 

Code Preview:

 
<?php

namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

use Nicholasmt\ZoomLibrary\Zoom;
 
class ZoomController extends Controller
{
    
    public function zoom_meeting()
    {
        $zoom_meeting = new Zoom();
        $data = array();
        // meeting details array
        $data['topic'] 		= 'Meeting Title';
        $data['start_date'] = '25/04/2023';
        $data['duration'] 	=  25; /*in minutes*/
        $data['type'] 		= 2;
        $data['password'] 	=  '12345';
        // create meeting
        $response = $zoom_meeting->createMeeting($data);

        // dd($response);

        return $response;
    }

 }
 

Then finally setup Route for the controller.

Route::get('create-meeting', [App\Http\Controllers\ZoomController::class, 'zoom_meeting'])->name('create-meeting');

Enjoy! and don't forget to like thanks

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-25