clpt/microsoftgraph-laravel
Composer 安装命令:
composer require clpt/microsoftgraph-laravel
包简介
Laravel wrapper for the microsoft graph api
README 文档
README
This package allows you to connect microsoft graph api (events) to create calendar events on a users 365 profile
Example use case
use Carbon\Carbon; use Clpt\MicrosoftGraph\MicrosoftGraph; use Clpt\MicrosoftGraph\Requests\CreateBody; use Clpt\MicrosoftGraph\Requests\CreateCalendarEvent; use Clpt\MicrosoftGraph\Requests\CreateEnd; use Clpt\MicrosoftGraph\Requests\CreateLocation; use Clpt\MicrosoftGraph\Requests\CreateStart; $calendar = new CreateCalendarEvent( subject: 'Example Subject', start: new CreateStart( dateTime: \Carbon\Carbon::now()->format('Y-m-d\TH:i:s'), timezone: config('app.timezone'), ), end: new CreateEnd( dateTime: \Carbon\Carbon::now()->addDay()->format('Y-m-d\TH:i:s'), timezone: config('app.timezone'), ), body: new CreateBody( content: "<b>Example event content</b>" ), location: new CreateLocation()); //adds ability for online teams meetings $calendar->setOnlineMeeting(); $calendar->setAttendees(['test@gmail.com' , 'test2@gmail.com']); //sends the data with guzzle MicrosoftGraph::event($calendar, config("microsoftgraph.uuid"), config("microsoftgraph.key"));
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-03